ok

Mini Shell

Direktori : /opt/cloudlinux/venv/lib/python3.11/site-packages/guppy/gsl/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/guppy/gsl/__pycache__/Latex.cpython-311.pyc

�

�܋f�d����Gd�d��ZGd�de��ZGd�de��ZGd�de��ZGd�d	��ZGd
�d��ZGd�d
��ZdS)c��eZdZdZd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�ZddiZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z d �Z!d!�Z"d"�Z#d#�Z$d$�Z%d%�Z&d&�Z'd'�Z(d(�Z)d)�Z*d*�Z+d+�Z,d,�Z-d-�Z.d.�Z/d/�Z0d0�Z1d1�Z2d2�Z3d3�Z4d4�Z5d5�Z6d6�Z7d7�Z8d8�Z9d9�Z:d:�Z;d;�Z<d<�Z=d=�Z>d>�Z?d?�Z@d@�ZAdA�ZBdB�ZCdC�ZDdD�ZEdE�ZFdF�ZGdGS)H�	Doc2Latex)
�tiny�
scriptsize�footnotesize�small�
normalsize�large�Large�LARGE�huge�Hugec��||_||_t|��|_|jj|_||_g|_g|_d|_d|_	t|j���d��|_
d|_d|_g|_d|_d|_d|_g|_|�|��dS)N�rmr�)�mod�doc�Encoder�encoder�encode�node�out�ms�mode�	cur_style�list�sizes�index�cur_size�
document_lang�document_title�document_metas�latex_list_nesting�
latex_mode�noindent�authors�accept)�selfrrrs    �b/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/guppy/gsl/Latex.py�__init__zDoc2Latex.__init__s����������s�|�|����l�)�����	���������	�����T�Z�(�(�.�.�|�<�<��
�!���"��� ���"#��������
�������D������c�t�|jj}|jD]#}	|�|���#|$rY� wxYwdS�N)r�
ReportedError�childrenr&)r'r�E�chs    r(�_visit_childrenzDoc2Latex._visit_childrens]���H�"���-�	�	�B�
��	�	�$�������
�
�
���
����	�	s�-�5�5c��|j}|}|dkrd}n/|t|j��krt|j��dz
}|�d|j|z��||_|jdkr|�|j|��n|�|��|�d��||_dS)Nr��{\%s r�})r�lenr�appendr�style�
arg_accept)r'�sizer�osize�sis     r(�abs_sizezDoc2Latex.abs_size"s����
��
��
��6�6��B�B�
�3�t�z�?�?�
"�
"��T�Z���1�$�B����H�t�z�"�~�-�.�.�.���
��>�T�!�!��J�J�t�~�t�,�,�,�,��O�O�D�!�!�!����C������
�
�
r*c�:�|j�|��dSr,)rr7)r'�xs  r(r7zDoc2Latex.append2s�����������r*c�B�|�|j|z|��dSr,)r=r)r'�deltars   r(�changed_sizezDoc2Latex.changed_size5s#���
�
�d�m�e�+�T�2�2�2�2�2r*c�F�d|z}|jjj|g|�Ri|��dS)NzDoc2Latex: )r�env�error)r'�msg�args�kwdss    r(rEzDoc2Latex.error8s9���c�!�������3�.��.�.�.��.�.�.�.�.r*c�6�d�|j��S)N�)�joinr)r's r(�	get_latexzDoc2Latex.get_latex<s���w�w�t�x� � � r*c�j�|jr+|�d|jz|jd��dSdS)NzNo children allowed for %r.r)r.rE�tag�r'rs  r(�no_childrenzDoc2Latex.no_children?sM���=�	3��J�J�4��x� �!%��q�!1�
3�
3�
3�
3�
3�	3�	3r*c���|�d|z��|j}||_|�|��||_|dkr|�d��dS|�d��dS)Nr4�em�\/})r7rr9)r'r8r�ostyles    r(r8zDoc2Latex.styleDsy�����H�u�$�%�%�%������������������D�=�=��K�K��������K�K������r*c��dSr,�rOs  r(�visit_azDoc2Latex.visit_aO����r*c�n�|j�|j��|�|��dSr,)r%r7�argrPrOs  r(�visit_authorzDoc2Latex.visit_authorRs4������D�H�%�%�%���������r*c�2�|�d|��dS�Nr3�rBrOs  r(�	visit_bigzDoc2Latex.visit_bigVs�����!�T�"�"�"�"�"r*c�0�|�|��dSr,�r1rOs  r(�visit_blockzDoc2Latex.visit_blockY������T�"�"�"�"�"r*c���|�d��|xjdz
c_|�|��|xjdzc_|�d��dS)Nz\begin{quote}
r3z\end{quote}
)r7r"r9rOs  r(�visit_blockquotezDoc2Latex.visit_blockquote\sh�����&�'�'�'����1�$�������������1�$������$�%�%�%�%�%r*�nbsp�~c���|j���}|j�|��}|�|�d|z|��|}|�|��dS)NzNo such character: %r.)rZ�strip�
char_table�getrEr7)r'r�char�cs    r(�
visit_charzDoc2Latex.visit_charis_���x�~�~�����O����%�%���9��J�J�/�$�6��=�=�=��A����A�����r*c�2�|�d|��dS)N�tt�r8rOs  r(�
visit_codezDoc2Latex.visit_codeq����
�
�4������r*c��dSr,rVrOs  r(�
visit_commentzDoc2Latex.visit_commenttrXr*c���|j�d��d}|j�d��|jz|z}|�d|z��t	d|jd���D](\}}|�d|||dz|zzfz���)|�|��|�d��|j���dS)N�dd�z#{\par \noindent  \leftskip = %d pt )�i�ii�iii�iv�v�viz \leftmargin%s = %d pt r3�\par}
)rr7�countr"�	enumerater9�pop)r'r�step�lsryr}s      r(�visit_ddzDoc2Latex.visit_ddws�������t�������g�m�m�D�!�!�D�$;�;�t�
C�����<�r�A�B�B�B��A�$�BY�BZ�BZ�[�\�\�	O�	O�D�A�q��K�K�2�a��q�1�u��n�9L�5M�M�N�N�N�N�����������J��������
�
�
�
�
r*c�B�|�d|jz|��dS)Nz-I don't know what to generate for the tag %r.)rErNrOs  r(�
visit_defaultzDoc2Latex.visit_default�s2���
�
�C��8��!�	#�	#�	#�	#�	#r*c�0�|�|��dSr,rarOs  r(�visit_definezDoc2Latex.visit_define�s�����T�"�"�"�"�"r*c���|jr(|jddkr|�|��dS|�d��|�|��|�d��dS)N����dtz{\par \noindent
r)rr�r7r1rOs  r(�visit_dlzDoc2Latex.visit_dl�ss���7�	$�t�w�r�{�d�*�*��M�M�$�������K�K�-�.�.�.�� � ��&�&�&��K�K�
�#�#�#�#�#r*c�"�|j�d��|�dddt|j��zz
fz��|�|��|�d��|j���dS)Nr�zC{\par \pagebreak[%f] \noindent \hangindent = 12 pt \hangafter = 1 
g333333@g�������?r)rr7r6r9r�rOs  r(�visit_dtzDoc2Latex.visit_dt�s�������t�������_���C���L�L�(�(�c��	�	�	�	
����������J��������
�
�
�
�
r*c�0�|�|��dSr,rarOs  r(�visit_documentzDoc2Latex.visit_document�rcr*c�N�|j�|�d|��||_dS)Nz"Duplicate document lang directive.)rrErOs  r(�visit_document_langzDoc2Latex.visit_document_lang�s.����)��J�J�;�T�B�B�B�!����r*c�N�|j�|�d|��||_dS)Nz#Duplicate document title directive.)r rErOs  r(�visit_document_titlezDoc2Latex.visit_document_title�s.����*��J�J�<�d�C�C�C�"����r*c��i|_|jD]:}d�|j�d��D��}|D]}|j|j|<��;dS)Nc�6�g|]}|�����SrV)ri)�.0r?s  r(�
<listcomp>z*Doc2Latex.visit_exdefs.<locals>.<listcomp>�s ��9�9�9�!�A�G�G�I�I�9�9�9r*�,)�symplacer.rZ�splitrN)r'rr0�syms�syms     r(�visit_exdefszDoc2Latex.visit_exdefs�sj����
��-�	,�	,�B�9�9�r�v�|�|�C�'8�'8�9�9�9�D��
,�
,��%'�V��
�c�"�"�
,�	,�	,r*c�2�|�d|��dS�NrRrqrOs  r(�visit_emzDoc2Latex.visit_em�rsr*c���|�d��|jD],}|�d��|�|���-|�d��dS)N�\begin{enumerate}
�\item �\end{enumerate}
)r7r.r&�r'rrms   r(�visit_enumeratezDoc2Latex.visit_enumerate�sb�����*�+�+�+���	�	�A��K�K�	�"�"�"�
�H�H�T�N�N�N�N����(�)�)�)�)�)r*c�0�|�|��dSr,��visit_hxrOs  r(�visit_h0zDoc2Latex.visit_h0�s��	
�
�
�d�����r*c�0�|�|��dSr,r�rOs  r(�visit_h1zDoc2Latex.visit_h1�����
�
�d�����r*c�0�|�|��dSr,r�rOs  r(�visit_h2zDoc2Latex.visit_h2�r�r*c�0�|�|��dSr,r�rOs  r(�visit_h3zDoc2Latex.visit_h3�r�r*c�0�|�|��dSr,r�rOs  r(�visit_h4zDoc2Latex.visit_h4�r�r*c�0�|�|��dSr,r�rOs  r(�visit_h5zDoc2Latex.visit_h5�r�r*c�0�|�|��dSr,r�rOs  r(�visit_h6zDoc2Latex.visit_h6�r�r*c�p�t|jdd���}|jdkr�|�dgd�|dd|zz
fz��|�t|j��|z
dz
|j�dd|j�d|j	|j
��g����|�d	dd|zz
z��d|_dS|�d
|jj|z��|�
|��|�d��dS)Nr3�man_pagez,{\par \pagebreak[%d] \vskip %d pt \noindent
)��r��r�r3r3�r�rJ�strongz\par \vskip %d pt
} \noindent
z\%s{�}
)�intrNrr7r=r6rr�node_of_tacirZr.r$�
section_tabler9)r'r�ns   r(r�zDoc2Latex.visit_hx�sE�������������9�
�"�"��K�K�K�%�%�%�a�(��a�!�e��O��
�
�
�
�M�M�#�d�j�/�/�A�-��1�4�8�3H�3H��B���&�&�x���4�=�I�I�J�4L�4L�
M�
M�
M�
�K�K�=��a�!�e��L�M�M�M��D�M�M�M�
�K�K��$�(�"8��";�;�<�<�<��O�O�D�!�!�!��K�K������r*c��|�d��|xjdz
c_|jD],}|�d��|�|���-|xjdzc_|�d��dS)N�\begin{itemize}
r3r��\end{itemize}
)r7r"r.r&r�s   r(�
visit_itemizezDoc2Latex.visit_itemize�s������(�)�)�)����1�$�����	�	�A��K�K�	�"�"�"�
�H�H�T�N�N�N�N����1�$������&�'�'�'�'�'r*c�p�|xjdz
c_|�|��|xjdzc_dSr])r#r9rOs  r(�visit_latexzDoc2Latex.visit_latex�s8�����1��������������1�����r*c�Z�|�d��|�|��dS)Nr�)r7r9rOs  r(�visit_lizDoc2Latex.visit_li�s,�����I������������r*c���|j}|�d��|js)|�|�|����n|�|��|�d��dS�N� {\em rS�rZr7r.rr1�r'r�names   r(�
visit_link_tozDoc2Latex.visit_link_to��r���x�����I�����}�	'��K�K����D�)�)�*�*�*�*�� � ��&�&�&����F�����r*c�4�|j}|jdj}|jdd�}|�d��|s)|�|�|����n|D]}|�|���|�d��dS)Nrr3r�rS)rZr.r7rr&)r'rr�rr.r0s      r(�visit_link_to_externzDoc2Latex.visit_link_to_extern�s����x���m�A��"���=����$�����I�����	 ��K�K����D�)�)�*�*�*�*��
 �
 ���	�	�$��������F�����r*c���|j}|�d��|js)|�|�|����n|�|��|�d��dSr�r�r�s   r(�visit_link_to_localzDoc2Latex.visit_link_to_localr�r*c���|j}|�d��|js)|�|�|����n|�|��|�d��dSr�r�r�s   r(�visit_link_to_unresolvedz"Doc2Latex.visit_link_to_unresolvedr�r*c���|�d��d|j_d|j_|�|��d|j_d|j_|�d��dS)Nz!{\ttfamily \raggedright \noindentr3rr�)r7r�
literal_block�insert_none_breaking_blanksr9rOs  r(�visit_literal_blockzDoc2Latex.visit_literal_block sg�����:�;�;�;�%&���"�34���0��������%&���"�34���0����E�����r*c�p�|xjdz
c_|�|��|xjdzc_dSr])r#�visit_paragraphrOs  r(�visit_lpzDoc2Latex.visit_lp*s:�����1�������T�"�"�"����1�����r*c�Z�|j}d|_|�|��||_dS)Nr�)rr1)r'r�omodes   r(�visit_man_page_modezDoc2Latex.visit_man_page_mode/s/���	����	����T�"�"�"���	�	�	r*c�:�|j�|��dSr,)r!r7rOs  r(�
visit_metazDoc2Latex.visit_meta5s����"�"�4�(�(�(�(�(r*c��|�d��|�|��|�d��dS)Nr�r��r7r1rOs  r(�visit_olzDoc2Latex.visit_ol8sB�����*�+�+�+����T�"�"�"����(�)�)�)�)�)r*c�0�|�|��dSr,)r�rOs  r(�visit_pzDoc2Latex.visit_p=rcr*c���|�d��|jr|�d��d|_|�d��|�|��|�d��dS)Nz{\par z\parindent = 0 pt r�
z \par}
)r7r$r9rOs  r(r�zDoc2Latex.visit_paragraph@st�����I�����=�	��K�K�-�.�.�.��D�M����D��������������K� � � � � r*c���|j���}|r|dz
}||���z}|���}|�d��}|r|ds|���|sdS|�d��|jxjdz
c_|jxj	dz
c_	d}|�d|�
|d��z��|dd�D]-}|�d|�
|��z���.|jxjdzc_|jxj	dzc_	|�d��dS)Nr�r�z\par
r3z
{\tt{%s}}
rz3{ \par \parindent = 0 pt \parskip = 0 pt \tt{%s} }
)rZri�get_text�
expandtabsr�r�r7rr��literalr)r'r�text�lines�first�lines      r(�	visit_prezDoc2Latex.visit_preIs~��
�x�~�~�����	��D�L�D��d�m�m�o�o�%����� � ���
�
�4� � ���	��r��	��I�I�K�K�K��	��F����I������0�0�A�5�0�0������!��������N�T�[�[��q��%:�%:�:�;�;�;��!�"�"�I�	#�	#�D��K�K�J����D�!�!�"�
#�
#�
#�
#�	
��0�0�A�5�0�0������!������I�����r*c�2�|�d|��dS)Nr�r^rOs  r(�visit_smallzDoc2Latex.visit_smalles�����"�d�#�#�#�#�#r*c�0�|�d��dS)Nz	~{\bf :} �r7rOs  r(�visit_spc_colonkindzDoc2Latex.visit_spc_colonkindhs�����L�!�!�!�!�!r*c�0�|�d��dS)Nz \(\mapsto \) r�rOs  r(�visit_spc_mapstozDoc2Latex.visit_spc_mapstoks�����&�'�'�'�'�'r*c�0�|�|��dSr,rarOs  r(�visit_stringzDoc2Latex.visit_stringnrcr*c�2�|�d|��dS)N�bfrqrOs  r(�visit_strongzDoc2Latex.visit_strongqrsr*c��|�d��|�d|��|�d��dS)Nz\raisebox{-.6ex}{r�r5�r7rBrOs  r(�	visit_subzDoc2Latex.visit_subtsC�����(�)�)�)����"�d�#�#�#����C�����r*c��|�d��|�d|��|�d��dS)Nz\raisebox{.6ex}{r�r5rrOs  r(�	visit_supzDoc2Latex.visit_supysC�����'�(�(�(����"�d�#�#�#����C�����r*c�0�|�|��dSr,)�
visit_textrOs  r(�visit_symbolzDoc2Latex.visit_symbol~s����������r*c�&�t||��dSr,)�TablerOs  r(�visit_tablezDoc2Latex.visit_table�s��
�d�D�����r*c���|jr|�|j��n6|j}|j�|��}|�|��|�|��dSr,)r#r7rZrrr1)r'rr�s   r(r
zDoc2Latex.visit_text�sk���?�	��K�K���!�!�!�!��8�D��<�&�&�t�,�,�D��K�K��������T�"�"�"�"�"r*c�0�|�|��dSr,rarOs  r(�visit_to_document_onlyz Doc2Latex.visit_to_document_only�rcr*c��dSr,rVrOs  r(�visit_to_html_onlyzDoc2Latex.visit_to_html_only�rXr*c��dSr,rVrOs  r(�visit_to_tester_onlyzDoc2Latex.visit_to_tester_only�rXr*c��|�d��d|j_|�|��d|j_|�d��dS)Nz\texttt{r3rr5)r7rr�r9rOs  r(�visit_ttzDoc2Latex.visit_tt�sR�����K� � � � ����������� �������C�����r*c��|�d��|�|��|�d��dS)Nr�r�r�rOs  r(�visit_ulzDoc2Latex.visit_ul�sB�����(�)�)�)����T�"�"�"����&�'�'�'�'�'r*c�2�|�d|��dSr�rqrOs  r(�	visit_varzDoc2Latex.visit_var�rsr*N)H�__name__�
__module__�__qualname__rr)r1r=r7rBrErLrPr8rWr[r_rbrerjrnrrrur�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rrrrrrr
rrrrrrrVr*r(rrs������
F�E����*������ ���3�3�3�/�/�/�!�!�!�3�3�3�
	 �	 �	 �
�
�
����#�#�#�#�#�#�&�&�&�	���J�������
�
�
�	�	�	�#�#�#�#�#�#�$�$�$����#�#�#�"�"�"�
#�#�#�
,�,�,����*�*�*�������������������������"(�(�(����
���������������������
���)�)�)�*�*�*�
#�#�#�!�!�!����8$�$�$�"�"�"�(�(�(�#�#�#�������
���
������#�#�#�#�#�#�
�
�
�
�
�
����(�(�(�
����r*rc�0�eZdZdZd�Zd�Zd�Zd�Zd�ZdS)r
r3c���||_|j�|j��||_g|_g|_d|_|�|��d}|jD].}t|j	��|krt|j	��}�/|sdS|j�Ft|j��|ks-|�
dt|j��|fz|��nd|zg|z|_|jj}|dd�d�|jD����z��|j
r|d��|jD]�}|j	D]x}|d�|j����||j	d	ur9|j
r|d
��|d���R||jd	ur|d
���m|d���y|jr|d��|d����|d
��dS)NrzRWrong number of column width specifications (%d) vs
    max columns in table (%d).g�?z
