| 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/writers/__pycache__/ |
Upload File : |
a
OԼaa � @ s d Z ddlZddlZddlZddlZddlZddlZddlZddlZddlm Z m
Z
mZmZm
Z
ddlmZ ddlmZ ddlmZ ddlmZ ddlmZmZmZmZmZ ejd kr�dd
lmZ ndd
lmZ ejd kr�e Z!G dd� de
j"�Z"G d
d� dej#�Z$G dd� dej%�Z&dS )z,common definitions for Docutils HTML writers� N)�frontend� languages�nodes�utils�writers)� length_or_percentage_or_unitless)�PIL)�
SafeString)�
writer_aux)�unichar2tex�pick_math_environment� math2html�latex2mathml�tex2mathml_extern)� r )�url2pathnamec @ s� e Zd ZdZddddgddifdd gd
dejd�fd
dgddejd�fddgdejd�fddgddejd�fddgddd�fdd gd!�� d"d#d$�fd%d&gd'd(gd(d)d*d+�fd,d-gg d.�d/d)d$�fd0d1gd2dejd�fd3d4gd5dd�fd6d7gd2dejd�fd8d9gd:dd�fd;d<gd=d>ifd?d@gd=dAifdBdCgdDdejd�fdEdFgdGdd�fdHdIgdejdJ�fffZdKdLiZ dMZ
dNZdOZdPdQ� Z
dRdS� ZdTdU� ZdVdW� ZdXdY� ZdS )Z�Writer)�htmlZxhtmlzHTML Writer OptionsNzFSpecify the template file (UTF-8 encoded). (default: writer dependent)z
--template�metavarz<file>zhComma separated list of stylesheet URLs. Overrides previous --stylesheet and --stylesheet-path settings.z--stylesheetz<URL[,URL,...]>�stylesheet_path)r � overrides� validatorz�Comma separated list of stylesheet paths. Relative paths are expanded if a matching file is found in the --stylesheet-dirs. With --link-stylesheet, the path is rewritten relative to the output HTML file. (default: writer dependent)z--stylesheet-pathz<file[,file,...]>�
stylesheetz�Comma-separated list of directories where stylesheets are found. Used by --stylesheet-path when expanding relative path arguments. (default: writer dependent)z--stylesheet-dirsz<dir[,dir,...]>)r r zvEmbed the stylesheet(s) in the output HTML file. The stylesheet files must be accessible during processing. (default)z--embed-stylesheet� �
store_true)�default�actionr z3Link to the stylesheet(s) in the output HTML file. z--link-stylesheet�embed_stylesheet�store_false)�destr z}Specify the initial header level. Does not affect document title & subtitle (see --no-doc-title).(default: writer dependent).z--initial-header-levelz1 2 3 4 5 6�2z<level>)�choicesr r zYFormat for footnote references: one of "superscript" or "brackets". (default: "brackets")z--footnote-referencesZsuperscriptZbracketsz<format>Ztrim_footnote_reference_space)r! r r r zyFormat for block quote attributions: one of "dash" (em-dash prefix), "parentheses"/"parens", or "none". (default: "dash")z
--attribution��dashZparenthesesZparensZnoner# zgRemove extra vertical whitespace between items of "simple" bullet lists and enumerated lists. (default)z--compact-listsTz3Disable compact simple bullet and enumerated lists.z--no-compact-lists�
compact_listszORemove extra vertical whitespace between items of simple field lists. (default)z--compact-field-listsz#Disable compact simple field lists.z--no-compact-field-lists�compact_field_listsz�Added to standard table classes. Defined styles: borderless, booktabs, align-left, align-center, align-right, colwidths-auto, colwidths-grid.z
--table-styler � zmMath output format (one of "MathML", "HTML", "MathJax", or "LaTeX") and option(s). (default: "HTML math.css")z
--math-outputz
HTML math.csszPrepend an XML declaration. z--xml-declarationFzOmit the XML declaration.z--no-xml-declaration�xml_declarationzyObfuscate email addresses to confuse harvesters while still keeping email links usable with standards-compliant browsers.z--cloak-email-addresses)r r Zoutput_encoding_error_handler�xmlcharrefreplacezhtml writers)r )�head_prefix�headr �body_prefix�body_pre_docinfo�docinfo�body�body_suffix�title�subtitle�header�footer�meta�fragment�html_prolog� html_head�
html_title�
html_subtitle� html_bodyc C s t j�| �tjg S �N)r r �get_transformsr
ZAdmonitions��self� r? �?/usr/lib/python3.9/site-packages/docutils/writers/_html_base.pyr<