MathML

From MobileRead
Jump to: navigation, search

MathML 2.0, a W3C Recommendation was released on 21 Feb 2001. A product of the W3C Math working group, MathML is a low-level specification for describing mathematics as a basis for machine to machine communication. It provides a much needed foundation for the inclusion of mathematical expressions in Web pages.

This standard is a required part of HTML5 and is used in ePub 3 and will be available when these are implemented in eBook Readers. It permits a program to compute a formula and thus the formula can be displayed in a format that is appropriate for the screen size. It can also be interpreted audibly to allow visually impaired persons to actually hear the formula.

Here is an example:

MathML-Renderer.jpg

Contents

Advertisement

[edit] Math elements

A few elements include:

[edit] Converting MathML

ePUB version 2 is an emerging standard but it does not support MathML however it does support SVG. Now there is a free converter that will convert MathML to SVG.

[edit] A larger example

This example implements a display of the quadratic equation. Quadratic.gif

 <mrow>
  <mi>x</mi>
  <mo>=</mo>
  <mfrac>
    <mrow>
      <mrow>
        <mo>-</mo>
        <mi>b</mi>
      </mrow><nowiki>
      <mo>&#xB1;<!--PLUS-MINUS SIGN XB1--></mo>
      <msqrt>
        <mrow>
          <msup>
            <mi>b</mi>
            <mn>2</mn>
          </msup>
          <mo>-</mo>
          <mrow>
            <mn>4</mn>
            <mo>&#x2062;<!--INVISIBLE TIMES x2062--></mo>
            <mi>a</mi>
            <mo>&#x2062;<!--INVISIBLE TIMES x2062--></mo>
            <mi>c</mi></nowiki>
          </mrow>
        </mrow>
      </msqrt>
    </mrow>
    <mrow>
      <mn>2</mn>
      <mo>&#x2062;<!--INVISIBLE TIMES--></mo>
      <mi>a</mi>
    </mrow>
  </mfrac>
 </mrow>

[edit] For more information

Personal tools
Namespaces
Variants
Actions
Navigation
MobileRead Networks
Toolbox