
    -Ph                        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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                r    |dv r|                      t                    S |                      t                    S )zEscape text for LaTeX output.   xelatexlualatex)	translater"   r!   r%   r'   s     U/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/sphinx/util/texescape.pyescaper1   j   s3    ...{{:;;;{{?+++    c                r    |dv r|                      t                    S |                      t                    S )z"Escape text for LaTeX highlighter.r+   )r.   r$   r#   r/   s     r0   hlescaper4   s   s4    ...{{<==={{,---r2   textc                .    t          j        dd|           S )zAAdjust spacing after abbreviations. Works with @ letter or other.z
\.(?=\s|$)z.\@{})resub)r5   s    r0   escape_abbrr9   |   s    6-4000r2   Nonec                 ^   t           D ]J\  } }|t          t          |           <   |t          t          |           <   dt          t          |           <   Kt
          D ]\  } }|t          t          |           <   dt          t          d          <   t          D ]3\  } }|t          t          |           <   dt          t          |           <   4t           D ]8\  } }| dv r
|t          t          |           <   |t          t          |           <   9t          D ]\  } }|t          t          |           <   d S )Nr   r   r   z[]{}\)	tex_replacementsr!   ordr"   r    ascii_tex_replacementsunicode_tex_replacementsr#   r$   )abs     r0   initrB      s0     & &1"#A23'A/"%A ' $ $1"#A 1C#CHH-( & &1"#A"%A  6 61==$%#a&&!45)#a&&11( & &1$%#a&&!!& &r2   )N)r%   r&   r'   r(   r)   r&   )r5   r&   r)   r&   )r)   r:   )__doc__
__future__r   r7   r<   r>   r?   r    __annotations__r!   r"   r#   r$   r1   r4   r9   rB    r2   r0   <module>rG      s      " " " " " " 				   F   "      N #% $ $ $ $"$ $ $ $ $24  4 4 4 4$&  & & & &46 ! 6 6 6 6, , , , ,. . . . .1 1 1 1
& & & & & &r2   