5 ms·
Say what you want about MathML but as of now it's the best standard we have for putting math on the web. And there seems to finally be a little bit of traction
by mindcrime 9y ago
Say what you want about MathML but as of now it's the best standard we have for putting math on the web. And there seems to finally be a little bit of traction developing w/r/t getting MathML support into Chromium (and Chrome).
Consider that, as of Feb 14 2017, the "MathML support" issue was the #8 top starred issue for Blink, Google finally seem to be paying a little bit of attention to this.
https://bugs.chromium.org/p/chromium/issues/detail?id=6606 https://bugs.chromium.org/p/chromium/issues/detail?id=6606
We (layout team and igalia) have a tentative plan to build a MathML implementation on top of LayoutNG and Custom Layout. I've marked this as blocked on CSS Custom Layout and LayoutNG.
- corndoge 9y agoCould you explain what makes in-browser MathML support better than rudimentary support of LaTeX's math mode?
- mindcrime 9y agoIf you could get in-browser support for LaTeX, that would be great. It might arguably be better than MathML. But do any browsers support that today, and is there any initiative underway to get such support? If so, I'm not aware of it. MathML, OTOH, is supported by Firefox, and I think by Safari, and it there's at least some reason to think Chrome may eventually add MathML support. Not sure where Edge stands on this. But in either case, from a pragmatic standpoint, I believe MathML is close to giving us quality "math on the web" than anything else. That said, I'd be happy to be proven wrong if something else is truly better positioned to do that.
- adrianratnapala 9y agoSince the advent of MathJax, the best bet for anyone wanting to present maths on the web has been to write the text in LaTeX and then render with MathJax. The result is that there is a large set of existing web-sites around that have LaTeX source and not MathML source. No I am no JavaScript fan, and would be very glad if mathse were supported natively in web rendering toolkits. But at least mathjax does gives some sort of workable solution: wehere "workable" means "users can read it" and "authors can write it". MathML, being unsupported by Chrome fails first thing, and MathML fails the second thing by design, because it was never really meant to be human editable.
- whorleater 9y agoWhat's wrong with mathjax?
- goatlover 9y agoThe fact that you have to load a large javascript library to faithfully render math equations. I ended up disabling it on my Jupyter notebook server because of it's load time.
- wenc 9y agoMathML rendering is unlikely to be significantly better in many use cases. Besides, once MathJax is cached, it loads pretty fast.
- Dylan16807 9y agoLoad time, not rendering time. Code in the browser won't need to be compiled over and over at runtime.
- wenc 9y agoThe render time is fairly fast on most modern browsers on desktop machines (though there's much more variance on mobile devices for some reason). For the most part, it's good enough for the professional mathematicians on mathoverflow.net, where the math can get quite hairy. (I was active there many years ago, and even then the render speed was better than acceptable)
- corndoge 9y agoSo just current state of adoption? Kinda lame but such is progress I suppose
- kevin_thibedeau 9y agoTeX is a macro language which makes it non trivial to debug. The output is generated in a non-obvious way from loosely structured input. That being said, TeX math markup is a superior, human friendly format suitable for input to a translator that outputs MathML just as most people aren't writing web page content directly in HTML.
- snakeanus 9y ago> Say what you want about MathML but as of now it's the best standard we have for putting math on the web I would argue that this holds true for (La)TeX, most sites use JS implementations of it and show the raw (La)TeX code as a fallback (or in an image form) if the user has JS disabled.
- sulizilxia 9y agoThat approach works well in terms of compatibility, but my sense is that it's usually much slower than MathML, and with equation-heavy documents can be extremely slow. I might be unaware of something, though. MathML isn't perfect, but I much prefer it to anything else on the web at the moment. I'd almost rather see an updated MathML spec than something new, especially one js-based.
- dunham 9y agoMathJaX is sluggish because it's translating stuff after the page loads (and it takes the target browser + window size into account, so it's hard to move it out of the browser). KaTeX can work as a preprocessor (but has less coverage of special environments and macros), and looks very promising to me. (And as long as you keep the original text in an attribute or hidden element, you can always migrate to something else later.) The fidelity of MathML that I've seen has been terrible. The only people I've seen make it work is Apple, and there it's only working for their proprietary iBooks files. They render parts of the equation in SVG on top of the MathML, and they've got a special XML file that's tweaking a bunch of MathML layout parameters. I've tried copy/pasting the MathML into an epub, and it looks completely different, even when viewed in the iBooks app.