For the 1.5 version, I am preparing support for the Presentation MathML. The Math-o-mir should be able to generate and export presentation MathML code. Of course, the Presentation MathML is will only be supported in the export direction.

At the moment the Content MathML won’t be supported. Neither import nor export. I decided to wait and see if users will be interested in the MathML at all. If there will be interest, I will support the Content MathML also.

How this will work? You will have to select an expression, and then choose ‘Edit->Copy MathML Code’ menu option (alternatively you will touch an expression with the mouse and press the F7 key). The MathML-P code will be generated and copied int windows clipboard. You can then paste it into your XHTML code or wherever you want.

The MathML code will start and finish with math and /math tags.

Note that you will probably have to paste it into the XHTML document as browsers wont support MathML within standard HTML. Note also that MathML support in browsers are not very excellent. I am testing with the FireFox.

Example: For the equation the Math-o-mir will generate following MathML code:

<math xmlns=”http://www.w3.org/1998/Math/MathML“>
 <mrow>
 <mi>y</mi>
 <mo>=</mo>
 <msqrt>
  <mrow>
  <msup>
   <mrow>
   <mi>r</mi>
   </mrow>
   <mrow>
   <mn>2</mn>
   </mrow>
  </msup>
  <mo>-</mo>
  <msup>
   <mrow>
   <mi>x</mi>
   </mrow>
   <mrow>
   <mn>2</mn>
   </mrow>
  </msup>
  </mrow>
 </msqrt>
 </mrow>
</math>

This gets rendered in the FireFox as below:

(BTW,  I made one MathML example page. Note that this page can only be viewed with MathML enabled browsers like FireFox or Opera. If you have the Internet Explorer you should install a MathPlayer plugin.)

Advertisements