mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Change unicode normalization to use not convert characters to their equivalence classes
This commit is contained in:
parent
0e2eadb1eb
commit
5f658bfc04
@ -173,7 +173,7 @@ def check_ebook_format(stream, current_guess):
|
||||
def normalize(x):
|
||||
if isinstance(x, unicode):
|
||||
import unicodedata
|
||||
x = unicodedata.normalize('NFKC', x)
|
||||
x = unicodedata.normalize('NFC', x)
|
||||
return x
|
||||
|
||||
def calibre_cover(title, author_string, series_string=None,
|
||||
|
Loading…
x
Reference in New Issue
Block a user