2025-06-07 20:06:19 +02:00

14 lines
234 B
Python

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