class ODFTranslator(nodes.GenericNodeVisitor): (source)
Undocumented
Method | __init__ |
Undocumented |
Method | add_doc_title |
Undocumented |
Method | add_header_footer |
Undocumented |
Method | append_child |
Undocumented |
Method | append_p |
Undocumented |
Method | append_pending_ids |
Undocumented |
Method | astext |
Undocumented |
Method | attach_page_style |
Attach the default page style. |
Method | check_file_exists |
Undocumented |
Method | content_astext |
Undocumented |
Method | convert_to_cm |
Convert various units to centimeters. |
Method | create_custom_headfoot |
Undocumented |
Method | default_departure |
Override for generic, uniform traversals. |
Method | default_visit |
Override for generic, uniform traversals. |
Method | depart_abbreviation |
Undocumented |
Method | depart_acronym |
Undocumented |
Method | depart_address |
Undocumented |
Method | depart_attribution |
Undocumented |
Method | depart_author |
Undocumented |
Method | depart_authors |
Undocumented |
Method | depart_block_quote |
Undocumented |
Method | depart_bullet_list |
Undocumented |
Method | depart_caption |
Undocumented |
Method | depart_citation |
Undocumented |
Method | depart_citation_reference |
Undocumented |
Method | depart_classifier |
Undocumented |
Method | depart_colspec |
Undocumented |
Method | depart_comment |
Undocumented |
Method | depart_compound |
Undocumented |
Method | depart_contact |
Undocumented |
Method | depart_container |
Undocumented |
Method | depart_copyright |
Undocumented |
Method | depart_date |
Undocumented |
Method | depart_decoration |
Undocumented |
Method | depart_definition |
Undocumented |
Method | depart_definition_list |
Undocumented |
Method | depart_definition_list_item |
Undocumented |
Method | depart_description |
Undocumented |
Method | depart_docinfo |
Undocumented |
Method | depart_document |
Undocumented |
Method | depart_emphasis |
Undocumented |
Method | depart_entry |
Undocumented |
Method | depart_enumerated_list |
Undocumented |
Method | depart_field |
Undocumented |
Method | depart_field_body |
Undocumented |
Method | depart_field_list |
Undocumented |
Method | depart_field_name |
Undocumented |
Method | depart_figure |
Undocumented |
Method | depart_footer |
Undocumented |
Method | depart_footnote |
Undocumented |
Method | depart_footnote_reference |
Undocumented |
Method | depart_generated |
Undocumented |
Method | depart_header |
Undocumented |
Method | depart_image |
Undocumented |
Method | depart_inline |
Undocumented |
Method | depart_label |
Undocumented |
Method | depart_legend |
Undocumented |
Method | depart_line |
Undocumented |
Method | depart_line_block |
Undocumented |
Method | depart_list_item |
Undocumented |
Method | depart_literal |
Undocumented |
Method | depart_literal_block |
Undocumented |
Method | depart_math |
Undocumented |
Method | depart_math_block |
Undocumented |
Method | depart_meta |
Undocumented |
Method | depart_option |
Undocumented |
Method | depart_option_argument |
Undocumented |
Method | depart_option_group |
Undocumented |
Method | depart_option_list |
Undocumented |
Method | depart_option_list_item |
Undocumented |
Method | depart_option_string |
Undocumented |
Method | depart_organization |
Undocumented |
Method | depart_paragraph |
Undocumented |
Method | depart_problematic |
Undocumented |
Method | depart_raw |
Undocumented |
Method | depart_reference |
Undocumented |
Method | depart_revision |
Undocumented |
Method | depart_row |
Undocumented |
Method | depart_rubric |
Undocumented |
Method | depart_section |
Undocumented |
Method | depart_sidebar |
Undocumented |
Method | depart_status |
Undocumented |
Method | depart_strong |
Undocumented |
Method | depart_subscript |
Undocumented |
Method | depart_substitution_definition |
Undocumented |
Method | depart_subtitle |
Undocumented |
Method | depart_superscript |
Undocumented |
Method | depart_system_message |
Undocumented |
Method | depart_table |
Undocumented |
Method | depart_target |
Undocumented |
Method | depart_tbody |
Undocumented |
Method | depart_term |
Undocumented |
Method | depart_Text |
Undocumented |
Method | depart_tgroup |
Undocumented |
Method | depart_thead |
Undocumented |
Method | depart_title |
Undocumented |
Method | depart_title_reference |
Undocumented |
Method | depart_topic |
Undocumented |
Method | depart_transition |
Undocumented |
Method | depart_version |
Undocumented |
Method | depart_warning |
Undocumented |
Method | dispatch_visit |
Override to catch basic attributes which many nodes have. |
Method | encode |
Undocumented |
Method | extract_table_styles |
Undocumented |
Method | fill_func1 |
Undocumented |
Method | fill_func2 |
Undocumented |
Method | fill_line |
Undocumented |
Method | find_first_text_p |
Search the generated doc and return the first <text:p> element. |
Method | find_title_label |
Undocumented |
Method | generate_admonition |
Undocumented |
Method | generate_content_element |
Undocumented |
Method | generate_figure |
Undocumented |
Method | generate_image |
Undocumented |
Method | generate_labeled_block |
Undocumented |
Method | generate_labeled_line |
Undocumented |
Method | generate_table_of_content_entry_template |
Undocumented |
Method | get_dom_stylesheet |
Undocumented |
Method | get_embedded_file_list |
Undocumented |
Method | get_image_scale |
Undocumented |
Method | get_image_scaled_width_height |
Return the image size in centimeters adjusted by image attrs. |
Method | get_image_width_height |
Undocumented |
Method | get_meta_dict |
Undocumented |
Method | get_page_width |
Return the document's page width in centimeters. |
Method | get_property |
Undocumented |
Method | get_str_stylesheet |
Undocumented |
Method | get_table_style |
Undocumented |
Method | get_title |
Undocumented |
Method | handle_basic_atts |
Undocumented |
Method | is_in_table |
Undocumented |
Method | make_field_element |
Undocumented |
Method | process_footnotes |
Undocumented |
Method | retrieve_styles |
Retrieve the stylesheet from either a .xml file or from a .odt (zip) file. Return the content as a string. |
Method | rststyle |
Returns the style name to use for the given style. |
Method | set_current_element |
Undocumented |
Method | set_embedded_file_list |
Undocumented |
Method | set_title |
Undocumented |
Method | set_to_parent |
Undocumented |
Method | setup_page |
Undocumented |
Method | setup_paper |
Undocumented |
Method | split_field_specifiers_iter |
Undocumented |
Method | update_toc_add_numbers |
Undocumented |
Method | update_toc_collect |
Undocumented |
Method | update_toc_page_numbers |
Undocumented |
Method | visit_abbreviation |
Undocumented |
Method | visit_acronym |
Undocumented |
Method | visit_address |
Undocumented |
Method | visit_admonition |
Undocumented |
Method | visit_attention |
Undocumented |
Method | visit_attribution |
Undocumented |
Method | visit_author |
Undocumented |
Method | visit_authors |
Undocumented |
Method | visit_block_quote |
Undocumented |
Method | visit_bullet_list |
Undocumented |
Method | visit_caption |
Undocumented |
Method | visit_caution |
Undocumented |
Method | visit_citation |
Undocumented |
Method | visit_citation_reference |
Undocumented |
Method | visit_classifier |
Undocumented |
Method | visit_colspec |
Undocumented |
Method | visit_comment |
Undocumented |
Method | visit_compound |
Undocumented |
Method | visit_contact |
Undocumented |
Method | visit_container |
Undocumented |
Method | visit_copyright |
Undocumented |
Method | visit_danger |
Undocumented |
Method | visit_date |
Undocumented |
Method | visit_decoration |
Undocumented |
Method | visit_definition |
Undocumented |
Method | visit_definition_list |
Undocumented |
Method | visit_definition_list_item |
Undocumented |
Method | visit_description |
Undocumented |
Method | visit_docinfo |
Undocumented |
Method | visit_document |
Undocumented |
Method | visit_emphasis |
Undocumented |
Method | visit_entry |
Undocumented |
Method | visit_enumerated_list |
Undocumented |
Method | visit_error |
Undocumented |
Method | visit_field |
Undocumented |
Method | visit_field_body |
Undocumented |
Method | visit_field_list |
Undocumented |
Method | visit_field_name |
Undocumented |
Method | visit_figure |
Undocumented |
Method | visit_footer |
Undocumented |
Method | visit_footnote |
Undocumented |
Method | visit_footnote_reference |
Undocumented |
Method | visit_generated |
Undocumented |
Method | visit_header |
Undocumented |
Method | visit_hint |
Undocumented |
Method | visit_image |
Undocumented |
Method | visit_important |
Undocumented |
Method | visit_inline |
Undocumented |
Method | visit_label |
Undocumented |
Method | visit_legend |
Undocumented |
Method | visit_line |
Undocumented |
Method | visit_line_block |
Undocumented |
Method | visit_list_item |
Undocumented |
Method | visit_literal |
Undocumented |
Method | visit_literal_block |
Undocumented |
Method | visit_math |
Undocumented |
Method | visit_math_block |
Undocumented |
Method | visit_meta |
Undocumented |
Method | visit_note |
Undocumented |
Method | visit_option |
Undocumented |
Method | visit_option_argument |
Undocumented |
Method | visit_option_group |
Undocumented |
Method | visit_option_list |
Undocumented |
Method | visit_option_list_item |
Undocumented |
Method | visit_option_string |
Undocumented |
Method | visit_organization |
Undocumented |
Method | visit_paragraph |
Undocumented |
Method | visit_problematic |
Undocumented |
Method | visit_raw |
Undocumented |
Method | visit_reference |
Undocumented |
Method | visit_revision |
Undocumented |
Method | visit_row |
Undocumented |
Method | visit_rubric |
Undocumented |
Method | visit_section |
Undocumented |
Method | visit_sidebar |
Undocumented |
Method | visit_status |
Undocumented |
Method | visit_strong |
Undocumented |
Method | visit_subscript |
Undocumented |
Method | visit_substitution_definition |
Undocumented |
Method | visit_subtitle |
Undocumented |
Method | visit_superscript |
Undocumented |
Method | visit_system_message |
Undocumented |
Method | visit_table |
Undocumented |
Method | visit_target |
Undocumented |
Method | visit_tbody |
Undocumented |
Method | visit_term |
Undocumented |
Method | visit_Text |
Undocumented |
Method | visit_tgroup |
Undocumented |
Method | visit_thead |
Undocumented |
Method | visit_tip |
Undocumented |
Method | visit_title |
Undocumented |
Method | visit_title_reference |
Undocumented |
Method | visit_topic |
Undocumented |
Method | visit_transition |
Undocumented |
Method | visit_version |
Undocumented |
Method | visit_warning |
Undocumented |
Class Variable | code_field |
Undocumented |
Class Variable | code_none |
Undocumented |
Class Variable | code_text |
Undocumented |
Class Variable | field_pat |
Undocumented |
Class Variable | footnote_chars |
Undocumented |
Class Variable | used_styles |
Undocumented |
Instance Variable | automatic_styles |
Undocumented |
Instance Variable | blockstyle |
Undocumented |
Instance Variable | body_text_element |
Undocumented |
Instance Variable | bumped_list_level_stack |
Undocumented |
Instance Variable | citation_id |
Undocumented |
Instance Variable | column_count |
Undocumented |
Instance Variable | content_tree |
Undocumented |
Instance Variable | current_element |
Undocumented |
Instance Variable | current_table_style |
Undocumented |
Instance Variable | def_list_level |
Undocumented |
Instance Variable | dom_stylesheet |
Undocumented |
Instance Variable | dom_stylesheetcontent |
Undocumented |
Instance Variable | embedded_file_list |
Undocumented |
Instance Variable | field_element |
Undocumented |
Instance Variable | field_name |
Undocumented |
Instance Variable | footer_content |
Undocumented |
Instance Variable | footnote_chars_idx |
Undocumented |
Instance Variable | footnote_level |
Undocumented |
Instance Variable | footnote_list |
Undocumented |
Instance Variable | footnote_ref_dict |
Undocumented |
Instance Variable | format_map |
Undocumented |
Instance Variable | found_doc_title |
Undocumented |
Instance Variable | header_content |
Undocumented |
Instance Variable | image_count |
Undocumented |
Instance Variable | image_dict |
Undocumented |
Instance Variable | image_style_count |
Undocumented |
Instance Variable | in_citation |
Undocumented |
Instance Variable | in_footer |
Undocumented |
Instance Variable | in_header |
Undocumented |
Instance Variable | in_paragraph |
Undocumented |
Instance Variable | in_table_of_contents |
Undocumented |
Instance Variable | in_thead |
Undocumented |
Instance Variable | inline_style_count_stack |
Undocumented |
Instance Variable | language |
Undocumented |
Instance Variable | language_code |
Undocumented |
Instance Variable | line_block_level |
Undocumented |
Instance Variable | line_indent_level |
Undocumented |
Instance Variable | list_level |
Undocumented |
Instance Variable | list_style_stack |
Undocumented |
Instance Variable | meta_dict |
Undocumented |
Instance Variable | optiontablestyles_generated |
Undocumented |
Instance Variable | paragraph_style_stack |
Undocumented |
Instance Variable | pending_ids |
Undocumented |
Instance Variable | save_current_element |
Undocumented |
Instance Variable | save_footnote_current |
Undocumented |
Instance Variable | section_count |
Undocumented |
Instance Variable | section_level |
Undocumented |
Instance Variable | settings |
Undocumented |
Instance Variable | str_stylesheet |
Undocumented |
Instance Variable | str_stylesheetcontent |
Undocumented |
Instance Variable | style_index |
Undocumented |
Instance Variable | syntaxhighlight_lexer |
Undocumented |
Instance Variable | syntaxhighlighting |
Undocumented |
Instance Variable | table_count |
Undocumented |
Instance Variable | table_of_content_index_body |
Undocumented |
Instance Variable | table_styles |
Undocumented |
Instance Variable | table_width |
Undocumented |
Instance Variable | title |
Undocumented |
Instance Variable | trace_level |
Undocumented |
Method | _add_syntax_highlighting |
Undocumented |
Method | _calculate_code_block_padding |
Undocumented |
Inherited from NodeVisitor
(via GenericNodeVisitor
):
Method | dispatch_departure |
Call self."depart_ + node class name" with node as parameter. If the depart_... method does not exist, call self.unknown_departure. |
Method | unknown_departure |
Called before exiting unknown Node types. |
Method | unknown_visit |
Called when entering unknown Node types. |
Class Variable | optional |
Tuple containing node class names (as strings). |
Instance Variable | document |
Undocumented |
Attach the default page style.
Create an automatic-style that refers to the current style of this element and that refers to the default page style.
Convert various units to centimeters.