Skip to content

Instantly share code, notes, and snippets.

@LettError
Created March 17, 2016 08:23
Show Gist options
  • Save LettError/4f61f375e00260b31bd0 to your computer and use it in GitHub Desktop.
Save LettError/4f61f375e00260b31bd0 to your computer and use it in GitHub Desktop.
Find unicode names with "GREEK" and "SYMBOL"
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