
    FeB                        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ZdddZddZddZy)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_unicodec                ^    |dv r| j                  t              S | j                  t              S )zEscape text for LaTeX output.lualatexxelatex)	translater"   r!   slatex_engines     7/usr/lib/python3/dist-packages/sphinx/util/texescape.pyescaper.   h   s*    ..{{:;;{{?++    c                ^    |dv r| j                  t              S | j                  t              S )z"Escape text for LaTeX highlighter.r&   )r)   r$   r#   r*   s     r-   hlescaper1   q   s+    ..{{<=={{,--r/   c                0    t        j                  dd|       S )zAAdjust spacing after abbreviations. Works with @ letter or other.z
\.(?=\s|$)z.\@{})resub)texts    r-   escape_abbrr6   z   s    66-400r/   c                    t         D ];  \  } }|t        t        |       <   |t        t        |       <   dt        t        |       <   = t
        D ]  \  } }|t        t        |       <    dt        t        d      <   t        D ])  \  } }|t        t        |       <   dt        t        |       <   + t         D ].  \  } }| dv r|t        t        |       <   |t        t        |       <   0 t        D ]  \  } }|t        t        |       <    y )Nr   r   r   z[]{}\)	tex_replacementsr!   ordr"   r    ascii_tex_replacementsunicode_tex_replacementsr#   r$   )abs     r-   initr>      s     &1"#A23'A/"%A& ' $1"#A$
 1C#CH-( &1"#A"%A&
 ! 61=$%#a&!45)#a&1	6 ) &1$%#a&!&r/   )N)r+   strr,   z
str | Nonereturnr?   )r5   r?   r@   r?   )r@   None)__doc__
__future__r   r3   r8   r:   r;   r    __annotations__r!   r"   r#   r$   r.   r1   r6   r>    r/   r-   <module>rF      ss     " 	 B "  N #% $"$ $24  4$& > &46 !> 6,.1
&r/   