§
    N=&by  ã                   óB   — d Z ddlmZmZ 	 	 	 d
d„Z	 	 	 dd„Z	 	 dd	„ZdS )a1  
This module contains practical examples of Docutils client code.

Importing this module from client code is not recommended; its contents are
subject to change in future Docutils releases.  Instead, it is recommended
that you copy and paste the parts you need into your own code, modifying as
necessary.
é    )ÚcoreÚioNÚunicodeTé   c                 óD   — |||dœ}t          j        | ||d|¬¦  «        }|S )a  
    Given an input string, returns a dictionary of HTML document parts.

    Dictionary keys are the names of parts, and values are Unicode strings;
    encoding is up to the client.

    Parameters:

    - `input_string`: A multi-line text string; required.
    - `source_path`: Path to the source file or object.  Optional, but useful
      for diagnostic output (system messages).
    - `destination_path`: Path to the file or object which will receive the
      output; optional.  Used for determining relative paths (stylesheets,
      source links, etc.).
    - `input_encoding`: The encoding of `input_string`.  If it is an encoded
      8-bit string, provide the correct encoding.  If it is a Unicode string,
      use "unicode", the default.
    - `doctitle`: Disable the promotion of a lone top-level section title to
      document title (and subsequent section title to document subtitle
      promotion); enabled by default.
    - `initial_header_level`: The initial level for header elements (e.g. 1
      for "<h1>").
    )Úinput_encodingÚdoctitle_xformÚinitial_header_levelÚhtml)ÚsourceÚsource_pathÚdestination_pathÚwriter_nameÚsettings_overrides)r   Úpublish_parts)Úinput_stringr   r   r   Údoctitler
   Ú	overridesÚpartss           ú3/usr/lib/python3/dist-packages/docutils/examples.pyÚ
html_partsr      sF   € ð4 $2Ø#+Ø)=ð?ð ?€Iõ ÔØ¨Ø)Ø¨yð:ñ :ô :€Eð €Ló    c                 óv   — t          | |||||¬¦  «        }|d         }|dk    r|                     |¦  «        }|S )aE  
    Given an input string, returns an HTML fragment as a string.

    The return value is the contents of the <body> element.

    Parameters (see `html_parts()` for the remainder):

    - `output_encoding`: The desired encoding of the output.  If a Unicode
      string is desired, use the default value of "unicode" .
    )r   r   r   r   r   r
   Ú	html_bodyr   )r   Úencode)	r   r   r   r   Úoutput_encodingr   r
   r   Úfragments	            r   r   r   5   sU   € õ Ø!¨{Ø)Ø%°Ø1ð	3ñ 3ô 3€Eð
 �[Ô!€HØ˜)Ò#Ð#Ø—?’? ?Ñ3Ô3ˆØ€Or   c                 ó  — |r|                      ¦   «         }ni }||d<   t          j        di dt          j        “d| “d|“dt          j        “dd“d|“d	d“d
d“dd“dd“dd“dd“dd“dd“d|“dd“dd“Ž\  }}|j        j        |fS )zx
    Return the document tree and publisher, for exploring Docutils internals.

    Parameters: see `html_parts()`.
    r   Úsource_classr   r   Údestination_classÚdestinationNr   ÚreaderÚreader_nameÚ
standaloneÚparserÚparser_nameÚrestructuredtextÚwriterr   ÚnullÚsettingsÚsettings_specr   Úconfig_sectionÚenable_exit_status© )Úcopyr   Úpublish_programmaticallyr   ÚStringInputÚ
NullOutputr(   Údocument)r   r   r   r   r   r   ÚoutputÚpubs           r   Ú	internalsr6   M   s)  € ð ð Ø&×+Ò+Ñ-Ô-ˆ	ˆ	àˆ	Ø"0€IÐÑÝÔ/ð 	6ð 	6ð 	6Ý”^�^ð	6Ø,8¨Lð	6à�Kð	6õ œ-˜-ð	6ð 6:°Tð	6ð *Ð)ð		6ð
 ˆtð	6ð
 ". ð	6ð ˆtð	6ð "4Ð!3ð	6ð ˆtð	6ð "( ð	6ð �ð	6ð &* Tð	6ð ?H¸ið	6ð �tð	6ð 15°ð	6�K€FˆCð Œ:Ô Ð#Ð#r   )NNr   Tr   )NNr   r   Tr   )NNr   N)Ú__doc__Údocutilsr   r   r   r   r6   r.   r   r   ú<module>r9      s”   ðð
ð ð Ð Ð Ð Ð Ð Ð Ð ð AEØ26Ø$%ð!ð !ð !ð !ðH @DØ8AØ23ðð ð ð ð0 @DØ;?ð$ð $ð $ð $ð $ð $r   