updade from Atlas repo
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import sys
|
||||
import collections
|
||||
from unicodedata import name, category
|
||||
from unicodedata import category
|
||||
|
||||
|
||||
def category_stats():
|
||||
@@ -19,7 +19,7 @@ def category_scan(desired):
|
||||
for code in range(sys.maxunicode + 1):
|
||||
char = chr(code)
|
||||
if category(char) == desired:
|
||||
yield char
|
||||
yield char
|
||||
|
||||
|
||||
def main(args):
|
||||
@@ -30,7 +30,7 @@ def main(args):
|
||||
count += 1
|
||||
if count > 200:
|
||||
break
|
||||
print()
|
||||
print()
|
||||
print(count, 'characters shown')
|
||||
else:
|
||||
counts, firsts = category_stats()
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import sys, locale
|
||||
import locale
|
||||
import sys
|
||||
|
||||
expressions = """
|
||||
locale.getpreferredencoding()
|
||||
|
||||
@@ -10,9 +10,9 @@ zwg_sample = """
|
||||
1F469 200D 2764 FE0F 200D 1F48B 200D 1F469 |kiss: woman, woman |E2.0
|
||||
"""
|
||||
|
||||
markers = {'\u200D': 'ZWG', # ZERO WIDTH JOINER
|
||||
'\uFE0F': 'V16', # VARIATION SELECTOR-16
|
||||
}
|
||||
markers = {'\u200D': 'ZWG', # ZERO WIDTH JOINER
|
||||
'\uFE0F': 'V16', # VARIATION SELECTOR-16
|
||||
}
|
||||
|
||||
for line in zwg_sample.strip().split('\n'):
|
||||
code, descr, version = (s.strip() for s in line.split('|'))
|
||||
|
||||
Reference in New Issue
Block a user