I am posting as a newbie, so please forgive any failure on my part to find previous discussion of this. I have read through quite a few posts but probably not enough. There has been a tremendous amount of discussion of MathML and Moodle.
First, let me describe what I am doing. I compose my documents in LaTeX and translate them to other markup languages. For example, I use tex4ht to produce XHTML with MathML. So it is natural for me to start there with Moodle.
MathMLinHTMLforFirefoxAndIE.js works, but the Moodle editor undermines its application. If I paste the appropriate HTML into the editor in HTML format and save immediately the all is well and everything displays correctly. However, if I return to the editor and save again. The editor makes changes to the MathML code that render it useless.
Three particular changes have caused all of the problems that I have detected so far.
- First, any "<mspace ... />" tag gets turned into "<mspace ...> ... </mspace>" so that the closing "</mspace>" is separated from the opening "<mspace ...>" causing rendering errors.
- Second, any "<mo class=...>" becomes "<mo
- Third, the "<mi>" tag gets expanded into '<mi -moz-math-font-style="italic">'
Any thoughts are much appreciated. It is highly desireable to me to use standard translators for whole documents, so that I am not maintaining several versions of a single document in order to cope with idiosyncracies of different applications. This is why I am not drawn to the ASCIIMathML.js approach.
Thanks in advance. All the best, Paul