1LaTeXML::Util::Unicode(U3s)er Contributed Perl DocumentatLiaoTneXML::Util::Unicode(3)
2
3
4

NAME

6       "LaTeXML::Util::Unicode" - Unicode Utilities.
7

SYNOPSIS

9       "LaTeXML::Util::Unicode" provides several useful utilities for
10       manipulating Unicode for LaTeXML, mostly to assist with mathematics.
11

DESCRIPTION

13       "$string = UTF($codepoint);"
14           Converts the given numeric codepoint to unicode.  This is useful
15           for codepoints under 255, such as UTF(0xA0) for non-breaking space,
16           which perl does not reliably handle.
17
18       "$mathvariant = unicode_mathvariant($font);"
19           Converts the font to a Unicode-appropriate mathvariant.  The font
20           should be in the string form generally found during post-
21           processing, eg "bold italic".  The mathvariant returned can be used
22           in MathML, or passed to "unicode_convert" to convert strings into
23           the given style.
24
25       "$unicode = unicode_convert($string,$style);"
26           Converts the given string to the codepoints correspinding to the
27           requested style.  Returns undef if not all characters in the string
28           can be converted.  The recognized styles are "bold", "italic",
29           "bold-italic", "sans-serif", "bold-sans-serif",
30           "sans-serif-italic", "sans-serif-bold-italic", "monospace",
31           "script", "bold-script", "fraktur", "bold-fraktur",
32           "double-struck", as well as "superscript" and "subscript".
33
34
35
36perl v5.38.0                      2023-07-19         LaTeXML::Util::Unicode(3)
Impressum