diff options
author | Rasmus Andersson <rasmus@notion.se> | 2017-08-28 12:36:40 +0300 |
---|---|---|
committer | Rasmus Andersson <rasmus@notion.se> | 2017-08-28 12:36:40 +0300 |
commit | ca5fe60c999fa94bc0b8c051eeb0f351ed878fed (patch) | |
tree | c7a1e78ebcf2ccc80b2403b1e3d4bdc408585e18 /misc/gen-glyphorder.py | |
parent | 4f790d0ae83d490e5b06563bc42f9bc5d633c8a9 (diff) | |
download | inter-ca5fe60c999fa94bc0b8c051eeb0f351ed878fed.tar.xz |
Various improvements
Diffstat (limited to 'misc/gen-glyphorder.py')
-rwxr-xr-x | misc/gen-glyphorder.py | 13 |
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)) |