LettError / glyphNameFormatter

Generate list of glyphnames from unicode names.
BSD 3-Clause "New" or "Revised" License
75 stars 9 forks source link

Faulty name for “and with dot” #94

Closed arialcrime closed 2 years ago

arialcrime commented 3 years ago

While going through the glyph names of a font, I came across a strange suggested unicode value for a glyph called “dot”. Turns out n2u was suggesting the unicode for “and with dot”.

To replicate:

from glyphNameFormatter.reader import n2u

name = 'dot'
v = n2u(name)

print(name, hex(v), chr(v), u2r(v))

Output: dot 0x27d1 ⟑ Miscellaneous Mathematical Symbols-A

LettError commented 2 years ago

Fixed:

>>> print(u2n(0x27d1))
andwithdot
>>> print(n2u("dot"))
None
LettError commented 2 years ago

Thank you @arialcrime!