You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
from .codes import codes
|
|
|
|
|
|
def unidecode(txt: str) -> str:
|
|
chars = ""
|
|
for ch in txt:
|
|
codepoint = ord(ch)
|
|
|
|
try:
|
|
chars += codes[codepoint]
|
|
except IndexError:
|
|
pass
|
|
return chars
|