mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
unihandecode: missing imports
This commit is contained in:
parent
0a22d4af1a
commit
3e7af21f70
@ -8,9 +8,11 @@ from math import ceil
|
||||
|
||||
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…
x
Reference in New Issue
Block a user