API
db2qthelp - a DocBook book to QtHelp project converter
Db2QtHelp
__init__(qt_path, xsltproc_path, css_definition, qhp_template)
Contructor
| Parameters: |
|
|---|
_get_id(html)
Return the docbook ID of the current section.
The value of the first a-element's name attribute is assumed to be the docbook ID.
| Parameters: |
|
|---|
| Returns: |
|
|---|
_get_name(html)
Return the name of the current section.
| Parameters: |
|
|---|
| Returns: |
|
|---|
_get_title(html)
Return the name of the current section.
| Parameters: |
|
|---|
| Returns: |
|
|---|
patch_links(doc, app_name, files)
Extracts references to images; patches links to point to main document folder
| Parameters: |
|
|---|
| Returns: |
|
|---|
_write_sections_recursive(html, dst_folder, pages, level)
Writes the given section and it's sub-sections recursively.
The id and the name of the section are retrieved, first.
Then, the toc HTML file is extended and the reference to this section is appended to the returned toc. Keywords are extended by the section's name.
The section is then split along the '<div class="sect<INDENT>">' elements which are processed recursively.
The (recursively) collected keywords and toc are returned.
| Parameters: |
|
|---|
_process_single(source, dst_folder, pages, files, app_name)
Processes a single (not chunked) HTML document generated by docbook
| Parameters: |
|
|---|
_generate_html(source, folder)
Generates a chunked HTML document from the source docbook document
| Parameters: |
|
|---|
_process_chunked(folder, pages, files, app_name, dst_folder)
Processes a the set of HTML documents generated by chunking docbook
| Parameters: |
|
|---|
_copy_files(files, source, dst_folder)
Copies referenced files into the destination folder
| Parameters: |
|
|---|
build_toc_sections(pages)
Generates a hierarchical list of pages to be embedded in the toc-section of the qhp-file.
| Parameters: |
|
|---|
| Returns: |
|
|---|
process(source, dst_folder, app_name)
Performs the conversion
| Parameters: |
|
|---|
main(arguments=None)
The main method using parameter from the command line.
| Parameters: |
|
|---|
| Returns: |
|
|---|
script_run()
Execute from command line.