mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -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)))
|
return normalize('NFKC', pat.sub('', normalize('NFKD', txt)))
|
||||||
|
|
||||||
|
|
||||||
|
remove_accents = remove_accents_regex # more robust and faster
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
from calibre.utils.icu_test import run
|
from calibre.utils.icu_test import run
|
||||||
|
Loading…
x
Reference in New Issue
Block a user