MathML and Thunderbird
By glazou on Friday 16 November 2012, 11:21 - Mozilla - Permalink
Frédéric Wang wrote an interesting article about sending MathML inside HTML-based emails. And since I found his solution of inserting manually the MathML elements in the markup quite painful, I did what I usually do in such cases: I wrote an add-on...
So this add-on adds a new button to the formatting toolbar of message composition windows (the π button at the right-hand side of the main window), a new menu entry under Insert and both open a dialog allowing to insert/edit MathML through AsciiMathML. Hope you'll find it useful, it's available from here and it's not a 1.0 yet.
Update: now submitted to AMO, feel free to review it !
/* enjoy */
Comments
Thank you, it works great! There are certainly some improvements to do like giving the choice between inline or display modes for formulas, or removing these weird attributes like fontfamily="" on the <math>, but I guess it is more ASCIIMathML issues. Anyway, that's definitely better than having to paste the HTML source
Do you mind if I submit it to AMO? I believe it would be a very good candidate for the Mathzilla collection:
https://addons.mozilla.org/firefox/...
Also, I'm still using Thunderbird ESR, but changing the minimum version to 10.0 does not seem to give any incompatibility problems.
Thanks again.
@Frédéric: let me submit it myself
Something’s wrong. When I go from this incomplete version of the quadratic formula http://mcepl.fedorapeople.org/tmp/b... to the complete one http://mcepl.fedorapeople.org/tmp/a... rendering collapses.
Using the addon from AMO on Thunderbird 17 (beta).
@Matěj: read better the documentation and put leading/trailing `:
`x_(1,2)=(-b+-srt(b^2-4ac))/(2a)`
will work fine
Right ... that helped. The documentation seemed to be a bit confusing to me, so I have missed this.
Awesome! Great job Daniel!
Just curious, in college I remember using a math application that allowed WYSIWYG creation/editing of math. Has anyone created code that we could use for this purpose?
So I read on twitter that MathBird was rejected because of ASCIIMathML.js
However, I just discovered this other add-on which has passed "partial review":
https://addons.mozilla.org/addon/wi...
This add-on works for me and I see that it contains a WikiMathConverter.js adapted from LaTeXMathML.js (itself adapted from ASCIIMathML.js, with LaTeX syntax only). So perhaps it would be possible to use this file to make (a version of) MathBird accepted?