403Webshell
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/util/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.9/site-packages/sphinx/util/__pycache__/smartypants.cpython-39.pyc
a

�abr>�K@sZdZddlZddlZddlmZmZmZddlmZddl	m
Z
ddlmZ
e�de
�dd	d
ddd
ddd
d
dd
ddddddd
d
d
ddddd
dddd	ddd
ddd
dd
ddd
d
d
dd	dddddddddddd	dd
dd
dd
ddddddd
dd
ddd�JZd'eeed �d!d"�Zejdfeeeefeeeeddfd#�d$d%�Ze
d&k�rVee_ee_eej_dS)(uP
    sphinx.util.smartypants
    ~~~~~~~~~~~~~~~~~~~~~~~

    This is extracted (with minor adaptations for flake8 compliance) from
    docutils’ docutils/utils/smartquotes.py as of revision 8097 (30 May 2017),
    in order to backport for Sphinx usage with Docutils < 0.14 extra language
    configurations and fixes. Replaces earlier smartypants version as used up
    to Sphinx 1.5.6.

    :copyright: © 2010 Günter Milde,
                original `SmartyPants`_: © 2003 John Gruber
                smartypants.py:          © 2004, 2007 Chad Miller
    :license: Released under the terms of the `2-Clause BSD license`_, in short:

       Copying and distribution of this file, with or without modification,
       are permitted in any medium without royalty provided the copyright
       notices and this notice are preserved.
       This file is offered as-is, without any warranty.

    .. _SmartyPants: https://daringfireball.net/projects/smartypants/
    .. _2-Clause BSD license: https://spdx.org/licenses/BSD-2-Clause

    See the LICENSE file and the original docutils code for details.

�N)�	Generator�Iterable�Tuple)�smartquotes)�RemovedInSphinx60Warning)�__version_info__z&sphinx.util.smartypants is deprecated.u“”‘’u„”‚’u„“‚‘u
«»“”u
»«›‹u
«»‹›u‘’“”u””’’u
»»››)u« u »�“�”)�« � »rr	)r
ru‹ u ›u
”“»«u„”‘’u
„”«»u「」『』u
«»’’u
«»‘’u
«»‚’u
«»„“u“„‘‚u„”’’)J�afzaf-x-altquot�bg�cazca-x-altquot�cszcs-x-altquot�dazda-x-altquot�dezde-x-altquotzde-ch�el�enzen-uk-x-altquot�eo�eszes-x-altquot�etzet-x-altquot�eu�fizfi-x-altquot�frzfr-x-altquotzfr-chzfr-ch-x-altquot�gl�hezhe-x-altquot�hrzhr-x-altquotZhsbz
hsb-x-altquot�hu�is�itzit-chzit-x-altquot�ja�lt�lv�mk�nlznl-x-altquot�nb�nnznn-x-altquot�nozno-x-altquot�plzpl-x-altquot�ptzpt-br�ro�ru�shzsh-x-altquot�skzsk-x-altquot�slzsl-x-altquot�sqzsq-x-altquot�srzsr-x-altquot�svzsv-x-altquot�trztr-x-altquot�ukzuk-x-altquotzzh-cnzzh-twr)�text�language�returncCs�t�|�}z
|j}Wnty*d}Yn0d}t�d|f|j|�}t�d|f|j|�}t�d|j|j	|�}t�d|j	|j|�}|�
d�r�tjd||tjd	�}d
}d}t�d|ftj
tjB�}|�d
|j	|�}|j|kr�t�dtj�}|�||�}t�d|ftj
tjB�}	|	�d
|j|�}t�d|ftj
tjB�}	|	�d|j|�}t�d|j	|�}t�d|ftj
�}
|
�d
|j|�}t�d|ftj
�}|�|j|�}t�d|ftj
�}|�d
|j|�}t�d|j|�}|S)u
    Parameter:  - text string (unicode or bytes).
                - language (`BCP 47` language tag.)
    Returns:    The `text`, with "educated" curly quote characters.

    Example input:  "Isn't this fun?"
    Example output: “Isn’t this fun?“;
    u’z)[!"#\$\%'()*+,-.\/:;<=>?\@\[\\\]\^_`{|}~]z^'(?=%s\\B)z^"(?=%s\\B)z"'(?=\w)z'"(?=\w)rz'(?=\d{2}s))�flagsz[^\ \t\r\n\[\{\(\-]z&#8211;|&#8212;a<
                    (
                            \s          |   # a whitespace char, or
                            &nbsp;      |   # a non-breaking space entity, or
                            --          |   # dashes, or
                            &[mn]dash;  |   # named dash entities
                            %s          |   # or decimal entities
                            &\#x201[34];    # or hex
                    )
                    '                 # the quote
                    (?=\w)            # followed by a word character
                    z\1z(?<=(\w|\d))'(?=\w)z�
                    (%s)
                    '
                    (?!\s  |       # whitespace
                       s\b |
                        \d         # digits   ('80s)
                    )
                    zc
                    (%s)
                    '
                    (\s | s\b)
                    z\1%s\2�'a<
                    (
                            \s          |   # a whitespace char, or
                            &nbsp;      |   # a non-breaking space entity, or
                            --          |   # dashes, or
                            &[mn]dash;  |   # named dash entities
                            %s          |   # or decimal entities
                            &\#x201[34];    # or hex
                    )
                    "                 # the quote
                    (?=\w)            # followed by a word character
                    z�
                    #(%s)?   # character that indicates the quote should be closing
                    "
                    (?=\s)
                    z}
                    (%s)   # character that indicates the quote should be closing
                    "
                    �")r�
