o
    Ni>                     @  s   U d Z ddlmZ ddlZg dZg dZg dZi Zded< i Z	ded	< i Z
ded
< i Zded< i Zded< ddddZddddZdddZdddZdS ) zTeX escaping helper.    )annotationsN))$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}\))u   ﻿z{})u   ⎽r   )u   ℯe)u   ⅈi))-\sphinxhyphen{})'z\textquotesingle{})`z\textasciigrave{})<z\textless{})>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}}\)zdict[int, str]tex_replace_map_tex_escape_map_tex_escape_map_without_unicode_tex_hlescape_map!_tex_hlescape_map_without_unicodesstrlatex_engine
str | Nonereturnc                 C     |dv r	|  tS |  tS )zEscape text for LaTeX output.lualatexxelatex)	translater!   r    r$   r&    r/   I/home/ubuntu/.local/lib/python3.10/site-packages/sphinx/util/texescape.pyescapeh      

r1   c                 C  r)   )z"Escape text for LaTeX highlighter.r*   )r-   r#   r"   r.   r/   r/   r0   hlescapeq   r2   r3   textc                 C  s   t dd| S )zAAdjust spacing after abbreviations. Works with @ letter or other.z
\.(?=\s|$)z.\@{})resub)r4   r/   r/   r0   escape_abbrz   s   r7   Nonec                  C  s   t D ]\} }|tt| < |tt| < dtt| < qtD ]
\} }|tt| < qdttd< tD ]\} }|tt| < dtt| < q.t D ]\} }| dv rJqA|tt| < |tt| < qAtD ]
\} }|tt| < qYd S )Nr   r   r   z[]{}\)	tex_replacementsr    ordr!   r   ascii_tex_replacementsunicode_tex_replacementsr"   r#   )abr/   r/   r0   init   s$   r?   )N)r$   r%   r&   r'   r(   r%   )r4   r%   r(   r%   )r(   r8   )__doc__
__future__r   r5   r9   r;   r<   r   __annotations__r    r!   r"   r#   r1   r3   r7   r?   r/   r/   r/   r0   <module>   s    !'	
	