rhaleblian / dslibris

An ebook reader for the Nintendo DS, DS Lite, and DSi.
69 stars 4 forks source link

Chinese EPUB files display as squares in book list, app crashes when opening #49

Open kei35 opened 1 month ago

kei35 commented 1 month ago

Describe the bug I am primarily a reader of Chinese EPUB files, and I downloaded some EPUB files from HaoDoo. However, when I open the app, the book list displays only □□□□ □□□ instead of the actual Chinese characters. Additionally, after selecting an EPUB file, the app crashes and freezes my device (NDSLL).

To Reproduce Steps to reproduce the behavior:

Download a Chinese EPUB file from [HaoDoo](https://www.haodoo.net/).
Open the EPUB in the app.
Check the book list in the library.
Select the EPUB, and the app crashes.
rhaleblian commented 1 day ago

Hello, The default font included with the app does not include Chinese characters; you can add a TTF font file that does. Put the file into the "Font" folder and select it in the prefs. Here is a font that should work:

https://fonts.google.com/selection?preview.text=如果您想參加製作電子書,請參考這裡%E3%80%82%0A%0A%0A%0A%0A如果您想參加校正電子書,請參考這裡%E3%80%82%0A%0A%0A%0A掃描檔清單:徵初步整理清單一,清單二,清單三%0A%0A有意製作或協助分章校正的讀友,請隨時聯絡好讀%E3%80%82%0A&query=chinese

You may find that the book browser still shows squares. Future plans include changing the default font to include Chinese.

rhaleblian commented 1 day ago

My tests in emulation are hanging, so there may be more to do to fix this.