\begin{longtable}[c]{|%s|}
�|c��g|]}d|z��S)zp{%.2g\linewidth}rV)r��cws  r(r�z"Table.__init__.<locals>.<listcomp>�s5��:S�:S�:S�>@�;O�QS�:S�:S�:S�:Sr*z\hline
rJr�z\\
z&
z	\endhead
z
\end{longtable}
)�d2l�__dict__�updaterr�rows�colwidthr1r6�columnsrEr7rK�many_hlines�data�is_head)r'r$r�maxcols�row�ap�cols       r(r)zTable.__init__�s_������
���S�\�*�*�*���	������	���
����T�"�"�"����9�	+�	+�C��3�;���'�)�)��c�k�*�*����	��F��=�$��t�}�%�%��0�0��
�
�<�"�4�=�1�1�7�?<�<� �!�!�!��
!��[�M�'�1�D�M�
�X�_��
��,����:S�:S�DH�M�:S�:S�:S�1T�1T�U�	V�	V�	V���	��B�{�O�O�O��9�	"�	"�C��{�

�

����2�7�7�3�8�$�$�%�%�%��#�+�b�/�)�)��'�)���8������;������d�i��m�3�3��B�x�L�L�L���B�u�I�I�I�I��{�
"���;������=�!�!�!��
��!�"�"�"�"�"r*c�8�g}|jD]�}|jdkr|�d|jz|��|j}|�d��r|dd�}t|��dz}nt|��}|�|����||_dS)N�	col_widthz Unrecognized colgroup option: %r�%r�gY@)r.rNrErZ�endswith�floatr7r()r'rr(rm�cgs     r(�visit_colgroupzTable.visit_colgroup�s�������		 �		 �A��u��#�#��
�
�=���E�q�I�I�I���B��{�{�3���
�����W���2�Y�Y�u�_����2�Y�Y���O�O�B����� ��
�
�
r*c��dSr,rVrOs  r(�
visit_optionszTable.visit_options�rXr*c�T�|�|��d|jd_dS)Nr3r�)r1r'r,rOs  r(�visit_theadzTable.visit_thead�s*�����T�"�"�"� !��	�"�
���r*c�V�|j�t||����dSr,)r'r7�RowrOs  r(�visit_trzTable.visit_tr�s&���	����T�4���)�)�)�)�)r*N)	rrrr*r)r7r9r;r>rVr*r(r
r
�se�������K�-#�-#�-#�^
!�
!�
!�
�
�
�"�"�"�*�*�*�*�*r*r
c�$�eZdZdZd�Zd�Zd�ZdS)r=rc�|�|j�|j��g|_|�|��dSr,)r%r&r)r1)r'�tablers   r(r)zRow.__init__�s;���
���U�^�,�,�,�������T�"�"�"�"�"r*c�V�|j�t||����dSr,�r)r7�ColumnrOs  r(�visit_tdzRow.visit_td��(������F�4��.�.�/�/�/�/�/r*c�V�|j�t||����dSr,rCrOs  r(�visit_thzRow.visit_th�rFr*N)rrrr,r)rErHrVr*r(r=r=�sF�������G�#�#�#�
0�0�0�0�0�0�0�0r*r=c��eZdZd�ZdS)rDc��|j�|j��g|_|jj|_|�|��dSr,)r%r&r+r7r9)r'r.rs   r(r)zColumn.__init__sE���
���S�\�*�*�*���	��i�&�����������r*N)rrrr)rVr*r(rDrDs#����������r*rDc��eZdZdZidd�dd�dd�dd	�d
d�dd
�dd�dd�dd�dd�dd�dd�dd�dd�dd�d d!�d"d#�id$d%�d&d'�d(d)�d*d+�d,d-�d.d/�d0d1�d2d3�dd4�d5d6�d7d8�d9d:�d;d<�d=d>�dd	�d?d@�dAdB��dCdDdEdFdGdH��ZdI�ZdJ�ZdK�ZdL�ZdM�Z	dNS)O�BabelzLanguage specifics for LaTeX.�no�norsk�gd�scottish�hu�magyar�pt�
portuguese�sl�	slovenian�af�	afrikaans�bg�	bulgarian�br�breton�ca�catalan�cs�czech�cy�welsh�da�danish�fr�french�de�ngerman�el�greek�en�english�eo�	esperanto�es�spanish�et�estonian�eu�basque�fi�finnish�ga�irish�gl�galician�he�hebrew�hr�croatian�	hungarian�is�	icelandic�it�italian�la�latin�nl�dutch�pl�polish�ro�romanian�ru�russian�slovak�serbian�swedish�turkish�	ukrainian)�sk�sr�sv�tr�ukc��|j|_|j|_d|_|j�d|j��rd|_d|_nd|_d|_dS)Nz^de)z{\glqq}z{\grqq}z{\dq})�``�''r)�
language_code�language�re�double_quote_replacment�search�quotes�quote_index�r'rs  r(r)zBabel.__init__;s`���)��
��&���(,��$��7�>�>�%���/�/�	'�2�D�K�+3�D�(�(�&�D�K�����r*c�N�|j|j}|jdzdz|_|S)Nr3r�)r�r�)r'�qs  r(�
next_quotezBabel.next_quoteIs+���K��(�)�� �,�Q�.�!�3����r*c��d}|�d��D]%}|dkr|}�||���|zz
}�&|S�N�")r�r�)r'r��t�parts    r(�quote_quoteszBabel.quote_quotesNsP�����J�J�s�O�O�	.�	.�D��D�y�y�����T�_�_�&�&��-�-����r*c�J�|js|S|�d|j��Sr�)r��replace)r'r�s  r(�double_quotes_in_ttzBabel.double_quotes_in_ttWs)���+�	��K��|�|�C��!=�>�>�>r*c��|j|jvr|j|jS|j�d��d}||jvr
|j|SdS)N�_r)r��_ISO639_TO_BABELr�)r'�ls  r(�get_languagezBabel.get_language\s_���=�D�1�1�1��(���7�7��
�#�#�C�(�(��+�A��D�)�)�)��,�Q�/�/��tr*N)
rrr�__doc__r�r)r�r�r�r�rVr*r(rLrL
s:������'�'�+��g�+��j�+�	
�h�+�	
�l�	+�
	
�k�+�	
�k�
+�	
�k�+�	
�h�+�	
�i�+�	
�g�+�	
�g�+�	
�h�+�	
�h�+�	
�i�+�"	
�g�#+�$	
�i�%+�(	
�k�)+�+�*	
�i�++�,	
�j�-+�.	
�h�/+�0	
�i�1+�2	
�g�3+�4	
�j�5+�6	
�h�7+�8	
�j�9+�:	
�k�;+�<	
�k�=+�>	
�i�?+�@	
�g�A+�B	
�g�C+�D	
�h�E+�F	
�l�G+�H	
�j�I+�J	
�i�K+�+�L�����U+�+�+��Z������
���?�?�?�
����r*rLc�d�eZdZdZdZdZdZdZdZdZ	dddddddd	d
ddd
ddd�Z
d�Zd�Zd�Z
d�ZdS)rrrgz{--}z{---}�`�'r�r�r�z,,z{\dag}z{\ddag}z{\dots}z{\texttrademark}z{$\Leftrightarrow$})� u–u—u‘u’u‚u“u”u„u†u‡u…u™u⇔c��||_|j|_t|��|_|j|_|�|j��|_dSr,)rr�rL�babel�
font_encoding�to_latex_encoding�output_encoding�latex_encodingr�s  r(r)zEncoder.__init__�sI������&����3�Z�Z��
� �.���"�4�4�S�5H�I�I����r*c��ddddddddd	d
ddd
dd�}|���|vr||���S|�t�ddd�������S)z�
        Translate docutils encoding name into latex's.

        Default fallback method is remove "-" and "_" chars from docutils_encoding.

        �latin1�latin2�latin3�latin4�iso88595�latin5�latin9�maccyr�cp1251�koi8-r�koi8-u�cp1250�cp1252�ascii)z
iso-8859-1z
iso-8859-2z
iso-8859-3z
iso-8859-4z
iso-8859-5z
iso-8859-9ziso-8859-15�mac_cyrilliczwindows-1251r�r�zwindows-1250zwindows-1252zus-asciirJz_-)�lower�	translate�str�	maketrans)r'�docutils_encodingr�s   r(r�zEncoder.to_latex_encoding�s���%�$�$�$�&�$�%�&�&� � �&�&�!����8�"�"�$�$��*�*��'�-�-�/�/�0�0� �*�*�3�=�=��R��+F�+F�G�G�M�M�O�O�Or*c��t|j�����D]#}|�||j|��}�$|Sr,)r�latex_equivalents�keysr�)r'r��uchars   r(�unicode_to_latexzEncoder.unicode_to_latex�sN��
�$�0�5�5�7�7�8�8�	F�	F�E��<�<��t�'=�e�'D�E�E�D�D��r*c�2�|jr|Sd|jvr|j�d��|_|j�d|��}d|jvr|j�d��|_|j�d|��}|�dd��}|jsP|j	sI|j
sB|�d	d
��}|�dd��}|�d
d��}|�dd��}|�dd��}|�dd��}|�dd��}|�dd��}d}|js|j	rn|dz
}|j�|��}|j
dkr-|�dd��}|�dd��}nG|�dd ��}n0|j�|��}|�dd ��}|d!zD]!}|�||z|d"z|z��}�"|js|jr|�d#d$��}n_|jrX|jr2d%t#|j��z}d&�|j��}nd&}d&}|�d#|�d'|����}|�d(d)��}|jr|�d*d��}|jd+kr|�|��}|S),a(
        Encode special characters in `text` & return.
            # $ % & ~ _ ^ \ { }
        Escaping with a backslash does not help with backslashes, ~ and ^.

            < > are only available in math-mode or tt font. (really ?)
            $ starts math- mode.
        AND quotes:

        �encode_re_bracesz([{}])z{\\\1}�encode_re_bslashz(?<!{)(\\)(?![{}]})z{\\textbackslash}�$z{\$}r!z
{\textbar}�<z{\textless}�>z{\textgreater}�&z{\&}�^z{\textasciicircum}r3z{\%}�#z{\#}rgz{\textasciitilde}�-z,`'"<>�OT1r�z{\underline{ }}z\textbackslashz\reflectbox{/}z{\_}r�z{}r�z~\\
r5rJz
}\\
\mbox{�[z{[}� �utf8)�verbatimr%r��compiler��subr�r�r�r��mathmoder�r�r�r��insert_newline�mbox_newliner6�literal_block_stackrKr�r�r�)r'r��separate_charsrl�closings�openingss      r(rzEncoder.encode�sH���=�	��K��T�]�2�2�$(�G�O�O�I�$>�$>�D�!��$�(�(��D�9�9���T�]�2�2�$(�G�O�O�4J�$K�$K�D�!��$�(�(�)=�t�D�D���|�|�C��)�)���"�	8�d�l�	8�d�m�	8��<�<��]�3�3�D��<�<��^�4�4�D��<�<��%6�7�7�D��|�|�C��)�)��
�|�|�C�!6�7�7���|�|�C��)�)���|�|�C��)�)���|�|�C�!5�6�6������	.���	.�
�i�'�N��:�1�1�$�7�7�D��!�U�*�*��|�|�C�);�<�<���|�|�$5�7H�I�I����|�|�C��1�1����:�*�*�4�0�0�D��<�<��W�-�-�D�"�Q�&�	A�	A�D��<�<��t��T�D�[�4�-?�@�@�D�D���	C�$�"4�	C��<�<��i�0�0�D�D�
�
�	C��!�
���T�%=�!>�!>�>���7�7�4�#;�<�<��������<�<��h�h�h���A�C�C�D��|�|�C��'�'���+�	*��<�<��S�)�)�D���&�(�(��(�(��.�.�D��r*N)rrrr�r�r�r�r�r�r�r�r)r�r�rrVr*r(rrgs��������M��G��H��H��N��L�"#��������������%�(����"J�J�J�%P�%P�%P�N���Z�Z�Z�Z�Zr*rc�B�eZdZdZdZdZdZdZddddddd	d
�Zd�Z	d�Z
d
S)�_GLUECLAMP_)z_parent:SpecNodesz_parent.SpecNodes:node_of_taciz_parent.Main:ReportedErrorz_root:rerJr��chapter�section�
subsection�
subsubsection�	paragraph�subparagraph)rr3r�r�r���c�L�t|||��}|���Sr,)rrL)r'rrr$s    r(�doc2textz_GLUECLAMP_.doc2text,s!����c�4�(�(���}�}���r*c���|�||��}|j�|d|z��}|�d||�d|��g��}|S)Nz%s.tex�
write_filer�)r��pathrKr�)	r'rrr��dir�opts�IOr�r�s	         r(�	doc2filerz_GLUECLAMP_.doc2filer0sg���}�}�S�$�'�'���w�|�|�C��D��1�1��� � ��t�!%�!2�!2�6�4�!@�!@�6B�C�C���r*N)rrr�	_imports_r�r�r�r�r�r�rrVr*r(r�r�ss�������I��M� ���M��O����������M��������r*r�N)rr
r=rDrLrr�rVr*r(�<module>rsQ��c�c�c�c�c�c�c�c�L
I*�I*�I*�I*�I*�I�I*�I*�I*�X0�0�0�0�0�)�0�0�0������Y����Z�Z�Z�Z�Z�Z�Z�Z�zk�k�k�k�k�k�k�k�\ � � � � � � � � � r*

Zerion Mini Shell 1.0