Page MenuHomePhabricator

Use PNG for math formulae (?)
Open, Needs TriagePublic

Assigned To
None
Authored By
Inductiveload
Dec 20 2020, 2:10 PM
Referenced Files
F33968536: 2020-12-22 16.24.59.jpg
Dec 22 2020, 4:26 PM
F33962634: 2020-12-20_141602_483x407_screenshot.png
Dec 20 2020, 2:16 PM
F33962630: Moonreader+ HTML view.jpg
Dec 20 2020, 2:14 PM
F33962631: Moonreader+ initial view.jpg
Dec 20 2020, 2:14 PM

Description

The following reader apps don't seem able to handle the current way of exporting formulae:

  • Moon+Reader
  • Koreader

The following do:

  • Calibre desktop viewer
  • Dropbox

Perhaps it would be more portable to the less capable ereader engines to use PNG images rather than SVG?

Example: the brace from https://en.wikisource.org/wiki/Poet_Lore/Volume_34/Number_1/Raduz_and_Mahulena#2

Moon+Reader initial view:

Moonreader+ initial view.jpg (919×1 px, 192 KB)

Moon+Reader "HTML correct" view:

Moonreader+ HTML view.jpg (1×1 px, 167 KB)

Koreader:

2020-12-20_141602_483x407_screenshot.png (407×483 px, 36 KB)

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Inductiveload moved this task from Freezer to Backlog on the WS Export board.

Errant click/drag, sorry!

Inductiveload renamed this task from Use PNG for math formuae (?) to Use PNG for math formulae (?).Dec 21 2020, 10:14 AM

(When you wrote MoonReader+, did you mean Moon+Reader?)
Are there tickets in the issue trackers of MoonReader and Koreader to support displaying SVG instead? (Wouldn't that make more sense?)

Yes I mean Moon+Reader. :-)

I have reported upstream too, but these aren't the only ones. The Kobo native reader also doesn't show the full formula, it cuts off bits of the right-hand side.

Koreader: https://github.com/koreader/koreader/issues/7026 (known issue apparently)
Moon+ Reader: doesn't have an issue tracker, sent an email
Kobo: ditto

I don't have a Kindle so I can't check that one.

Anyway, it does rather seem to me that lacklustre support is widespread enough that maybe we should consider pre-empting it with less "tricksy" images?

Aside: ImageMagick can't handle these SVGs either.

Nothing is shown in FBReader either:

2020-12-22 16.24.59.jpg (823×1 px, 482 KB)

Also, while the above example is more of an annoyance, in a document like https://en.wikisource.org/wiki/The_Michelson-Morley_Experiment_and_the_Dimensions_of_Moving_Bodies, lack of formulae is rather more fatal to the reading experience.

The Moon+ reader author has said that this is not supported by the SVG library used on Android and is therefore not gong to be fixed.