Erik van Blokland 3646055ea2 initial import
git-svn-id: http://svn.robofab.com/trunk@1 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-01-07 17:40:34 +00:00

23 lines
653 B
Python

# robofab manual
# Glifnames howto
# glyphNameToShortFileName examples
# examples of glyphname to glif name transformations
from robofab.tools.glyphNameSchemes import glyphNameToShortFileName
# a short name
print glyphNameToShortFileName("accent", None)
# a short name, starting with capital letter
print glyphNameToShortFileName("Accent", None)
# a really long name - note the hexadecimal hash at the end
print glyphNameToShortFileName("this_is_a_very_long_glyph_name.altswash2", None)
# a name with a period in it, 1
print glyphNameToShortFileName("a.alt", None)
# a name with a period in it, 2
print glyphNameToShortFileName(".notdef", None)