updated contents from Atlas repo

This commit is contained in:
Luciano Ramalho
2014-10-14 14:26:55 -03:00
parent 40688c038d
commit 981d5bc473
157 changed files with 71134 additions and 1 deletions

14
strings-bytes/nfc_demo.py Normal file
View File

@@ -0,0 +1,14 @@
import sys
from unicodedata import name, normalize
for i in range(sys.maxunicode):
char = chr(i)
char_name = name(char, None)
if char_name is None:
continue
nfc = normalize('NFC', char)
if nfc == char:
continue
if len(nfc) > 1:
nfc_display = ' '.join(nfc)
print('U+%04x' % i, char, nfc_display, char_name, sep='\t')