3
T'íc( ã @ s* U d Z ddlZddlmZ dwdxdydzd{d|d}d~ddddddd
dddddgZdddddgZddddddddddddddddd d¡d¢d£d¤d¥d¦d§d¨d©dªd«gZi Zeee f i Z
eee f
i Zeee f i Zeee f i Z
eee f
d¬e e e dldmdnZde e e dldodpZe e dqdrdsZddtdudvZdS )®zTeX escaping helper.é N)ÚDictú$ú\$ú%ú\%ú&ú\&ú#ú\#Ú_ú\_Ú{ú\{Ú}ú\}ú\ú\textbackslash{}ú~ú\textasciitilde{}ú^ú\textasciicircum{}ú[ú{[}ú]ú{]}õ âú\(\checkmark\)õ âú\(\pmb{\checkmark}\)õ âú
\(\times\)õ âú\(\pmb{\times}\)õ ú{}õ â½õ â¯Úeõ â
Úiú-ú\sphinxhyphen{}ú'ú\textquotesingle{}ú`ú\textasciigrave{}ú<ú\textless{}ú>ú\textgreater{}õ ¶ú\P{}õ §ú\S{}õ â¬ú\texteuro{}õ âú
\(\infty\)õ ±ú\(\pm\)õ âú\(\rightarrow\)õ â£õ âú
\textendash{}õ â°ú\(\sp{\text{0}}\)õ ¹ú\(\sp{\text{1}}\)õ ²ú\(\sp{\text{2}}\)õ ³ú\(\sp{\text{3}}\)õ â´ú\(\sp{\text{4}}\)õ âµú\(\sp{\text{5}}\)õ â¶ú\(\sp{\text{6}}\)õ â·ú\(\sp{\text{7}}\)õ â¸ú\(\sp{\text{8}}\)õ â¹ú\(\sp{\text{9}}\)õ âú\(\sb{\text{0}}\)õ âú\(\sb{\text{1}}\)õ âú\(\sb{\text{2}}\)õ âú\(\sb{\text{3}}\)õ âú\(\sb{\text{4}}\)õ â
ú\(\sb{\text{5}}\)õ âú\(\sb{\text{6}}\)õ âú\(\sb{\text{7}}\)õ âú\(\sb{\text{8}}\)õ âú\(\sb{\text{9}}\))ÚsÚlatex_engineÚreturnc C s |dkr| j tS | j tS dS )zEscape text for LaTeX output.ÚlualatexÚxelatexN)rn ro )Ú translateÚ_tex_escape_map_without_unicodeÚ_tex_escape_map)rk rl © rs ú7/tmp/pip-build-gk9425m9/sphinx/sphinx/util/texescape.pyÚescapeg s
ru c C s |dkr| j tS | j tS dS )z"Escape text for LaTeX highlighter.rn ro N)rn ro )rp Ú!_tex_hlescape_map_without_unicodeÚ_tex_hlescape_map)rk rl rs rs rt Úhlescapep s
rx )Útextrm c C s t jdd| S )zAAdjust spacing after abbreviations. Works with @ letter or other.z
\.(?=\s|$)z.\@{})ÚreÚsub)ry rs rs rt Úescape_abbry s r| )rm c C sà x4t D ],\} }|tt| <