;ò
Ħd@c           @   sJ   d  Z  d k l Z e e d d d d  Z e e d d d d d  Z d S(   s   
This module contains practical examples of Docutils client code.

Importing this module 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.
(   s   cores   unicodei   c         C   sS   h  d | <d | <d | <} t i d |  d | d | d d d	 |  } | Sd
 S(   s  
    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>").
    s   input_encodings   doctitle_xforms   initial_header_levels   sources   source_paths   destination_paths   writer_names   htmls   settings_overridesN(
   s   input_encodings   doctitles   initial_header_levels	   overridess   cores   publish_partss   input_strings   source_paths   destination_paths   parts(   s   input_strings   source_paths   destination_paths   input_encodings   doctitles   initial_header_levels   partss	   overrides(    (    sF   /mit/golem/arch/share/lib/python2.3/site-packages/docutils/examples.pys
   html_parts   s     !c   	      C   s_   t  d |  d | d | d | d | d |  } | d } | d j o | i
 |  } n | Sd	 S(
   sl  
    Given an input string, returns an HTML fragment as a string.

    The return value is the contents of the <body> tag, less the title,
    subtitle, and docinfo.

    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" .
    s   input_strings   source_paths   destination_paths   input_encodings   doctitles   initial_header_levels   fragments   unicodeN(   s
   html_partss   input_strings   source_paths   destination_paths   input_encodings   doctitles   initial_header_levels   partss   fragments   output_encodings   encode(	   s   input_strings   source_paths   destination_paths   input_encodings   output_encodings   doctitles   initial_header_levels   fragments   parts(    (    sF   /mit/golem/arch/share/lib/python2.3/site-packages/docutils/examples.pys   html_fragment4   s     
N(   s   __doc__s   docutilss   cores   Nones
   html_partss   html_fragment(   s   cores
   html_partss   html_fragment(    (    sF   /mit/golem/arch/share/lib/python2.3/site-packages/docutils/examples.pys   ?   s   "