Incorrect TOC entries in PDF files converted from Chinese EPUB file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
calibre version: 2.17.0.
operating system: tested on windows 7 and Ubuntu 14.04
When converting chinese EPUB file to PDF format, some TOC entries in result PDF are not correctly displayed.
Here we made a picture to demostrate the problem. See problem.png in attachement. The left hand side is the TOC tree in EPUB file(corrct one), and the right hand side is the coverted result(in PDF). The parts that we marked as yellow are problmatic outputs.
Form that example, it seems that the problme comes from characters "瑜" (UTF16 code point: 745C) and "就" (UTF16 code point: 5C31). Since both of them have byte "5C" inside the charactet and 5C is the "/" in ascii, thus we guess that the problem may relate to the bytes "5C. We also try put other characters with "5C" inside, i.e, 屜(5C5C), 就(5C31), 尲(5C32) in the EPUB and covert them, there all show similar problems.
Fixed in branch master. The fix will be in the next release. calibre is usually released every Friday.
status fixreleased