Skip to main content

Module unicode

Module unicode 

Source
Expand description

Unicode character mapping for mathematical typesetting.

Port of LaTeXML::Util::Unicode (~350 lines). Maps base characters to Unicode Plane 1 Mathematical Alphanumeric Symbols (U+1D400–U+1D7FF) based on mathvariant style. Also handles superscript/subscript mappings and font name normalization to MathML mathvariant values.

Functions§

plane1_hackable
Plane1-hackable variants: maps bold variants to their non-bold base for partial conversion.
unicode_convert
Convert a string’s characters to the styled Unicode equivalent for the given mathvariant.
unicode_mathvariant
Normalize a LaTeXML font name to a MathML mathvariant value.