| 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/docutils/utils/__pycache__/ |
Upload File : |
a
OԼa�� � @ sb d dl mZ dZdZd dlZd dlZG dd� de�Zedfdd �Zedfd
d�Z dLdd
�Z
dMdd�ZdNdd�Zdd� Z
dd� Zdd� Zdd� ZdOdd�ZdPdd�Zdd � Zed!k�r^d dlZz&d dlZe�ejd"� e�� d ZW n dZY n0 e�� �d#d$�Ze�d%d&e�Zd'd(� e�d$�D �Ze� d �Z!e"e#e�d d)�D ]VZ$e�%ee$�D ],Z&d#�'e!fe& �Z(e(ej)v �rPe(Z �q@�qPe!ej)v �r�e!ZndZ�q@d dl*Z*e*j+d*d+�Z,e,j-d,d-dd.d/� e,j-d0d1d2d3d/� e,j-d4d5ed6e d/� e,j-d7d8d9d:d;� e,j-d<d9d=d;� e,j-d>d9d?d;� e,j-d@d9dAd;� e,j-dBd9dCd;� e,�.� Z/e/j0�rTe1e2� �n
e/j3�rfe1e� n�e/j4�r�e1� e1dD� e1dE� e1dF� e5ej)�6� �D ]Z7e1dGe7ej)e7 f � �q�n�e/j8�r�d dl9Z9G dHdI� dIe9j:�Z;e9�<� �=e;�Z>e9�?� �@e>� nde/jA�r.dJe/jBv �r e/jB�dJd"�e/_Bne/ jBdJ7 _BejC�D� �Ee/jF�ZGe1eeGe/jHe/jBdK��Ie/jF�� dS )Q� )�print_functionu�
Options
=======
Numeric values are the easiest way to configure SmartyPants' behavior:
:0: Suppress all transformations. (Do nothing.)
:1: Performs default SmartyPants transformations: quotes (including
\`\`backticks'' -style), em-dashes, and ellipses. "``--``" (dash dash)
is used to signify an em-dash; there is no support for en-dashes
:2: Same as smarty_pants="1", except that it uses the old-school typewriter
shorthand for dashes: "``--``" (dash dash) for en-dashes, "``---``"
(dash dash dash)
for em-dashes.
:3: Same as smarty_pants="2", but inverts the shorthand for dashes:
"``--``" (dash dash) for em-dashes, and "``---``" (dash dash dash) for
en-dashes.
:-1: Stupefy mode. Reverses the SmartyPants transformation process, turning
the characters produced by SmartyPants into their ASCII equivalents.
E.g. the LEFT DOUBLE QUOTATION MARK (“) is turned into a simple
double-quote (\"), "—" is turned into two dashes, etc.
The following single-character attribute values can be combined to toggle
individual transformations from within the smarty_pants attribute. For
example, ``"1"`` is equivalent to ``"qBde"``.
:q: Educates normal quote characters: (") and (').
:b: Educates \`\`backticks'' -style double quotes.
:B: Educates \`\`backticks'' -style double quotes and \`single' quotes.
:d: Educates em-dashes.
:D: Educates em-dashes and en-dashes, using old-school typewriter shorthand:
(dash dash) for en-dashes, (dash dash dash) for em-dashes.
:i: Educates em-dashes and en-dashes, using inverted old-school typewriter
shorthand: (dash dash) for em-dashes, (dash dash dash) for en-dashes.
:e: Educates ellipses.
:w: Translates any instance of ``"`` into a normal double-quote character.
This should be of no interest to most people, but of particular interest
to anyone who writes their posts using Dreamweaver, as Dreamweaver
inexplicably uses this entity to represent a literal double-quote
character. SmartyPants only educates normal quotes, not entities (because
ordinarily, entities are used for the explicit purpose of representing the
specific character they represent). The "w" option must be used in
conjunction with one (or both) of the other quote options ("q" or "b").
Thus, if you wish to apply all SmartyPants transformations (quotes, en-
and em-dashes, and ellipses) and also translate ``"`` entities into
regular quotes so SmartyPants can educate them, you should pass the
following to the smarty_pants attribute:
�1Nc L @ s� e Zd ZdZdZdZdZddddddd d ddd d
dddddddd
d
dd
ddd
dddddd dd dddd
ddddddddddddddddddddd dd dd d
ddd dd
dd
ddddd�KZd dd�ZdS )!�
smartcharsu –u —u …u ’u “”‘’u „”‚’u „“‚‘u
«»“”u
»«›‹u
«»‹›u ‘’“”u ””’’u
»»››)u « u »� “� ”)� « � »r r )r r u ‹ u ›u
”“»«u „”‘’u
„”«»u 「」『』u
«»’’u
«»‘’u
«»‚’u
«»„“u “„‘‚u „”’’)K�afzaf-x-altquot�bg�cazca-x-altquot�cszcs-x-altquot�dazda-x-altquot�dezde-x-altquotzde-ch�el�enzen-uk-x-altquot�eo�eszes-x-altquot�etzet-x-altquot�eu�fizfi-x-altquot�frzfr-x-altquotzfr-chzfr-ch-x-altquot�gl�hezhe-x-altquot�hrzhr-x-altquotZhsbz
hsb-x-altquot�hu�is�itzit-chzit-x-altquot�ja�ko�lt�lv�mk�nlznl-x-altquot�nb�nnznn-x-altquot�nozno-x-altquot�plzpl-x-altquot�ptzpt-br�ro�ru�shzsh-x-altquot�skzsk-x-altquot�slzsl-x-altquot�sqzsq-x-altquot�srzsr-x-altquot�svzsv-x-altquot�trztr-x-altquot�ukzuk-x-altquotzzh-cnzzh-twr c C sT || _ z"| j|�� \| _| _| _| _W n& tyN d\| _| _| _| _Y n0 d S )Nz""'')�language�quotes�lower�opquote�cpquote�osquote�csquote�KeyError)�selfr2 � r; �>/usr/lib/python3.9/site-packages/docutils/utils/smartquotes.py�__init__� s �
�zsmartchars.__init__N)r ) �__name__�
__module__�__qualname__�endash�emdash�ellipsis�
apostropher3 r= r; r; r; r<