javascript-tutorial / en.javascript.info

Modern JavaScript Tutorial
https://javascript.info
Other
23.59k stars 3.87k forks source link

Bought Epub book is wrong on EPUB3 Reader #3563

Open AndreiSoroka opened 1 year ago

AndreiSoroka commented 1 year ago

Hi there

I bought a book and downloaded it in epub format.

If I try to open it on Pocketbook era, the images, and code don't display.

Screenshot 2023-08-24 at 15 46 02

If I open the original file through an old reader (EPUB2), everything is displayed, but the fonts are terrible (and the old reader lags).

image Screenshot 2023-08-24 at 15 47 55

If I convert it to FB2 format, the code is displayed, but the images don't show.

pandoc ./js.epub -o js.fb2

P.S. I read it like this all the time until I made an opening, which I wrote about later. I used for it https://pandoc.org/

Screenshot 2023-08-24 at 15 42 34

Solution:

If I convert it from EPUB to EPUB format,

pandoc ./js.epub -o js_copy.epub

then everything works in the latest reader.

image

I don't know what you use to convert Markdown to Epub but would be great if you would provide EPUB 3 initially

Thanks

AndreiSoroka commented 1 year ago

And external images are a bit problem for converting and offline read

pandoc ./ui.epub -o ui_copy.epub
[WARNING] Could not fetch resource https:/en.js.cx/clipart/ball.svg: PandocHttpError "https:/en.js.cx/clipart/ball.svg" (InvalidUrlException "https:/en.js.cx/clipart/ball.svg" "URL must be absolute")
[WARNING] Could not fetch resource https:/en.js.cx/clipart/ball.svg: PandocHttpError "https:/en.js.cx/clipart/ball.svg" (InvalidUrlException "https:/en.js.cx/clipart/ball.svg" "URL must be absolute")

pandoc ./more.epub -o more_copy.epub
[WARNING] Could not fetch resource https:/js.cx/clipart/boat.png: PandocHttpError "https:/js.cx/clipart/boat.png" (InvalidUrlException "https:/js.cx/clipart/boat.png" "URL must be absolute")