updated from Atlas
This commit is contained in:
@@ -2,11 +2,11 @@
|
||||
import sys
|
||||
import unicodedata
|
||||
|
||||
FIRST, LAST = ord(' '), sys.maxunicode # <1>
|
||||
START, END = ord(' '), sys.maxunicode + 1 # <1>
|
||||
|
||||
def find(*query_words, first=FIRST, last=LAST): # <2>
|
||||
def find(*query_words, start=START, end=END): # <2>
|
||||
query = {w.upper() for w in query_words} # <3>
|
||||
for code in range(first, last + 1):
|
||||
for code in range(start, end):
|
||||
char = chr(code) # <4>
|
||||
name = unicodedata.name(char, None) # <5>
|
||||
if name and query.issubset(name.split()): # <6>
|
||||
|
||||
Reference in New Issue
Block a user