updated from Atlas

This commit is contained in:
Luciano Ramalho
2015-04-01 22:48:56 -03:00
parent aab93699a4
commit 573e1a94c4
109 changed files with 5 additions and 6 deletions

View File

@@ -0,0 +1,15 @@
import sys
from unicodedata import name
for i in range(sys.maxunicode):
char = chr(i)
try:
char_name = name(char)
except ValueError: # no such name
continue
flags = []
flags.append('D' if char.isdigit() else '')
flags.append('N' if char.isnumeric() else '')
if any(flags):
flags = '\t'.join(flags)
print('U+%04x' % i, char, flags, char_name, sep='\t')