sync with O'Reilly Atlas

This commit is contained in:
Luciano Ramalho
2021-06-26 13:42:28 -03:00
parent e986e3bdc0
commit f0f160844d
26 changed files with 308 additions and 1004 deletions

View File

@@ -51,7 +51,7 @@ def shave_marks_latin(txt):
if unicodedata.combining(c) and latin_base: # <2>
continue # ignore diacritic on Latin base char
preserve.append(c) # <3>
# if it isn't combining char, it's a new base char
# if it isn't a combining char, it's a new base char
if not unicodedata.combining(c): # <4>
latin_base = c in string.ascii_letters
shaved = ''.join(preserve)