LaTeXM...nicode(3pm)
ok bestie, welcome to LaTeXM...nicode(3pm) โ straight outta the User Contributed Perl Documentation, and it's literally the cutest little Unicode toolbox for LaTeXML ๐ฆโจ
๐ NAME ๐
LaTeXML::Util::Unicode โ Unicode Utilities. periodt ๐
๐ธ SYNOPSIS ๐ธ
LaTeXML::Util::Unicode gives you several genuinely useful utilities for manipulating Unicode for LaTeXML, and it's mostly there to help you out with mathematics ๐งฎโจ (iykyk, math is the main character here)
๐ DESCRIPTION ๐
okay so here are the three functions, and yes every single one of them slays in its own way ๐ซถ
โญ $string = UTF($codepoint);
Converts the given numeric codepoint to unicode โจ This one is your bestie for codepoints under 255 โ think UTF(0xA0) for non-breaking space โ because perl does not reliably handle those ๐ญ Like, it just doesn't. So use this instead, fr fr.
โญ $mathvariant = unicode_mathvariant($font);
Converts the font to a Unicode-appropriate mathvariant ๐ The font should be in the string form you generally find during post-processing, eg "bold italic". The mathvariant that comes back can be used in MathML, or passed straight into unicode_convert to convert strings into that given style ๐ Two-for-one, we love to see it.
โญ $unicode = unicode_convert($string,$style);
Converts the given string to the codepoints corresponding to the requested style ๐ Returns undef if not all characters in the string can be converted โ so like, vibe check your input, bestie ๐
The recognized styles are literally:
"bold""italic""bold-italic""sans-serif""bold-sans-serif""sans-serif-italic""sans-serif-bold-italic""monospace""script""bold-script""fraktur""bold-fraktur""double-struck"
...as well as "superscript" and "subscript" ๐ That's the whole menu and every single one of them ate.
ngl bestie, ifunicode_converthands you backundef, that means something in your string couldn't be converted to the style you asked for โ no cap, that's just what the page says ๐
and that's the whole page!! this was perl v5.40.1, dated 2025-11-16, from LaTeXM...nicode(3pm) โ mwah, go convert some codepoints ๐๐ธ
๐ฆ where this page comes from
- ubuntu resolute: latexml 0.8.8-4 ยท PD
- ubuntu stonking: latexml 0.8.8-4 ยท PD
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms