kiwix-js-pwa icon indicating copy to clipboard operation
kiwix-js-pwa copied to clipboard

MathML in Proofwiki not showing correctly

Open Jaifroid opened this issue 3 years ago • 4 comments

This should be a simple fix to the MathML detection regex.

Jaifroid avatar Jun 02 '21 18:06 Jaifroid

This is a problem with upstream web site or mwoffliner. There is a ticket and analysis at mwoffliner.

kelson42 avatar Jun 03 '21 04:06 kelson42

Ah, OK. Though there seems to be another issue with proofwiki_en_all_maxi_2021-05.zim: it doesn't have any titles in the title pointer list (other than main page) so it's impossible to search for the ZIM contents... EDIT: I've just seen this ZIM is only 991K, so it looks like a failed scrape in any case.

Jaifroid avatar Jun 03 '21 04:06 Jaifroid

With latest ProofWiki, I can convert SOME of the equations, but many have unknown control sequences that the Math processor doesn't understand. It looks like the original MathJax configuration was not captured, as equations are not converted on library.kiwix.org (none of them).

Jaifroid avatar Jun 08 '22 07:06 Jaifroid

With the changes in commit https://github.com/kiwix/kiwix-js-windows/commit/2dd5bc3641b3a98468e48d0717141804b53b4e5b, we can now partially display equations in ProofWiki. However, there are a lot of custom macros that are simply not recognized by KaTeX. These are shown in red (see screenshot).

Ultimately, it won't be possible to support fully MathML in ProofWiki until the configuration used by the website is included in the ZIM, as its MathML is very non-standard.

image

Jaifroid avatar Jun 08 '22 17:06 Jaifroid