__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
�

�&�g�.��`�SrSSKJr SSKJr SSKJr SSKJrJ	r	J
r
Jr S/r"SS\5r
g)	z�
pygments.formatters.rtf
~~~~~~~~~~~~~~~~~~~~~~~

A formatter that generates RTF files.

:copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
�)�OrderedDict)�	Formatter)�_ansimap)�get_bool_opt�get_int_opt�get_list_opt�
surrogatepair�RtfFormatterc��\rSrSrSrSrS/rS/rSrSr	Sr
\S	5rS
r
Sr\S5r\S
5r\S5rSrSrg)r
�a�
Format tokens as RTF markup. This formatter automatically outputs full RTF
documents with color information and other useful stuff. Perfect for Copy and
Paste into Microsoft(R) Word(R) documents.

Please note that ``encoding`` and ``outencoding`` options are ignored.
The RTF format is ASCII natively, but handles unicode characters correctly
thanks to escape sequences.

.. versionadded:: 0.6

Additional options accepted:

`style`
    The style to use, can be a string or a Style subclass (default:
    ``'default'``).

`fontface`
    The used font family, for example ``Bitstream Vera Sans``. Defaults to
    some generic font which is supposed to have fixed width.

`fontsize`
    Size of the font used. Size is specified in half points. The
    default is 24 half-points, giving a size 12 font.

    .. versionadded:: 2.0

`linenos`
    Turn on line numbering (default: ``False``).

    .. versionadded:: 2.18

`lineno_fontsize`
    Font size for line numbers. Size is specified in half points
    (default: `fontsize`). 

    .. versionadded:: 2.18

`lineno_padding`
    Number of spaces between the (inline) line numbers and the
    source code (default: ``2``).

    .. versionadded:: 2.18

`linenostart`
    The line number for the first line (default: ``1``).

    .. versionadded:: 2.18

`linenostep`
    If set to a number n > 1, only every nth line number is printed.

    .. versionadded:: 2.18

`lineno_color`
    Color for line numbers specified as a hex triplet, e.g. ``'5e5e5e'``. 
    Defaults to the style's line number color if it is a hex triplet, 
    otherwise ansi bright black.

    .. versionadded:: 2.18

`hl_lines`
    Specify a list of lines to be highlighted, as line numbers separated by
    spaces, e.g. ``'3 7 8'``. The line numbers are relative to the input 
    (i.e. the first line is line 1) unless `hl_linenostart` is set.

    .. versionadded:: 2.18

`hl_color`
    Color for highlighting the lines specified in `hl_lines`, specified as 
    a hex triplet (default: style's `highlight_color`).

    .. versionadded:: 2.18

`hl_linenostart`
    If set to ``True`` line numbers in `hl_lines` are specified
    relative to `linenostart` (default ``False``).

    .. versionadded:: 2.18
�RTF�rtfz*.rtfc��[R"U40UD6 URS5=(d SUl[	USS5Ul[
USS5Ul[	USUR
5Ul[	USS	5Ul	[[	US
S55Ul[[	USS55Ul[
US
S5Ul
URSS5UlUR(dURR Ul/Ul[%US/5HLn['U5nUR(aX R-
S-nUR"R)U5 MN URSS5UlUR,(dDURR.S:Xa[0SUlOURR.UlUR35Ulg![*a M�f=f)aR
Additional options accepted:

``fontface``
    Name of the font used. Could for example be ``'Courier New'``
    to further specify the default which is ``'\fmodern'``. The RTF
    specification claims that ``\fmodern`` are "Fixed-pitch serif
    and sans serif fonts". Hope every RTF implementation thinks
    the same about modern...

�fontface��fontsizer�linenosF�lineno_fontsize�lineno_padding��linenostart��
linenostep�hl_linenostart�hl_color�hl_lines�lineno_color�inherit�ansibrightblackN)r�__init__�getrrrrrrr�absrrrr�style�highlight_colorrr�int�append�
ValueErrorr�line_number_colorr�_create_color_mapping�
color_mapping)�self�options�linenos   �9/usr/lib/python3/dist-packages/pygments/formatters/rtf.pyr �RtfFormatter.__init__is���	���4�+�7�+����J�/�5�2��
�#�G�Z��;��
�#�G�Y��>���*�7�4E�+/�=�=� :���)�'�3C�Q�G����{�7�M�1�E�F����k�'�<��C�D���*�7�4D�e�L������J��3��
��}�}� �J�J�6�6�D�M���
�"�7�J��;�F�
��V����&�&�#�&6�&6�6��:�F��
�
�$�$�V�,�<�$�K�K���;���� � ��
�
�,�,�	�9�%-�->�$?��!�%)�J�J�$@�$@��!�!�7�7�9�����
��
�s�,AG:�:
H�Hc�f�URSS5RSS5RSS5$)N�\z\\�{z\{�}z\})�replace)r+�texts  r.�_escape�RtfFormatter._escape�s-���|�|�D�&�)��G�C��'��G�C��'�	(�c�|�U(dgURU5n/nUH{n[U5nUS:aUR[U55 M0SUs=::aS:aO OURSU-5 MVSU::dM^URS[	U5-5 M} SRU5R
SS5$)Nr�iz{\u%d}z{\u%d}{\u%d}�
z\par)r6�ordr&�strr	�joinr4)r+r5�buf�c�cns     r.�_escape_text�RtfFormatter._escape_text�s������|�|�D�!�����A��Q��B��T�{��
�
�3�q�6�"��2�'��'��
�
�9�r�>�*��B���
�
�+�m�B�.?�?�@���w�w�s�|�#�#�D�'�2�2r8c�|�USS:XaUSSnS[USSS5[USSS5[USSS54-$)	Nr�#rz\red%d\green%d\blue%d;r���)r%)�	hex_colors r.�hex_to_rtf_color�RtfFormatter.hex_to_rtf_color�s[���Q�<�3��!�!�"�
�I�*��I�a��N�B�/��I�a��N�B�/��I�a��N�B�/�.��	r8c#��# �UHXup#US:XaX#4v� MSU;a;URS5nUSSHnX%S-4v� M
 US(a
X$S4v� MQMSX#4v� MZ g7f)z�
Split tokens containing newline characters into multiple token
each representing a line of the input file. Needed for numbering
lines of e.g. multiline comments.
r;N���)�split)r+�tokensource�ttype�value�lines�lines      r.�_split_tokens_on_newlines�&RtfFormatter._split_tokens_on_newlines�sw���(�L�E���}��n�$�������D�)��!�#�2�J�D� �t�)�,�,�'���9� ��)�,�,���n�$�(�s�A A"c�4�[5nSnUR(aX!UR'US-
nUR(aX!UR'US-
nUR
H3up4USUSUS4HnU(dMXQ;dMX!U'US-
nM M5 U$)zN
Create a mapping of style hex colors to index/offset in
the RTF color table.
r�color�bgcolor�border)rrrrrr#)r+r*�offset�_r#rWs      r.r)�"RtfFormatter._create_color_mapping�s���
$�
�
����<�<�/5�$�+�+�,��a�K�F��=�=�+1�$�-�-�(��a�K�F��
�
�H�A��w���y�)9�5��?�J���5�U�7�+1�%�(��a�K�F�K�#��r8c�$�URUR:waASRURURURSUR
-5$SRURURSUR
-5$)Nz{{\fs{} \cf{} %s{}}}� z{{\cf{} %s{}}})rr�formatr*rr�r+s r.�_lineno_template�RtfFormatter._lineno_template�s������4�=�=�0�+�2�2�4�3G�3G��,�,�T�->�->�?��� 3� 3�3�5�
5�!�'�'��(:�(:�4�;L�;L�(M��D�/�/�/�1�	1r8c�<�SURURS3$)Nz{\highlightr^)r*rr`s r.�_hl_open_str�RtfFormatter._hl_open_str�s!���t�1�1�$�-�-�@�A��C�Cr8c��/nURSUR=(a SURUR5-=(d S-5 URS5 URR	5H%up#URURU55 M' URS5 URS5 UR(aURSUR-5 URS5 U$)	Nz?{\rtf1\ansi\uc0\deff0{\fonttbl{\f0\fmodern\fprq1\fcharset0%s;}}r^rz{\colortbl;r3z\f0\sa0z\fs%dz\dntblnsbdb)r&rr6r*�itemsrJr)r+rRrWr[s    r.�_rtf_header�RtfFormatter._rtf_header�s�����
���G��
�
�6�#��,�,�t�}�}�5�+6�<�9;�=�	>�	���^�$��*�*�0�0�2�H�E��L�L��.�.�u�5�6�3�
���S��	���[�!��=�=��L�L��D�M�M�1�2�
	���^�$��r8c�l�URHnURUS-5 M URU5nUR(acSn/nUH4upgUR	Xg45 URS5(dM/US-
nM6 [
[X@R-S-
55nUnSn	Sn
UGH�upgU
(a*X�R;aURUR5 U
(a�UR(a}X�R-
S-UR-S:Xa,X�R-S-
n[U5RW5nOSRW5nURURU-5 URRU5(dPUR (a?UR nURRU5(dUR (aM?URR#U5n
/nU
S(a$UR	SUR$U
S-5 U
S(a$UR	S	UR$U
S-5 U
S
(aUR	S5 U
S(aUR	S
5 U
S(aUR	S5 U
S(a$UR	SUR$U
S-5 SR'U5nU(aURSUS35 URUR)U55 U(aURS5 Sn
URS5(dGM�X�R;aURS5 URS5 Sn
U	S-
n	GM� URS5 g)Nr;rrTrrXz\cb%drWz\cf%d�boldz\b�italicz\i�	underlinez\ulrYz\chbrdr\chcfpat%dr2r^r3Fz}
)rh�writerTrr&�endswith�lenr=rrrdr�rjustrar#�styles_token�parent�style_for_tokenr*r>rB)r+rO�outfilerS�
line_count�tokensrPrQ�
linenos_widthr-�start_new_line�current_lineno�
lineno_strr#r?�starts                r.�format_unencoded�RtfFormatter.format_unencodeds����$�$�D��M�M�$��+�&�%��4�4�[�A���<�<��J��F� +����
�
�u�n�-��>�>�$�'�'��!�O�J�!,� ��J�/?�/?�$?��$A� B�C�M� �K�����'�L�E��&�M�M�"9��
�
�d�/�/�0��$�,�,��+�+�+�A�-�t���>�!�C�%+�.>�.>�%>��%B�N�!$�^�!4�!:�!:�=�!I�J�!#���-�!8�J��
�
�d�3�3�j�@�A��j�j�-�-�e�4�4���������j�j�-�-�e�4�4������J�J�.�.�u�5�E��C��Y���
�
�8�d�&8�&8��y�9I�&J�J�K��W�~��
�
�8�d�&8�&8��w��&H�H�I��V�}��
�
�5�!��X���
�
�5�!��[�!��
�
�6�"��X���
�
�0��-�-�e�H�o�>�?�@��G�G�C�L�E���
�
��5�'��m�,��M�M�$�+�+�E�2�3���
�
�c�"�"�N��~�~�d�#�#��]�]�*��M�M�#�&��
�
�d�#�!%���!���](�`	�
�
�e�r8)r*rrrrrrrrrrrN)�__name__�
__module__�__qualname__�__firstlineno__�__doc__�name�aliases�	filenamesr r6rB�staticmethodrJrTr)�propertyrardrhr}�__static_attributes__�r8r.r
r
s���O�`�D��g�G��	�I�0:�d(�
3�0����%�$�0�1��1��D��D�����4Gr8N)r��collectionsr�pygments.formatterr�pygments.styler�
pygments.utilrrrr	�__all__r
r�r8r.�<module>r�s3���$�(�#�P�P��
��I�9�Ir8

Filemanager

Name Type Size Permission Actions
__init__.cpython-313.pyc File 6.69 KB 0644
_mapping.cpython-313.pyc File 4.07 KB 0644
bbcode.cpython-313.pyc File 4.12 KB 0644
groff.cpython-313.pyc File 7.2 KB 0644
html.cpython-313.pyc File 40.07 KB 0644
img.cpython-313.pyc File 27.74 KB 0644
irc.cpython-313.pyc File 5.9 KB 0644
latex.cpython-313.pyc File 19.82 KB 0644
other.cpython-313.pyc File 6.7 KB 0644
pangomarkup.cpython-313.pyc File 2.91 KB 0644
rtf.cpython-313.pyc File 13.47 KB 0644
svg.cpython-313.pyc File 8.88 KB 0644
terminal.cpython-313.pyc File 5.67 KB 0644
terminal256.cpython-313.pyc File 15.08 KB 0644
Filemanager