Skip to content

Instantly share code, notes, and snippets.

@apokalyptik
Last active December 25, 2015 19:49
Show Gist options
  • Save apokalyptik/7030263 to your computer and use it in GitHub Desktop.
Save apokalyptik/7030263 to your computer and use it in GitHub Desktop.
#!/usr/bin/python
import re
import unicodedata
lm = re.compile("^[0-9a-fA-F]")
s = u""
# http://www.unicode.org/Public/5.2.0/ucd/NamesList.txt
with open("./NamesList.txt") as f:
for line in f:
if not lm.match(line):
continue
if line.find("\t<") > -1:
continue
s = s + unicodedata.lookup(line.strip().split("\t")[1])
print s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment