summaryrefslogtreecommitdiff
path: root/misc/gen-glyphorder.py
diff options
context:
space:
mode:
authorRasmus Andersson <rasmus@notion.se>2017-08-28 12:36:40 +0300
committerRasmus Andersson <rasmus@notion.se>2017-08-28 12:36:40 +0300
commitca5fe60c999fa94bc0b8c051eeb0f351ed878fed (patch)
treec7a1e78ebcf2ccc80b2403b1e3d4bdc408585e18 /misc/gen-glyphorder.py
parent4f790d0ae83d490e5b06563bc42f9bc5d633c8a9 (diff)
downloadinter-ca5fe60c999fa94bc0b8c051eeb0f351ed878fed.tar.xz
Various improvements
Diffstat (limited to 'misc/gen-glyphorder.py')
-rwxr-xr-xmisc/gen-glyphorder.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/misc/gen-glyphorder.py b/misc/gen-glyphorder.py
index 0817e97b0..3161f4a12 100755
--- a/misc/gen-glyphorder.py
+++ b/misc/gen-glyphorder.py
@@ -46,16 +46,17 @@ def main():
else:
fontPaths.append(fontPath)
+ nameLists = []
+
for fontPath in fontPaths:
libPlist = plistlib.readPlist(os.path.join(fontPath, 'lib.plist'))
+ names = []
if 'public.glyphOrder' in libPlist:
- for name in libPlist['public.glyphOrder']:
- glyphorderUnion[name] = True
+ nameLists.append(libPlist['public.glyphOrder'])
- # incorporate src/diacritics.txt
- # diacriticComps = loadGlyphCompositions('src/diacritics.txt')
- # for glyphName in diacriticComps.iterkeys():
- # glyphorderUnion[glyphName] = True
+ for names in zip(*nameLists):
+ for name in names:
+ glyphorderUnion[name] = True
glyphorderUnionNames = glyphorderUnion.keys()
print('\n'.join(glyphorderUnionNames))