Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display Errors on Calibre-Web on some Japanese Novels (but Display Fine on Calibre) #3338

Open
kiyospace opened this issue Mar 20, 2025 · 1 comment

Comments

@kiyospace
Copy link

kiyospace commented Mar 20, 2025

[Environment]

  • calibre-web: 0.6.24 running under Python 3.13.2
  • calibre (local software): version 6.13.0 running on Debian 12.10 amd64
  • calibre-web and calibre (local) are running on the same Debian 12.10 amd64 host, and are sharing the same calibre book lib

[Issue Description]

For most of books, calibre-web displays the contents in the browser just fine, but for some Japanese novels, there are some display differences (display errors) on calibre-web in the browser, while in calibre (local) the display of the same novel book is just fine. Please refer to the following calibre-local.png (the 1st picture, displaying fine) and calibre-web.png (the 2nd picture, displaying with issues)

These issues happen on both desktop browsers (Firefox, Edge) as well as Edge on mobile (Android).

calibre-local.png (1st picture)
Image

calibre-web.png (2nd picture)
Image

  • First of all, on calibre-web browser display (2nd picture), all texts are right aligned (e.g. you can see the 1 in the original novel text at the very beginning (not the ① in red) is aligned right obviously if the Japanese text alignment is not easy to be compared), which really affects the readability... While on the local calibre display (1st picture), the text alignment is just normal (left aligned).

  • The text order (characters' order) on the calibre-web browser display is basically correct (still from left to right character by character), e.g. the GREEN underlined sentences, BUT the last PERIOD-MARKs (。) of all paragraphs (e.g. the RED underlined 。 with ①➁③ alongside) goes to the LEFT-END on their lines in the 2nd picture (calibre-web)... But in the 1st picture (local calibre) the last PERIOD-MARKs (。) of all paragraphs (e.g. the RED underlined 。 with ①➁③ alongside) are just placed correctly at the RIGHT-END...

The weird thing on the calibre-web browser display is the error just happens to the last mark of each paragraph, not to the marks or characters inside the paragraph...

@kiyospace
Copy link
Author

I could confirm the following package can render the Japanese books correctly. Is there any chance to integrate this to calibre-web?

https://github.com/johnfactotum/foliate-js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant