哪些浏览器支持 MathML?
我们很快就会开始开发 TeX 到 MathML 的转换器。所以,我想知道哪些浏览器(从哪个版本开始)正式支持 MathML?谢谢
We are going to start working on TeX to MathML translator soon. So, I am wondering which browsers (and starting from what version) do officially support MathML? Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
几乎没有,只有 Firefox 和 Safari 可以处理 MathML。
请参阅 https://caniuse.com/mathml
但有一个解决方法可以替代HTML 和 CSS 不支持的 MathML 公式:MathJax.js
来说将 JavaScript 文件添加到您的网页中,您的页面将在几乎所有浏览器上正确显示。在 Firefox 上,这基本上是一个空操作。
完成此操作后,您可能会考虑切换回 TeX 而不是 MathML。 MathJax 也支持这一点。 TeX 比 MathML 更古老、更短、功能更优越,而且同样对人类来说难以阅读。
在这种情况下,脚本包含应该是
Almost none, only Firefox and Safari can handle MathML.
See https://caniuse.com/mathml
But there is a workaround available that replaces the unsupported MathML formulas by HTML and CSS: MathJax.js
Simply put the JavaScript file into your web page and your page will show correctly on almost all browsers. On Firefox this is basically a no-op.
Once you have done that you might think about switching back to TeX instead of MathML. This is supported by MathJax as well. TeX is older, shorter and functional superior to MathML, and well, similarly unreadable for humans.
In this case the script include should be
维基百科上有一个关于浏览器支持的大表。
在撰写本文时,似乎只有 Firefox 支持大玩家原生的 MathML。
There is a big table of browser support on Wikipedia.
At the time of writing, it seems only Firefox supports MathML natively of the big players.
我使用 Firefox 很长一段时间来查看 MathML 文档,直到我发现平方根符号出现变形,特别是当它位于具有“高”分子和分母的分数旁边时。然后,我尝试了Pale Moon(最新XP版本),发现该浏览器没有出现失真现象。
为了获得最佳渲染效果,请转到 Pale Moon
Options|Advanced|General
设置并禁用“使用 Firefox 兼容模式”复选框(选中此选项时,它会减小分数表达式中的字符大小) )。如果您是 Macintosh 用户,则该旧版本的 Pale Moon 不适合您的平台,因此请尝试使用非常旧版本的 Firefox。我测试了 24.8.1 版本,发现它很好地呈现了平方根符号。
I used Firefox for a long time, to view MathML documents, until I discover a distortion in square root symbol, specially when it was beside fractions with "tall" numerators and denominators. Then, I tried Pale Moon (last XP version) and discovered that the distortion did not happen with that browser.
For best rendering, go to Pale Moon
Options|Advanced|General
settings and disable "Use Firefox Compatibility mode" checkbox (when this option is checked, it decreases the size of the characters in a fraction over fraction expression).If you are a Macintosh user, this old version of Pale Moon does not exist for you platform, so try a very old version of Firefox. I tested version 24.8.1 and I saw that it renders the square root symbol very well.