## Mozilla MathML Add-ons

By fredw on Wednesday, June 18 2014, 14:25 - Permalink

Four years ago I started to write some MathML add-ons using Jetpack 0.8, now called Add-on SDK. I've recently made progress on this project, so that all the initial features are now available as Firefox add-ons (my initial hope was that the Add-on SDK would eventually be compatible with all Gecko browsers but unfortunately that still does not seem to be the case at the moment). The Mathzilla collection is available on AMO but some of the add-ons are still undergoing review. Here is an overview:

The

**math editor**feature is now provided by the TeXZilla add-on. The Arabic math support I experimented a bit later is also available.The

**conversion of content MathML**using David Carlisle's XSLT stylesheet is now in its own MathML-ctop add-on. There is another similar add-on to**add MathML3 features missing in Gecko**called MathML-mml3ff. Note that these add-ons do not rely on the Add-on SDK and will work in any Gecko browsers. However, they should probably be improved.Another add-on that does not rely on the Add-on SDK is the one

**adding mathematical fonts**called MathML-fonts. I uploaded version 2.0 to use the new OpenType MATH fonts supported in Gecko 31, but I hope that it will no longer be necessary in the future (more on this later).The

**conversion of PNG images into MathML**is now provided by the Image to MathML add-on. At the moment, it is still experimental, see the details on mozilla.dev.tech.mathml if you want to help. It only works for some Web sites using LaTeX in alt text but I wish I can find a solution for Wolfram Websites.Since many Web sites are using MathJax and because in the meantime MathJax moved to its slow HTML-CSS output by default I had to write an

**add-on to force MathJax to use native MathML**, which is available here. Actually, it's even better since it disables the mml2jax preprocessor to avoid useless work by MathJax for Web sites that already use MathML in the source code. It also prevents the MathJax menu to override the browser user interface (note that the three add-ons below provide some UI features similar to what one can find in MathJax).The

**feature to copy a MathML formula**is now provided by the MathML Copy add-on. Note that it actually copies two flavors (text and html). It is also possible to copy the original TeX source when it is provided (e.g. on MDN).A new MathML Zoom add-on provides a

**zooming feature**similar to what MathJax does.A new MathML Font Settings add-on allows to

**configure font-family and font-size of mathematics**similar to what MathJax provides. Note however, that the list of font-family choices in the context menu is based on the OpenType MATH fonts that will only be supported in Gecko 31.

I believe splitting the original Mathzilla add-on into many add-ons gives more flexibility to let people choose the desired features. As usual, help to localize the add-ons is very welcome.