Package lemon :: Package external :: Package epydoc :: Package markup :: Module epytext :: Class ParsedEpytextDocstring
[show private | hide private]
[frames | no frames]

Class ParsedEpytextDocstring

ParsedDocstring --+
                  |
                 ParsedEpytextDocstring


Method Summary
  __init__(self, dom_tree)
list of ParsedDocstring index_terms(self)
Return the list of index terms that are defined in this docstring.
(ParsedDocstring, list of Field) split_fields(self, errors)
Split this docstring into its body and its fields.
ParsedDocstring summary(self)
Return a short summary of this docstring.
string to_html(self, docstring_linker, **options)
Translate this docstring to HTML.
string to_latex(self, docstring_linker, **options)
Translate this docstring to LaTeX.
string to_plaintext(self, docstring_linker, **options)
Translate this docstring to plaintext.

Class Variable Summary
dict SYMBOL_TO_HTML = {'Chi': 'Chi', 'ge': 'ge', 'asymp': 'as...
dict SYMBOL_TO_LATEX = {'Chi': '\\(\\chi\\)', 'ge': '\\(\\ge\...

Method Details

index_terms(self)

Returns:
The list of index terms that are defined in this docstring. Each of these items will be added to the index page of the documentation.
           (type=list of ParsedDocstring)
Overrides:
epydoc.markup.ParsedDocstring.index_terms (inherited documentation)

split_fields(self, errors=None)

Split this docstring into its body and its fields.
Parameters:
errors - A list where any errors generated during splitting will be stored. If no list is specified, then errors will be ignored.
           (type=list of ParseError)
Returns:
A tuple (body, fields), where body is the main body of this docstring, and fields is a list of its fields.
           (type=(ParsedDocstring, list of Field))
Overrides:
epydoc.markup.ParsedDocstring.split_fields (inherited documentation)

summary(self)

Returns:
A short summary of this docstring. Typically, the summary consists of the first sentence of the docstring.
           (type=ParsedDocstring)
Overrides:
epydoc.markup.ParsedDocstring.summary (inherited documentation)

to_html(self, docstring_linker, **options)

Translate this docstring to HTML.
Parameters:
docstring_linker - An HTML translator for crossreference links into and out of the docstring.
           (type=DocstringLinker)
options - Any extra options for the output. Unknown options are ignored.
Returns:
An HTML fragment that encodes this docstring.
           (type=string)
Overrides:
epydoc.markup.ParsedDocstring.to_html (inherited documentation)

to_latex(self, docstring_linker, **options)

Translate this docstring to LaTeX.
Parameters:
docstring_linker - A LaTeX translator for crossreference links into and out of the docstring.
           (type=DocstringLinker)
options - Any extra options for the output. Unknown options are ignored.
Returns:
A LaTeX fragment that encodes this docstring.
           (type=string)
Overrides:
epydoc.markup.ParsedDocstring.to_latex (inherited documentation)

to_plaintext(self, docstring_linker, **options)

Translate this docstring to plaintext.
Parameters:
docstring_linker - A plaintext translator for crossreference links into and out of the docstring.
           (type=DocstringLinker)
options - Any extra options for the output. Unknown options are ignored.
Returns:
A plaintext fragment that encodes this docstring.
           (type=string)
Overrides:
epydoc.markup.ParsedDocstring.to_plaintext (inherited documentation)

Class Variable Details

SYMBOL_TO_HTML

Type:
dict
Value:
{'Chi': 'Chi',
 'Epsilon': 'Epsilon',
 'Eta': 'Eta',
 'Psi': 'Psi',
 'asymp': 'asymp',
 'cup': 'cup',
 'equiv': 'equiv',
 'ge': 'ge',
...                                                                    

SYMBOL_TO_LATEX

Type:
dict
Value:
{'Chi': '\\(\\chi\\)',
 'Epsilon': '\\(\\epsilon\\)',
 'Eta': '\\(\\eta\\)',
 'Psi': '\\(\\Psi\\)',
 'asymp': '\\(\\approx\\)',
 'cup': '\\(\\cup\\)',
 'equiv': '\\(\\equiv\\)',
 'ge': '\\(\\ge\\)',
...                                                                    

Generated by Epydoc 2.0 on Mon Nov 10 15:08:19 2003 http://epydoc.sf.net