TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

MathML in Chromium

118 pointsby aplaiceabout 6 years ago

8 comments

fdejabout 6 years ago
I really wish browsers would just render formulas directly from TeX. Let me write &lt;tex&gt;\sqrt{1+x}&lt;&#x2F;tex&gt; or whatever. TeX is the de facto standard for writing mathematical formulas. That browsers don&#x27;t render it natively just screams of NIH syndrome on the part of browser and web standards developers.<p>MathML still hasn&#x27;t caught on after two decades, for three reasons: 1) not working in all browsers; 2) even when it worked, the rendering was often buggy or plain ugly; 3) no one wants to write MathML directly.<p>MathJax instantly solved all problems, which made it an overnight success. MathML might be able to overcome 1) and 2), but 3) should not be underestimated. MathJax will be around as long as it is the most convenient solution for showing equations in a browser (no user-side compilation required), and rendering times and network traffic will suffer accordingly.
评论 #19346092 未加载
评论 #19347028 未加载
评论 #19345844 未加载
评论 #19347212 未加载
评论 #19347016 未加载
评论 #19345784 未加载
评论 #19346379 未加载
评论 #19347723 未加载
评论 #19347355 未加载
est31about 6 years ago
It&#x27;s very good news that this has finally started. Wikipedia, probably the biggest website that displays formulas, still renders them to SVG images.<p>Igalia had already been improving WebKit&#x27;s [1] MathML renderer and they had a fundraiser for the Chromium MathML work for a long time. Now they seem to collected enough to start with it. It&#x27;s one of the great advantages of open source that a small company like Igalia can just go and improve multiple rendering engines used by billions of people.<p>[1]: <a href="https:&#x2F;&#x2F;webkit.org&#x2F;blog&#x2F;6803&#x2F;improvements-in-mathml-rendering&#x2F;" rel="nofollow">https:&#x2F;&#x2F;webkit.org&#x2F;blog&#x2F;6803&#x2F;improvements-in-mathml-renderin...</a>
评论 #19346502 未加载
评论 #19347227 未加载
评论 #19345586 未加载
notthingnillabout 6 years ago
You can also use a computer algebra system (CAS) to perform computations and get the output in mathml, for example the free CAS maxima.<p>wxMaxima is something like jupyter notebook but developed with wxWindows by a solo developer. ?? is help for command<p>I just copy pasted:<p>(%i2) ?? mathml; -- Function: mathml_display (&lt;form&gt;) Produces MathML output. (%i1) load(&quot;alt-display.mac&quot;)$ (%i2) set_alt_display(2,mathml_display); &lt;math xmlns=&quot;<a href="http:&#x2F;&#x2F;www.w3.org&#x2F;1998&#x2F;Math&#x2F;MathML&quot;&gt;" rel="nofollow">http:&#x2F;&#x2F;www.w3.org&#x2F;1998&#x2F;Math&#x2F;MathML&quot;&gt;</a> &lt;mi&gt;mlabel&lt;&#x2F;mi&gt; &lt;mfenced separators=&quot;&quot;&gt;&lt;msub&gt;&lt;mi&gt;%o&lt;&#x2F;mi&gt; &lt;mn&gt;2&lt;&#x2F;mn&gt;&lt;&#x2F;msub&gt; &lt;mo&gt;,&lt;&#x2F;mo&gt;&lt;mi&gt;done&lt;&#x2F;mi&gt; &lt;&#x2F;mfenced&gt; &lt;&#x2F;math&gt; (%o2) true
评论 #19345583 未加载
dtfabout 6 years ago
Here&#x27;s an example of why MathML is attractive as a rendering layer (try Firefox vs Chrome, and look at native MathML latency vs MathJax emulation):<p><a href="https:&#x2F;&#x2F;runarberg.github.io&#x2F;ascii2mathml&#x2F;" rel="nofollow">https:&#x2F;&#x2F;runarberg.github.io&#x2F;ascii2mathml&#x2F;</a><p>(it helps to have the LaTeX Computer Modern fonts installed locally, which for some reason aren&#x27;t imported on this page)
评论 #19347564 未加载
评论 #19347582 未加载
评论 #19346607 未加载
bjoliabout 6 years ago
Not in any way affiliated, but Igalia is a cool company. They pay their employees to work on OSS projects as a part of their job. Andy Wingo work(ed?)there and they financed quite a bit of guile development as a way to make him develop his compiler and runtime skills.
sanxiynabout 6 years ago
My personal opinion is that MathML should die. MathJax is here today and works.
评论 #19345170 未加载
评论 #19345519 未加载
评论 #19345295 未加载
评论 #19345285 未加载
评论 #19345255 未加载
评论 #19345108 未加载
评论 #19346088 未加载
评论 #19345083 未加载
评论 #19345212 未加载
75dvtwinabout 6 years ago
this is great news.<p>Does anybody know if this will translate to chromium based web toolkits (eg QT), and MS Edge (soon to be based on chromium), and therefore, React-XP [1] ?<p>[1]<a href="https:&#x2F;&#x2F;github.com&#x2F;Microsoft&#x2F;reactxp" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Microsoft&#x2F;reactxp</a>
mymythisisthisabout 6 years ago
I hope MathML gets more support. It is a bit unwieldy, but it seems like a simple solution to displaying maths on a simple HTML page, here is my example.<p><a href="http:&#x2F;&#x2F;gron.ca&#x2F;algebra&#x2F;023.html" rel="nofollow">http:&#x2F;&#x2F;gron.ca&#x2F;algebra&#x2F;023.html</a>