advplyr / audiobookshelf

Self-hosted audiobook and podcast server
https://audiobookshelf.org
GNU General Public License v3.0
5.74k stars 395 forks source link

[Enhancement]: Support for Japanese language ebooks #2200

Open jakob11git opened 9 months ago

jakob11git commented 9 months ago

Describe the feature/enhancement

This might be similar to #1274 but I do not read manga books (and I'm not aware of there being audiobook versions of cartoons). However I do read regular books like novels. In Japanese books, the writing is most of the time (and pretty much always for novels) from top to bottom, and then from right to left. There are also ruby characters in almost every book.

Right now, reading a standard EPUB does not seem to fully work. I'm testing in Firefox, and while generally the first pages are displayed and ruby are visible at the correct places, you have to click on the arrow at the right side to go to the next page. Also, after the first few pages, it's not possible to continue reading. There seems to be some bigger underlying issue that I don't know how to pin-point.

I have a small test file that includes a full public domain book: https://transfer.acted.org/download/6de168674ec247b8/#EfO6En3UYw8SOM3bS6lWzw This link expires in 14 days. I can always re-upload it if needed, just ping me. There are also many other public domain files of Japanese books that can be found online. If there is any way I could help further, I would be happy to do.

random-human-being commented 3 weeks ago

I can confirm a similar issue on v2.10.1 (Docker). All ebooks with Japanese text are not rendered properly.

The exact same, improper rendering happens when using Calibre-Web (see the issue I opened here https://github.com/janeczku/calibre-web/issues/2786), so I assume the fault lies in whaterver library both projects are using.

jakob11git commented 3 weeks ago

These seem to work with my books:

Not always perfect but better than in ABS.