o $a@sUdZddlZddlmZgdZgdZgdZiZeee fe d<iZ eee fe d<iZ eee fe d <iZ eee fe d <iZeee fe d <dd e d e de fddZdd e d e de fddZde de fddZdddZdS)z sphinx.util.texescape ~~~~~~~~~~~~~~~~~~~~~ TeX escaping helper. :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. N)Dict))$z\$)%z\%)&z\&)#z\#)_\_){z\{)}z\})\z\textbackslash{})~z\textasciitilde{})^z\textasciicircum{})[z{[})]z{]})u✓z\(\checkmark\))u✔z\(\pmb{\checkmark}\))u✕z \(\times\))u✖z\(\pmb{\times}\))uz{})u⎽r)uℯe)uⅈi))-\sphinxhyphen{})'z\textquotesingle{})`z\textasciigrave{})z\textgreater{}))¶z\P{})§z\S{})u€z \texteuro{})u∞z \(\infty\))±z\(\pm\))u→\(\rightarrow\))u‣r)u–z \textendash{})u⁰z\(\sp{\text{0}}\))¹z\(\sp{\text{1}}\))²z\(\sp{\text{2}}\))³z\(\sp{\text{3}}\))u⁴z\(\sp{\text{4}}\))u⁵z\(\sp{\text{5}}\))u⁶z\(\sp{\text{6}}\))u⁷z\(\sp{\text{7}}\))u⁸z\(\sp{\text{8}}\))u⁹z\(\sp{\text{9}}\))u₀z\(\sb{\text{0}}\))u₁z\(\sb{\text{1}}\))u₂z\(\sb{\text{2}}\))u₃z\(\sb{\text{3}}\))u₄z\(\sb{\text{4}}\))u₅z\(\sb{\text{5}}\))u₆z\(\sb{\text{6}}\))u₇z\(\sb{\text{7}}\))u₈z\(\sb{\text{8}}\))u₉z\(\sb{\text{9}}\)tex_replace_map_tex_escape_map_tex_escape_map_without_unicode_tex_hlescape_map!_tex_hlescape_map_without_unicodes latex_enginereturncC|dvr |tS|tS)zEscape text for LaTeX output.lualatexxelatex) translater!r r$r%r-7/usr/lib/python3/dist-packages/sphinx/util/texescape.pyescapeo  r/cCr')z"Escape text for LaTeX highlighter.r()r+r#r"r,r-r-r.hlescapexr0r1textcCstdd|S)zAAdjust spacing after abbreviations. Works with @ letter or other.z \.(?=\s|$)z.\@{})resub)r2r-r-r. escape_abbrsr5cCstD]\}}|tt|<|tt|<dtt|<qtD] \}}|tt|<qdttd<tD]\}}|tt|<dtt|<q.tD]\}}|dvrJqA|tt|<|tt|<qAtD] \}}|tt|<qYdS)Nrrrz[]{}\) tex_replacementsr ordr!rascii_tex_replacementsunicode_tex_replacementsr"r#)abr-r-r.inits$          r<)N)r&N)__doc__r3typingrr6r8r9rintstr__annotations__r r!r"r#r/r1r5r<r-r-r-r.s !'