Expand description
The character-to-class conventions the formats follow.
MTEF records the typeface of every character but not its atom class, Office Math records neither, and MathML records the class only where it differs from its own defaults. Every reader therefore derives a character’s class from the character itself, and the writer of a format that has defaults needs the same answer to know when it has to write the class out. The preview also needs it, because it draws a character with the face MathType drew it with.
Two conventions cover that work, and each format names the one it follows:
Convention::MathTypeis the class MathType’s own output implies, taken from the TeX classes. The MTEF reader and writer and the preview use it.Convention::Markupis the default class MathML’s writer and reader share. Office Math follows it too, since it records no class at all. MathML spacesmoby its operator dictionary rather than by the TeX classes, so the two conventions disagree about/, which is a binary operator in the markup convention and an ordinary character in MathType, about:, which is punctuation in the markup convention and a relation in MathType, and about the characters MathType classes as operators or relations while the markup convention leaves them ordinary. Those are the circled n-ary operators 2A00 and 2A03 to 2A06, the union and intersection signs 2229 and 222A, the arrows 2191, 2193, 2194, 21A6, 27F9 and 27FA, and the relations 220B, 2223, 2224, 2225, 22A5, 224D, 226A and 226B.
What a format adds on top of the class stays in that format’s crate: the fence, separators
and class markers mt-mathml writes on mo, the delimiters each markup format spells a
Delim as, and the operator spacing both formats leave to the renderer.
Enums§
- Convention
- The character-classification convention a format follows.
Constants§
- SYMBOL_
RADICAL - The radical glyph MathType names in the Symbol face at its legacy position
D6.
Functions§
- class_
of_ char - The atom class a bare character carries in the MathType convention.
- class_
of_ char_ with - The atom class a bare character carries in
convention. - euclid_
math_ two_ position - The position MathType draws
chat in the Euclid Math Two face, when that face carries it. - extra_
code - The code position
chtakes in MT Extra’s legacy encoding. - extra_
letter - The letter and face a letterlike symbol in the BMP stands for.
- extra_
positions - The characters MT Extra places, with their positions, sorted by character.
- extra_
symbol - The letterlike symbol in the BMP MathType saves a styled letter as, when Unicode has one.
- is_cjk
- Whether MathType draws the character from the CJK face.
- is_
extra_ face - Whether MathType saves the character in the extra face.
- is_
integral_ sign - Whether the character is an integral sign.
- is_
large_ op_ with - Whether the character takes limits when it carries scripts in
convention. - is_
symbol_ face - Whether MathType draws the character from a symbol-encoded face: operators, relations and the ordinary symbols the text face has no glyph for.
- symbol_
code - The code position
chtakes in the Symbol face’s legacy encoding. - symbol_
position - The symbol-encoded face MathType writes
chin, and the position in that face. - symbol_
private_ use_ code - The legacy position of a private-use codepoint MathType names a Symbol glyph by.