LaTeX:...Tables(3pm)

🌸 NAME 🌸

LaTeX::ToUnicode::Tables β€” Character tables for LaTeX::ToUnicode

okay bestie, this is the LaTeX:...Tables(3pm) page from User Contributed Perl Documentation πŸ’–. It's literally the character-table stash for LaTeX::ToUnicode, and we're about to go through every constant like it's a group chat screenshot. No skipping, no cap. ✨

✨ VERSION ✨

version 0.54 β€” that's the version, bestie. πŸŽ€

πŸŽ€ CONSTANTS πŸŽ€

πŸ¦‹ @LIGATURES πŸ¦‹

Standard TeX character sequences (not \commands) that need to be replaced: --- becomes U+2014 (em dash), etc. The list includes: em dash, en dash, inverted exclamation, inverted question, left double quote, right double quote, left single quote, right single quote. They get replaced in that order. πŸ’…

🌈 %MARKUPS 🌈

A hash where the keys are names of formatting commands like \tt, without the backslash. Namely: bf cal em it rm sc sf sl small tt. The values are the obvious HTML equivalent where one exists, given as the tag name without angle brackets: b em i tt. Otherwise the value is the empty string. 🫢

πŸ”₯ %ARGUMENT_COMMANDS πŸ”₯

A hash where the keys are the names of TeX commands taking arguments that we handle, without the backslash, such as enquote. Each value is a reference to a list of two strings: the first is the text to insert before the argument, and the second is the text to insert after. For example, for enquote the value is ["`", "'"]. The inserted text is subject to further replacements. πŸ‘‘

Three such commands are currently handled: \emph, \enquote, and \path (although \path does not require its argument to be in braces, that is the only form we recognize). We also recognize and ignore a few other commands taking arguments, such as \vadjust and \textgreek. (The idea of ignoring \textgreek is that if the argument is UTF-8 Greek characters, most likely they will be rendered fine by the browser or whatever. We can't solve the hyphenation problem.) 😭

πŸ’œ %CONTROL_SYMBOLS πŸ’œ

A hash where the keys are non-alphabetic \commands (without the backslash), other than accents and special cases. These don't take arguments. Although some of these have Unicode equivalents, such as the \, thin space, it seems better to keep the output as simple as possible; small spacing tweaks in TeX aren't usually desirable in plain text or HTML.

The values are single-quoted strings '\x{...}', not double-quoted literal characters "\x{...}", to ease future parsing of the TeX/text/HTML. 🧚

This hash is necessary because TeX's parsing rules for control symbols are different from control words: no space or other token is needed to terminate control symbols. ⭐

πŸ“ %CONTROL_WORDS πŸ“

Keys are names of argument-less commands, such as \LaTeX (without the backslash). Values are the replacements, often the empty string. πŸ™ˆ

🌟 %SYMBOLS 🌟

Keys are the commands for extended characters, such as \AA (without the backslash.) πŸ’«

πŸŽ€ %ACCENT_SYMBOLS πŸŽ€

Two-level hash of accented characters like \'{a}. The keys of this hash are the accent symbols (without the backslash), such as ` and '. The corresponding values are hash references where the keys are the base letters and the values are single-quoted '\x{....}' strings. 🌸

πŸ’– %ACCENT_LETTERS πŸ’–

Same as %ACCENT_SYMBOLS, except the keys are accents that are alphabetic, such as \c (without the backslash as always). πŸ’…

As with control sequences, it's necessary to distinguish symbols and alphabetic commands because of the different parsing rules. πŸ¦‹

πŸ‘‘ %GERMAN πŸ‘‘

Character sequences (not necessarily commands) as defined by the package german/ngerman, e.g. ""a" (a with umlaut), ""s" (german sharp s) or "`" (german left quote). Note the missing backslash. 🫢

The keys of this hash are the literal character sequences. ✨

πŸ’Œ AUTHOR πŸ’Œ

Gerhard Gossen <gerhard.gossen@googlemail.com>, Boris Veytsman <boris@varphi.com>, Karl Berry <karl@freefriends.org> β€” absolute icons, no cap. πŸ˜­πŸ’–

Repo link: <https://github.com/borisveytsman/bibtexperllibs> 🌈

Copyright 2010-2026 Gerhard Gossen, Boris Veytsman, Karl Berry. πŸ‘‘

This is free software; you can redistribute it and/or modify it under the same terms as the Perl5 programming language system itself. πŸ’…


xoxo, bestie β€” this page was built from perl v5.40.1, dated 2026-07-05, and it's the LaTeX:...Tables(3pm) manual page. mwah πŸŽ€πŸ’‹

πŸ“¦ where this page comes from