| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/cygwin64/lib/python3.9/site-packages/sphinx/transforms/__pycache__/ |
Upload File : |
a
�ab�Z � @ s� d Z ddlmZ ddlmZ ddlmZmZmZm Z m
Z
mZmZm
Z
ddlmZ ddlmZ ddlmZ ddlmZ dd lmZ dd
lmZ ddlmZmZ ddlmZ dd
lmZ ddl!m"Z" ddl#m$Z$m%Z%m&Z& ddl'm(Z( ddl)m*Z*m+Z+m,Z,m-Z-m.Z.m/Z/ e�rddl0m1Z1 e%�2e3�Z4dZ5e
dej6d�Z7de8e8e9eeed�dd�Z:G dd� de"�Z;G dd� de"�Z<G dd� de"�Z=dee8ef d �d!d"�Z>d#S )$z�
sphinx.transforms.i18n
~~~~~~~~~~~~~~~~~~~~~~
Docutils transforms used by Sphinx when reading documents.
:copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
� )�path)�indent)�
TYPE_CHECKING�Any�Dict�List�Optional�Tuple�Type�TypeVar)�nodes)�StringInput)�Element)�
relative_path)�addnodes)�Config)�make_glossary_term�split_term_classifiers)�__)�init)�SphinxTransform)�get_filetype�logging�split_index_msg)�docname_to_domain)�IMAGE_TYPE_NODES�LITERAL_TYPE_NODES�NodeMatcher�extract_messages�is_pending_meta�traverse_translatable_index)�Sphinx)Zrefexplicit�N)�boundr! )�app�source�source_path�source_line�config�settings�returnc C s� z�|j }d|_ ddlm} |� }|�| � t|j|�} | j�| | �}
|jt |d||f d�|
|d�}z|d }W n t
y� Y n0 |W ||_ S ||_ 0 dS )a� Publish msgstr (single line) into docutils document
:param sphinx.application.Sphinx app: sphinx application
:param str source: source text
:param str source_path: source path for warning indication
:param source_line: source line for warning indication
:param sphinx.config.Config config: sphinx config
:param docutils.frontend.Values settings: docutils settings
:return: document
:rtype: docutils.nodes.document
Nr )�SphinxI18nReaderz%s:%s:<translated>)r% r&