Home | Trees | Index | Help |
|
---|
Package yagdoc :: Module docbook |
|
Classes | |
---|---|
Section |
One reference documentation section. |
Exceptions | |
---|---|
DocBookException |
Base class for DocBook writer exceptions |
TooFewSignalArguments |
Signal documentation has less arguments than the signal |
TooManySignalArguments |
Signal documentation has more arguments than the signal |
Function Summary | |
---|---|
Set DocBook version from DOCTYPE of a file. | |
Calculate column widths. | |
Convert underscores to dashes (for canonical signal and property names). | |
str .
|
Escape & , < and
> . |
str .
|
Escape & , < and > if
they do not look like part of XML. |
expand(lines)
| |
expand_attribute(text)
| |
str
|
Escape < , > amd &
that do not look like XML in text and return it. |
expand_constant(text)
| |
expand_function(text)
| |
str
|
Perform no transform of text and return it. |
expand_parameter(text)
| |
str
|
Expand abbreviations, escape < , > amd
& that do not look like XML in text and return it. |
expand_type(text)
| |
Join a sequence of strings with spaces. | |
Join a sequence of strings with newlines. | |
Join a sequence of strings with commas, using 'and' for
the last two, as a human would do. | |
linkify(linktext,
symbol)
| |
Change string to a valid case-insensitive SGML id. | |
Change string to a valid case-insensitive SGML id. | |
Update an item in a dictionary from another dictionary, with possible transform. |
Function Details |
---|
adapt_docbook_version(xmlfile)Set DocBook version from DOCTYPE of a file.
|
column_widths(rows, n=0)Calculate column widths.
|
dashize(name)Convert underscores to dashes (for canonical signal and property names). |
escape_entities(text)Escape& , < and
> .
|
escape_entities_smart(text)Escape Mimics gtk-doc behaviour if there is no compelling reason to do
otherwise as it's just a bloody heuristics. We additionally recognize
|
expand_code(text)Escape
|
expand_nothing(text)Perform no transform of text and return it. This expander is applied on CDATA section content.
|
expand_text(text)Expand abbreviations, escape
|
join(lines)Join a sequence of strings with spaces. |
join_lines(lines)Join a sequence of strings with newlines. |
join_with_and(items)Join a sequence of strings with commas, using'and' for
the last two, as a human would do.
|
make_gtkdoc_sgml_id(name)Change string to a valid case-insensitive SGML id. This function attempts to mimics the gtk-doc's one to obtain the same ids for the same symbols. Use it for external references. |
make_sgml_id(name)Change string to a valid case-insensitive SGML id. This function assumes underscores are allowed and therefore avoids most of the transofmrs. SGML DocBook explicitly declares underscores and XML explicitly permits them. |
update(dest, key, source, transforms=[], srckey=None)Update an item in a dictionary from another dictionary, with possible transform.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Fri Oct 5 00:36:53 2007 | http://epydoc.sf.net |