mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
DOCX Input: Fix failure to convert some DOCX files that use Symbol fonts. Fixes #1777390 [Private bug](https://bugs.launchpad.net/calibre/+bug/1777390)
This commit is contained in:
parent
c57a493711
commit
e20b1f2d0a
@ -126,6 +126,8 @@ def do_map(m, points):
|
||||
|
||||
def map_symbol_text(text, font):
|
||||
m = SYMBOL_MAPS[font]
|
||||
if isinstance(text, bytes):
|
||||
text = text.decode('utf-8')
|
||||
return ''.join(do_map(m, ord_string(text)))
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user