Last active
December 25, 2015 19:49
-
-
Save apokalyptik/7030263 to your computer and use it in GitHub Desktop.
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
#!/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