Created
March 17, 2016 08:23
-
-
Save LettError/4f61f375e00260b31bd0 to your computer and use it in GitHub Desktop.
Find unicode names with "GREEK" and "SYMBOL"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from glyphNameFormatter import GlyphName | |
from glyphNameFormatter.unicodeRangeNames import * | |
greekSymbols = [] | |
for name in getAllRangeNames(): | |
if name in ['Ancient Greek Musical Notation', 'Mathematical Alphanumeric Symbols']: continue | |
a, b = getRangeByName(name) | |
for uniNumber in range(a,b): | |
g = GlyphName(uniNumber) | |
if g.uniName is None: continue | |
if "GREEK" in g.uniName and "SYMBOL" in g.uniName: | |
greekSymbols.append(g) | |
for g in greekSymbols: | |
print g, g.uniRangeName |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment