403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.217.85
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1074145052 ( 1074145052)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/lib/python3/dist-packages/docutils/utils/math/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3/dist-packages/docutils/utils/math/__pycache__/tex2mathml_extern.cpython-311.pyc
�

��b����dZddlZdZdd�Zdd�Zdd�Zedkr+d	Zeee���	d
����dSdS)
z�Wrappers for TeX->MathML conversion by external tools

This module is provisional:
the API is not settled and may change with any minor Docutils version.
�NzP\documentclass{article}
\usepackage{amsmath}
\begin{document}
%s
\end{document}
c��tjgd�tjtjtjd���}|j�t
|z�d����|j���|j�	��}|j
�	���d��}|r0|�d��dks|s|�
|��tjgd�tjtjtjd���}|j�|��|j���|j�	���d��}|j
�	���d��}|r0|�d��dks|s|�
|��|�d��|�d	��d
z}	}|||	�}d|vrt|���|S)zdConvert LaTeX math code to MathML with LaTeXML_

    .. _LaTeXML: http://dlmf.nist.gov/LaTeXML/
    )�latexml�-z--inputencoding=utf8T��stdin�stdout�stderr�	close_fds�utf-8�Errorr)�latexmlpostrz--nonumbersectionsz--format=xhtmlz--�<math�</math>�zclass="ltx_ERROR)�
subprocess�Popen�PIPEr�write�document_template�encode�closer�readr	�decode�find�error�SyntaxError)
�	math_code�reporter�p�latexml_code�latexml_err�post_p�result�
post_p_err�start�ends
          �G/usr/lib/python3/dist-packages/docutils/utils/math/tex2mathml_extern.pyrrs��
	�����
 *�� *�� *��#'�	)�	)�	)�A��G�M�M�$�y�0�8�8��A�A�B�B�B��G�M�M�O�O�O��8�=�=�?�?�L��(�-�-�/�/�(�(��1�1�K��$�[�%�%�g�.�.�!�3�3�<�3����{�#�#�#�
�
�!�!�!�%/�O�%/�_�%/�_�(,�
.�
.�
.�F��L���|�$�$�$�
�L������
�]�
�
�
!�
!�
(�
(��
1�
1�F���#�#�%�%�,�,�W�5�5�J��#�Z�_�_�W�-�-��2�2�&�2����z�"�"�"����W�%�%�v�{�{�9�'=�'=�a�'?�3�E�
�E�#�I�
�F��V�#�#��&�!�!�!��M�c�$�tjgd�tjtjtjd���}|j�t
|z�d����|j���|j�	��}|j
�	���d��}|�d��dkrCd�
d�|���D����}td	|z���|r|�d
��dks|s|�|��|�d��|�d��d
z}}|||�S)zgConvert LaTeX math code to MathML with TtM_

    .. _TtM: http://hutchinson.belmont.ma.us/tth/mml/
    )�ttmz-uz-rTrrz**** Unknownr�
c3�DK�|]}|�d���|V��dS)z****N)�
startswith)�.0�lines  r'�	<genexpr>zttm.<locals>.<genexpr>_sF����4�4���?�?�6�2�2�4��4�4�4�4�4�4r(z&
Message from external converter TtM:
�
**** Errorrrr)rrrrrrrrrrr	rr�join�
splitlinesrr)rrrr#�err�msgr%r&s        r'r*r*Lsp��
	�����
 *�� *�� *��#'�	)�	)�	)�A��G�M�M�$�y�0�8�8��A�A�B�B�B��G�M�M�O�O�O�
�X�]�]�_�_�F�
�(�-�-�/�/�
 �
 ��
)�
)�C�
�x�x����1�$�$��i�i�4�4����)9�)9�4�4�4�4�4���D�S�H�I�I�I���C�H�H�\�*�*�a�/�/�v�/����s�������W�%�%�v�{�{�9�'=�'=�a�'?�3�E��%��)��r(Tc��gd�}|rd}nd}|�d��tjdg|ztjtjtjd���}|j�|�d����|j���|j�	���
d��}|j�	���
d��}|�d	��d
krE||�d��dz|�d
���}td|z���|r0|�d��d
ks|s|�|��|�d��dz|�d��}
}	d|�d||	|
��d�}|S)zlConvert LaTeX math code to MathML with blahtexml_

    .. _blahtexml: http://gva.noekeon.org/blahtexml/
    )
z--mathmlz
--indentedz	--spacing�moderatez--mathml-encoding�rawz--other-encodingr8z--doctype-xhtml+mathmlz--annotate-TeX�zmode="display"z
--displaymath�	blahtexmlTrrz<error>rz	<message>�	z
</message>z.
Message from external converter blahtexml:
%sr1z<markup>z	</markup>z0<math xmlns="http://www.w3.org/1998/Math/MathML"z>
z</math>
)�appendrrrrrrrrrrr	rrr)r�inliner�options�mathmode_argrr#r4r5r%r&s           r'r:r:hs���
���G��(����'������'�'�'���+��w�.�)�� *�� *��#'�		)�	)�	)�A�
�G�M�M�)�"�"�7�+�+�,�,�,��G�M�M�O�O�O�
�X�]�]�_�_�
#�
#�G�
,�
,�F�
�(�-�-�/�/�
 �
 ��
)�
)�C�
�{�{�9����"�"��V�[�[��-�-�a�/����L�0I�0I�I�J���L�� �!�!�	!���S�X�X�l�+�+�q�0�0��0����s�������Z�(�(��*�F�K�K��,D�,D�3�E�E� ,���f�U�3�Y�.?�.?�.?�A�F��Mr(�__main__uG\frac{\partial \sin^2(\alpha)}{\partial \vec r}\varpi \, \text{Grüße}r)N)TN)
�__doc__rrrr*r:�__name__�example�printr�r(r'�<module>rFs�����������,�,�,�,�^����8&�&�&�&�V�z���-�G�
�E�)�)�G�
�
�
#�
#�G�
,�
,�-�-�-�-�-��r(

Youez - 2016 - github.com/yon3zu
LinuXploit