View Single Post
Old 01-29-2024, 08:05 PM   #97
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,830
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by KevinH View Post
TeX equations are not part of the epub3 spec. The spec talks only about mathml. In fact, the MathJax configuration that Sigil uses actually disables TeX support to minimize the size of the plugin itself. Also the TeX equations requires additiinal html and css support as well as the mathjax fonts. Supporting it in Sigil will not happen as it interferes with click to sync between Preview and CodeView, bloats MathJax, and is not epub3 spec compliant.

As for the Readium Reader plugin, it does not support Mathml at all without additional code to pull it in over the net. My guess is that is what you are running into.

So supporting TeX equations I will leave for other
Hi Kevin;

I see I didn't explain myself very well.
  • Yes, I'm aware that TeX equations are not part of the epub3 protocol. If it were, I wouldn't need a javascript to enable the feature.
  • I don't need that Sigil supports TeX equations; it's enough that Sigil supports javascript; it's enough that a program or app supports javascript in order to get TeX formulas displayed by mean of MathJax javascript.
  • TeX equations doesn't need svg fonts anymore (MathJax 3.x.). According to the new version, tex-svg.js includes:

    '../startup/init.js';
    './preload.js';
    '../core/core.js';
    '../input/tex/tex.js';
    '../output/svg/svg.js';
    '../output/svg/fonts/tex/tex.js'; // This script replaces the svg fonts in previous version of MathJax
    '../ui/menu/menu.js';
    '../a11y/assistive-mml/assistive-mml.js';
    '../startup/startup.js';

  • TeX formulas are displayed without any other resources than the tex-svg.js script, at least, in all the apps and programs I tested (Sigil, BibiReader, EpubJS Reader, Calibre, Thorium, Foliate, Koodo Reader, NeatReader, Lithium, Reasily, Gitden, PocketBook, Aldiko Next, BookFusion, Infinity Reader, OverDrive, BlueFire Reader and I think that will work in any epub reader with support for javascript).
  • Readium does accept MathML equations. Open the epub I attached in my previous post, remove the mml-svg.js script, run the Readium plugin and you'll see the plugin accepts MathML. In fact, Thorium, based on Readium, supports MathML.

What do I ask then? What I ask is why Readium is not loading the javascript files. I think is a bug but I can't know it because I don't have the way to trace the script loading in Readium (I don't have an "Inspector" there). If you can trace the script when is loaded by the plugin, I will thank if you can tell me where the error happens. That is what I'm asking (I don't need you do anything with Sigil). But if you can't do that, is ok, no problem.

Last edited by RbnJrg; 01-29-2024 at 08:16 PM.
RbnJrg is offline   Reply With Quote