Skip to main content

Module faces

Module faces 

Source
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::MathType is the class MathType’s own output implies, taken from the TeX classes. The MTEF reader and writer and the preview use it.
  • Convention::Markup is the default class MathML’s writer and reader share. Office Math follows it too, since it records no class at all. MathML spaces mo by 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.

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 ch at in the Euclid Math Two face, when that face carries it.
extra_code
The code position ch takes 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_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 ch takes in the Symbol face’s legacy encoding.
symbol_position
The symbol-encoded face MathType writes ch in, and the position in that face.