Use the regex implementation as it is faster

This commit is contained in:
Kovid Goyal 2022-04-23 10:47:24 +05:30
parent b3d266d737
commit b9a6df1ce8
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -317,6 +317,8 @@ def remove_accents_regex(txt: str) -> str:
return normalize('NFKC', pat.sub('', normalize('NFKD', txt)))
remove_accents = remove_accents_regex # more robust and faster
################################################################################
if __name__ == '__main__':
from calibre.utils.icu_test import run