bookworm icon indicating copy to clipboard operation
bookworm copied to clipboard

Chinese book content in Mobi format is displayed as garbled characters

Open cary-rowen opened this issue 2 years ago • 7 comments

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:

  1. Download the attached sample test book: testSample.zip;
  2. Open Sample_Epub.epub in Bookworm;
  3. View a book's table of contents in a table of contents tree view;
  4. Open Sample_mobi.mobi in Bookworm;
  5. 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

testSample.zip

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 avatar Feb 26 '22 10:02 cary-rowen

@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

mush42 avatar Feb 26 '22 11:02 mush42

Hi,

it only happen with the table-of-content tree view labels. the text of the document can be displayed normally.

Cheers Cary

cary-rowen avatar Feb 26 '22 11:02 cary-rowen

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

cary-rowen avatar Feb 28 '22 01:02 cary-rowen

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

cary-rowen avatar Mar 12 '22 21:03 cary-rowen

Hi @mush42 Is this issue on your to-do list?

Thanks

cary-rowen avatar Mar 30 '22 13:03 cary-rowen

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

mush42 avatar Mar 30 '22 15:03 mush42

Hi @mush42

Thank you, Great work.

All the best

Cary

cary-rowen avatar Mar 30 '22 15:03 cary-rowen