mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 11:14:02 +02:00
unihandecode: missing imports
This commit is contained in:
parent
0a22d4af1a
commit
3e7af21f70
1 changed files with 3 additions and 1 deletions
|
|
@ -8,9 +8,11 @@
|
|||
|
||||
from calibre import sanitize_file_name
|
||||
from calibre.constants import preferred_encoding, iswindows
|
||||
udc = Unidecoder()
|
||||
from calibre.ebooks.unihandecode import Unihandecoder
|
||||
from calibre.utils.config import prefs
|
||||
|
||||
def ascii_text(orig):
|
||||
udc = Unihandecoder(lang=prefs['language'])
|
||||
try:
|
||||
ascii = udc.decode(orig)
|
||||
except:
|
||||
|
|
|
|||
Loading…
Reference in a new issue