add glyph_to_name
This commit is contained in:
parent
71dda9f316
commit
da382f5fab
1 changed files with 7 additions and 0 deletions
|
@ -77,6 +77,13 @@ def name_to_glyph(name):
|
|||
return None
|
||||
|
||||
|
||||
def glyph_to_name(glyph_id):
|
||||
for k in name_to_glyph_d:
|
||||
if glyph_id == name_to_glyph_d[k]:
|
||||
return k
|
||||
return glyph_id
|
||||
|
||||
|
||||
def is_space(character):
|
||||
for name in space_d:
|
||||
if character == space_d[name][0]:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue