mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
Use the regex implementation as it is faster
This commit is contained in:
parent
b3d266d737
commit
b9a6df1ce8
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user