bookworm
bookworm copied to clipboard
Chinese book content in Mobi format is displayed as garbled characters
Describe the Problem
Chinese book content in Mobi format is displayed as garbled characters, The Epub format of the same content does not have this problem.
To Reproduce
Steps to reproduce the behavior:
- Download the attached sample test book: testSample.zip;
- Open Sample_Epub.epub in Bookworm;
- View a book's table of contents in a table of contents tree view;
- Open Sample_mobi.mobi in Bookworm;
- View a book's table of contents in a table of contents tree view.
Expected behavior
Step 3 and 5 we should get the same result P.S. The result of the Step 3 is correct.
Actual behavior
Execute step 3 and we can see the complete table of contents of the book Execute step 5, the book content is not fully rendered, and NVDA reports it as a "question mark", which means garbled characters.
The File You've Opened
Desktop (please complete the following information):
-
OS: Windows 10 21H2 (x64) build 19044.1526
-
Bookworm version 2022.1a5
-
Recent settings you may have changed in Bookworm: None
Additional context
It is suspected to be an encoding problem, because Epub uniformly uses UTF-8 encoding, this problem will not occur
@cary-rowen
Does this problem happen with the text of the document? or does it only happen with the table-of-content tree view labels.
Best Musharraf
Hi,
it only happen with the table-of-content tree view labels. the text of the document can be displayed normally.
Cheers Cary
There is also a mobi document that cannot be opened and is reported as an error: Could not open file. Either the file has been damaged during download, or it has been corrupted in some other way. Here is the documentation that reproduces the problem: test_OpenError.zip
Hi @mush42 Hopefully this one will also be fixed in the near future, let me know if you need nvda's Simplified Chinese speech synthesizer for testing. I can send it to you by email. hope everything is fine Cheers
Hi @mush42 Is this issue on your to-do list?
Thanks
Hello @cary-rowen Yes this one is in my To do list. The only blocker is that we need to change an external library called 'mobi' that we depend on. It seams we need to fork that project, change it, and bundle a private version of it with Bookworm.
Best
Hi @mush42
Thank you, Great work.
All the best
Cary