Expand description
Math value / box model: trimmed analog of math.ml’s math_kind
(horzBox.ml:134) and low_math_atom (math.ml:9).
Structs§
- Math
Glyph - One already-positioned glyph inside a laid-out math run: a string set in
info(font + size — a superscript carries a smaller size here), placed atdxright of the math box’s origin anddyabove its baseline (dy < 0 = below, for subscripts). The analog ofmath.ml’sLowMathGlyphafterhorz_of_low_mathhas resolved itsPHGRisingshift into an offset.
Enums§
- Math
Char Class - v0.0.6
math_char_class(primitives.cppo.ml’sMathItalic/…): which Mathematical-Alphanumeric style block a plain${…}letter resolves to (\mathrm/\mathbf/… —math.satyh’s\math-style).Ord/Hashso it can keyContext::math_variant_char_map’s override table. - Math
Kind - v0.0.6
math_kind(horzBox.ml:134-145).Prefixis a SATySFi-specific class (differentiald,\partial);Endis a synthetic list-boundary sentinel.
Functions§
- default_
math_ variant_ char - Upstream
default_math_variant_char_map(primitives.cppo.ml:358-460) as a pure function (base-offset + exception lists) rather than a big table cloned into everyContext, which stores only the runtime override map (set-math-variant-char).Nonemeans “no remap” — eitherclass/chas no Unicode Mathematical-Alphanumeric counterpart (e.g. a digit), or the letter has no assigned codepoint in that style block (a handful of Script/Fraktur/Double-Struck letters use a distinct legacy symbol instead, per Unicode’s own gaps — the hardcoded exceptions below).