Class: IsoDoc::WordConvert
- Includes:
- IsoDoc::WordFunction::Body, IsoDoc::WordFunction::Comments, IsoDoc::WordFunction::Footnotes, IsoDoc::WordFunction::Postprocess
- Defined in:
- lib/isodoc/word_convert.rb
Constant Summary
Constants included from IsoDoc::WordFunction::Postprocess
IsoDoc::WordFunction::Postprocess::WORD_NOKOHEAD, IsoDoc::WordFunction::Postprocess::WORD_TOC_SUFFIX1
Constants included from IsoDoc::WordFunction::Body
IsoDoc::WordFunction::Body::MAIN_ELEMENTS, IsoDoc::WordFunction::Body::SW1, IsoDoc::WordFunction::Body::WORD_DT_ATTRS, IsoDoc::WordFunction::Body::WORD_EMBED_DL_ATTRS
Constants included from IsoDoc::WordFunction::Comments
IsoDoc::WordFunction::Comments::COMMENT_IN_COMMENT_LIST1, IsoDoc::WordFunction::Comments::COMMENT_TARGET_XREFS1
Constants inherited from Convert
Constants included from Function::Utils
Function::Utils::CLAUSE_ANCESTOR, Function::Utils::DOCTYPE_HDR, Function::Utils::HUGESTRICT, Function::Utils::LABELLED_ANCESTOR_ELEMENTS, Function::Utils::NOTE_CONTAINER_ANCESTOR
Constants included from Function::ToWordHtml
Function::ToWordHtml::TOP_ELEMENTS
Constants included from Function::Table
Constants included from Function::Section
Function::Section::TERM_CLAUSE
Constants included from Function::Lists
Constants included from Function::Inline
Constants included from Function::Cleanup
Function::Cleanup::TABLENOTE_CSS
Constants included from Function::Blocks
Function::Blocks::EXAMPLE_TBL_ATTR, Function::Blocks::EXAMPLE_TD_ATTR
Instance Attribute Summary
Attributes inherited from Convert
#bibrender, #doctype, #i18n, #meta, #options, #reqt_models, #requirements_processor, #tempfile_cache, #wordcoverpage, #wordintropage, #xrefs
Instance Method Summary collapse
- #convert(filename, file = nil, debug = false, output_filename = nil) ⇒ Object
-
#initialize(options) ⇒ WordConvert
constructor
A new instance of WordConvert.
Methods included from IsoDoc::WordFunction::Postprocess
#assemble_toc, #authority_cleanup, #authority_cleanup1, #colgroup_widths, #coverpage_note_cleanup, #figure_toc_class, #figure_toc_xpath, #generate_header, #header_params, #insert_toc, #list_add, #make_WordToC, #make_figure_word_toc, #make_recommendation_word_toc, #make_table_word_toc, #postprocess, #postprocess_cleanup, #recommmendation_sort_key, #recommmendation_sort_key1, #remove_toc_div, #reqt_toc_class, #reqt_toc_xpath, #sourcecode_style, #split_at_section_break, #style_update, #table_note_cleanup, #table_toc_class, #table_toc_xpath, #toWord, #to_sourcecode_para, #to_word_xhtml_fragment, #toc_word_class_list, #word_admonition_images, #word_annex_cleanup, #word_cleanup, #word_colgroup, #word_cover, #word_example_cleanup, #word_floating_titles, #word_footnote_format, #word_image_caption, #word_intro, #word_list_continuations, #word_nested_tables, #word_preface, #word_pseudocode_cleanup, #word_remove_empty_sections, #word_remove_empty_toc, #word_remove_pb_before_annex, #word_section_breaks, #word_section_breaks1, #word_sourcecode_annotations, #word_sourcecode_table, #word_tab_clean, #word_table_align, #word_table_pagebreak, #word_table_separator, #word_toc_entry, #word_toc_figure_preface1, #word_toc_preface, #word_toc_reqt_preface1, #word_toc_table_preface1, #wordstylesheet_update
Methods included from IsoDoc::WordFunction::Body
#body_attr, #colgroup, #convert1_namespaces, #ddef_first_para, #ddef_other_paras, #define_head, #dl_parse, #dl_parse_nontable, #dl_parse_nontable1, #dl_parse_table, #dl_parse_table1, #dl_parse_table_notes, #dt_parse, #emf_attributes, #example_table_attr, #figure_aside_process, #figure_get_or_make_dl, #formula_parse1, #image_parse, #imgsrc, #info, #insert_tab, #keep_rows_together, #li_parse, #make_body1, #make_body2, #make_body3, #make_tr_attr, #make_tr_attr_style, #new_fullcolspan_row, #note_p_parse, #note_parse1, #page_break, #pagebreak_parse, #para_attrs, #para_class, #para_parse, #remove_bottom_border, #rt_parse, #ruby_parse, #section_break, #suffix_url, #table_attrs, #table_line_count, #table_of_contents, #table_parse, #table_parse_core, #tbody_parse, #termnote_parse, #xref_parse
Methods included from IsoDoc::WordFunction::Footnotes
#bookmarkid, #footnote_parse, #footnotes, #get_table_ancestor_id, #make_footnote, #make_generic_footnote_text, #make_table_footnote_link, #make_table_footnote_target, #make_table_footnote_text, #seen_footnote_parse, #table_footnote_parse
Methods included from IsoDoc::WordFunction::Comments
#comment_attributes, #comment_cleanup, #comment_link_attrs, #comments, #embed_comment_in_comment_list, #get_comments_from_text, #insert_comment_cont, #make_comment_link, #make_comment_target, #make_comment_text, #move_comment_link_to_from, #move_comment_link_to_from1, #reorder_comments_by_comment_link, #review_note_parse, #skip_comment_wrap, #wrap_comment_cont
Methods inherited from Convert
#agency?, #bibrenderer, #convert1, #convert1_namespaces, #convert_i18n_init, #convert_i18n_init1, #convert_init, #convert_scss, #default_file_locations, #default_fonts, #docid_l10n, #docid_prefix, #extract_preprocess_xslt, #fonts_options, #generate_css, #html_doc_path, #i18n_init, #init_arrangement, #init_covers, #init_fonts, #init_i18n, #init_locations, #init_processing, #init_rendering, #init_stylesheets, #init_toc, #l10n, #localpath, #metadata_init, #middle_clause, #omit_docid_prefix, #options_preprocess, #populate_css, #precompiled_style_or_original, #preprocess_xslt, #scss_fontheader, #swap_renderer, #target_pdf, #tmpfilesdir_suffix, #tmpimagedir_suffix, #toc_init, #xref_init
Methods included from ClassUtils
#case_strict, #case_strict1, #case_with_markup, #date_range, #liquid, #nearest_block_parent, #ns, #start_of_sentence, #to_xml
Methods included from Function::Utils
#attr_code, #cleanup_entities, #date_range, #emf?, #empty2nil, #eps?, #external_path, #extract_delims, #from_xhtml, #get_clause_id, #get_note_container_id, #header_strip, #header_strip_elem?, #image_localfile, #insert_tab, #labelled_ancestor, #liquid, #noko, #ns, #numeric_escapes, #populate_template, #save_dataimage, #save_svg, #sentence_join, #start_of_sentence, #to_xhtml, #to_xhtml_fragment, #to_xhtml_prep, #to_xml
Methods included from Function::ToWordHtml
#body_attr, #boilerplate, #content, #cross_align, #define_head, #info, #init_dir, #init_file, #make_body, #make_body1, #make_body2, #make_body3, #note?, #parse, #rel_tmpimagedir, #tmpimagedir, #top_element_render
Methods included from Function::Terms
#admitted_term_parse, #definition_parse, #deprecated_term_parse, #modification_parse, #para_then_remainder, #term_parse, #termdef_parse, #termdocsource_parse, #termdomain_parse, #termnote_parse, #termref_parse
Methods included from Function::Table
#colgroup, #make_tr_attr, #make_tr_attr_style, #table_attrs, #table_parse, #table_parse_core, #table_parse_tail, #table_title_parse, #tbody_parse, #tcaption, #tfoot_parse, #thead_parse, #tr_parse
Methods included from Function::Section
#abstract, #acknowledgements, #annex, #annex_attrs, #annex_name, #clause, #clause_attrs, #clause_name, #clause_parse, #clause_parse_subtitle, #clause_parse_title, #clause_parse_title1, #clause_title_depth, #clausedelim, #clausedelimspace, #colophon, #copyright_parse, #executivesummary, #feedback_parse, #foreword, #freestanding_title, #indexsect, #inline_header_title, #introduction, #is_clause?, #legal_parse, #license_parse, #preface, #preface_attrs, #preface_block, #preface_normal, #scope, #single_term_clause?, #symbols_abbrevs, #symbols_parse, #table_of_contents, #terms_defs, #terms_parse, #variant_title
Methods included from Function::References
#bibitem_entry, #biblio_list, #bibliography, #bibliography_parse, #bibliography_xpath, #iso_bibitem_entry_attrs, #norm_ref, #norm_ref_xpath, #reference_format
Methods included from Function::Lists
#dl_attrs, #dl_parse, #dl_parse1, #dl_parse_notes, #dt_dd?, #dt_parse, #li_parse, #list_title_parse, #ol_attrs, #ol_depth, #ol_parse, #ol_style, #ul_attrs, #ul_parse
Methods included from Function::Inline
#add_parse, #asciimath_parse, #author_parse, #bookmark_parse, #br_parse, #callout_parse, #del_parse, #em_parse, #eref_parse, #error_parse, #hr_parse, #image_body_parse, #image_parse, #image_title_parse, #index_parse, #index_xref_parse, #keyword_parse, #latexmath_parse, #link_parse, #location_parse, #mathml_parse, #no_locality_parse, #origin_parse, #page_break, #pagebreak_parse, #rb_parse, #rt_parse, #ruby_parse, #section_break, #smallcap_parse, #span_parse, #stem_parse, #strike_parse, #strong_parse, #sub_parse, #suffix_url, #sup_parse, #termrefelem_parse, #text_parse, #tt_parse, #underline_parse, #xref_parse
Methods included from Function::Form
#form_parse, #input_parse, #label_parse, #option_parse, #select_parse, #text_input, #textarea_parse
Methods included from Function::Cleanup
#admonition_cleanup, #cleanup, #example_cleanup, #figure_cleanup, #footnote_cleanup, #footnote_reference_format, #inline_header_cleanup, #merge_fnref_into_fn_text, #new_fullcolspan_row, #passthrough_cleanup, #remove_bottom_border, #symbols_cleanup, #table_cleanup, #table_footnote_cleanup, #table_footnote_cleanup_propagate, #table_footnote_reference_format, #table_get_or_make_tfoot, #table_note_cleanup, #textcleanup
Methods included from Function::Blocks
#admonition_attrs, #admonition_class, #admonition_name, #admonition_name_in_first_para, #admonition_name_para_delim, #admonition_name_parse, #admonition_p_parse, #admonition_parse, #admonition_parse1, #annotation_parse, #attribution_parse, #columnbreak_parse, #cross_align_parse, #div_parse, #example_div_attr, #example_div_parse, #example_label, #example_parse, #example_table_attr, #example_table_parse, #figure_attrs, #figure_name_parse, #figure_parse, #figure_parse1, #formula_attrs, #formula_parse, #formula_parse1, #keep_style, #note_attrs, #note_p_parse, #note_parse, #note_parse1, #para_attrs, #para_class, #para_parse, #passthrough_parse, #permission_parse, #pre_parse, #pseudocode_attrs, #pseudocode_parse, #quote_parse, #recommendation_name, #recommendation_parse, #recommendation_parse1, #reqt_attrs, #requirement_parse, #source_parse, #sourcecode_attrs, #sourcecode_name_parse, #sourcecode_parse, #sourcecode_parse1, #svg_parse, #toc_parse
Constructor Details
#initialize(options) ⇒ WordConvert
Returns a new instance of WordConvert.
13 14 15 16 17 |
# File 'lib/isodoc/word_convert.rb', line 13 def initialize() @format = :doc @suffix = "doc" super end |
Instance Method Details
#convert(filename, file = nil, debug = false, output_filename = nil) ⇒ Object
19 20 21 22 23 |
# File 'lib/isodoc/word_convert.rb', line 19 def convert(filename, file = nil, debug = false, output_filename = nil) ret = super FileUtils.rm_rf tmpimagedir ret end |