kiwix-js-pwa
kiwix-js-pwa copied to clipboard
Inconsistencies in processing of MathML
With the latest version >2.0.0, it seems to depend on the UI options whether MathML is recognized and processed. Some strange interaction with the "Allow image manipulation" option seems to turn it on or off a bit randomly, and it works differently in SW and jQuery modes. In principle, MathML processing is only needed in jQuery mode, though there are some ZIMs which have MathML and don't have the MathJax configuration to interpret it, in which case we should fall back to the reader's implementation of KaTeX.
I've done some work to improve this situation in commit https://github.com/kiwix/kiwix-js-windows/commit/2dd5bc3641b3a98468e48d0717141804b53b4e5b. It still needs field-testing, but it now should make more intelligent decisions. The custom installation will also get out of the way in SW mode IF the MathJax script is loaded by the ZIM. In jQuery mode, the custom installation is always used if MathML is detected.
Leaving open pending more tests.