XML-Technologien / MathML / Presentation markup / Token elements / Character glyphs

(Excerpt from "The MathML Handbook" by Pavi Sandhu)

A MathML expression can contain any character included in the Unicode character set. In particular, technical symbols and other extended characters can be included either using a named entity reference defined in the MathML DTD or, more generally, using the numeric character entity reference defined in Unicode.

However, in special cases, you might need to use a character that is not available in Unicode. Alternatively, you might wish to use a Unicode character but represent it using a variant of the standard glyph associated with the character. MathML provides the mglyph element specifically for use in such situations. It allows you insert a particular glyph from a particular font family at any place in your document.

The mglyph element accepts the following three attributes:

These are all required attributes; that is, they do not have a default value and must be explicitly specified in every mglyph element.

Here is an example that shows the use of the mglyph element:

R = A + B

<mrow>
  <mi>
    <mglyph fontfamily="Mathematica 6" index="82" alt="GothicCapitalR"/>
  </mi>
  <mo>=</mo>
  <mi>
    <mglyph fontfamily="Mathematica 6" index="65" alt="GothicCapitalA"/>
  </mi>
  <mo>+</mo>
  <mi>
    <mglyph fontfamily="Mathematica 6" index="66" alt="GothicCapitalB"/>
  </mi>
</mrow>

This explicitly specifies that the characters in positions R, A, and B from the Mathematica 6 font family should be used to display certain capital letters in a Gothic script.

   

 

 

 

 

nach oben