riscv / riscv-isa-manual

RISC-V Instruction Set Manual
https://riscv.org/
Creative Commons Attribution 4.0 International
3.72k stars 647 forks source link

Formulas (images) not displayed in Apple Books v6.4 #1607

Open kbroch-rivosinc opened 3 months ago

kbroch-rivosinc commented 3 months ago

This may be related to the note in the README: https://github.com/riscv/riscv-isa-manual/blob/main/README.md#images-not-rendered-for-epub-files

Although it looks like the :data-uri: is uncommented already: https://github.com/riscv/riscv-isa-manual/blob/main/src/riscv-unprivileged.adoc?plain=1#L45

Here's what Apple MacOS (v14.6.1) Books (v6.4) presents:

Screenshot 2024-08-21 at 9 40 25 AM
kbroch-rivosinc commented 3 months ago

Workaround was to install calibre and use that "E-book Viewer" provided instead:

Screenshot 2024-08-21 at 9 44 10 AM
TommyMurphyTM1234 commented 3 months ago

The title of this issue should probably be generalised given that this problem is not specific to Apple Books and many (most?) ePub readers seem to have problems with such images - e.g.

Also - perhaps this section should be updated to reflect the fact that many (most?) ePub apps/applications have the same problem?

wmat commented 2 months ago

Looks like this is a known issue on Mac: https://github.com/asciidoctor/asciidoctor-epub3/issues/439

wmat commented 2 months ago

This may have something to do with our usage of multiple images directories in the document header, i.e. ../docs-resources/images and /src/images. I'm looking into this.