Change unicode normalization to use not convert characters to their equivalence classes

This commit is contained in:
Kovid Goyal 2012-08-17 01:11:03 +05:30
parent 0e2eadb1eb
commit 5f658bfc04

View File

@ -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,