smartchars�
apostrophe�	Exception�re�subZcsquoteZcpquoteZopquoteZosquote�
startswith�UNICODE�compile�VERBOSE)r4r5Zsmartr;Zpunct_classZclose_classZ
dec_dashesZopening_single_quotes_regexZapostrophe_regexZclosing_single_quotes_regexZopening_double_quotes_regexZclosing_double_quotes_regex�rC�;/usr/lib/python3.9/site-packages/sphinx/util/smartypants.py�
educateQuotes�sp




�
�
�
��
�������rE)�text_tokens�attrr5r6ccsd}d}d}d}d}d}|dkr.d}d}d}n�|dkrDd}d}d}n�|dkr^d}d}d	}d}nn|d
krld}n`d|vrxd}d|vr�d}d
|vr�d}d|vr�d}d|vr�d}d|vr�d	}d|vr�d}d|vr�d}d}	|D�]6\}
}|
dks�|s�|Vq�|
dk�r|dd�}	|Vq�|dd�}t�|�}|�r:t�dd|�}|dk�rPt�|�}n*|dk�rft�|�}n|d	k�rzt�|�}|�r�t�|�}|�r�t�||�}|dk�r�t�	||�}|�r�|	�
dd��
dd�}
t|
||�dd�}|�r�t�||�}|}	tj|dd�}|Vq�dS)a5Return iterator that "educates" the items of `text_tokens`.

    This is modified to intercept the ``attr='2'`` as it was used by the
    Docutils 0.13.1 SmartQuotes transform in a hard coded way. Docutils 0.14
    uses ``'qDe'``` and is configurable, and its choice is backported here
    for use by Sphinx with earlier Docutils releases. Similarly ``'1'`` is
    replaced by ``'qde'``.

    Use ``attr='qDbe'``, resp. ``'qdbe'`` to recover Docutils effect of ``'2'``,
    resp. ``'1'``.

    refs: https://sourceforge.net/p/docutils/mailman/message/35869025/
    Fr�1T��2��3�z-1�q�b�B�d�D�i�e�w� �tag�literal���Nz&quot;r9�;r8)Zrestore)
rZprocessEscapesr=r>Z
educateDashesZeducateDashesOldSchoolZeducateDashesOldSchoolInvertedZeducateEllipsesZeducateBackticksZeducateSingleBackticks�replacerEZstupefyEntities)rFrGr5Zconvert_quotZ	do_dashesZdo_backticksZ	do_quotesZdo_ellipsesZ
do_stupefyZprev_token_last_charZttyper4Z	last_char�contextrCrCrD�educate_tokens�s�!







r])r�
rK)r)�__doc__r=�warnings�typingrrrZdocutils.utilsrZsphinx.deprecationrZsphinx.util.docutilsrZdocutils_version�warnZ
langquotes�strrEZdefault_smartypants_attrr]r:ZquotesrCrCrCrD�<module>s���Zs��	


Youez - 2016 - github.com/yon3zu
LinuXploit