Class: IsoDoc::HtmlConvert

Inherits:
Convert show all
Includes:
IsoDoc::HtmlFunction::Comments, IsoDoc::HtmlFunction::Footnotes, IsoDoc::HtmlFunction::Form, IsoDoc::HtmlFunction::Html
Defined in:
lib/isodoc/html_convert.rb

Constant Summary

Constants included from IsoDoc::HtmlFunction::Html

IsoDoc::HtmlFunction::Html::MATHJAX, IsoDoc::HtmlFunction::Html::MATHJAX_ADDR

Constants included from IsoDoc::HtmlFunction::Comments

IsoDoc::HtmlFunction::Comments::COMMENT_IN_COMMENT_LIST, IsoDoc::HtmlFunction::Comments::COMMENT_TARGET_XREFS

Constants included from Function::Utils

Function::Utils::CLAUSE_ANCESTOR, Function::Utils::DOCTYPE_HDR, Function::Utils::NOKOHEAD, Function::Utils::NOTE_CONTAINER_ANCESTOR

Constants included from Function::Table

Function::Table::SW

Constants included from Function::Section

Function::Section::TERM_CLAUSE

Constants included from Function::Lists

Function::Lists::OL_STYLE

Constants included from Function::Cleanup

Function::Cleanup::FIGURE_WITH_FOOTNOTES

Constants included from Function::Blocks

Function::Blocks::EXAMPLE_TBL_ATTR, Function::Blocks::EXAMPLE_TD_ATTR

Instance Attribute Summary

Attributes inherited from Convert

#i18n, #meta, #options, #xrefs

Instance Method Summary collapse

Methods included from IsoDoc::HtmlFunction::Html

#authority_cleanup, #authority_cleanup1, #convert1, #datauri, #footnote_backlinks, #footnote_backlinks1, #footnote_format, #googlefonts, #html5, #html_button, #html_cleanup, #html_cover, #html_footnote_filter, #html_head, #html_intro, #html_list_clean, #html_main, #html_preface, #html_toc, #html_toc_entry, #htmlstyle, #htmlstylesheet, #image_parse, #image_suffix, #inject_script, #make_body1, #make_body2, #make_body3, #mathjax, #mathml, #move_image1, #move_images, #postprocess, #remove_placeholder_paras, #script_cdata, #sourcecode_highlighter, #sourcecode_parse, #sourcecodelang, #table_long_strings_cleanup, #term_header, #toHTML, #toclevel, #toclevel_classes, #underline_parse, #update_footnote_filter

Methods included from IsoDoc::HtmlFunction::Form

#form_parse, #input_parse, #label_parse, #option_parse, #select_parse, #textarea_parse

Methods included from IsoDoc::HtmlFunction::Footnotes

#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, #table_footnote_parse

Methods included from IsoDoc::HtmlFunction::Comments

#comment_attributes, #comment_cleanup, #comment_link_attrs, #comments, #embed_comment_in_comment_list, #get_comments_from_text, #in_comment, #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

#bibitem_lookup, #convert1, #convert_init, #convert_scss, #default_file_locations, #default_fonts, #fonts_options, #generate_css, #html_doc_path, #i18n_init, #l10n, #localpath, #metadata_init, #middle_clause, #populate_css, #precompiled_style_or_original, #scss_fontheader, #target_pdf, #xref_init

Methods included from ClassUtils

#case_strict, #case_with_markup, #date_range, #liquid, #ns

Methods included from Function::Utils

#attr_code, #cleanup_entities, #date_range, #emf?, #empty2nil, #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, #populate_template, #save_dataimage, #sentence_join, #to_xhtml, #to_xhtml_fragment, #to_xhtml_prep

Methods included from Function::ToWordHtml

#body_attr, #boilerplate, #define_head, #in_sourcecode, #info, #init_dir, #init_file, #make_body, #make_body1, #make_body2, #make_body3, #middle, #note?, #parse, #rel_tmpimagedir, #set_termdomain, #tmpimagedir

Methods included from Function::Terms

#admitted_term_parse, #definition_parse, #deprecated_term_parse, #modification_parse, #para_then_remainder, #term_parse, #termdef_parse, #termdocsource_parse, #termnote_delim, #termnote_parse, #termref_parse

Methods included from Function::Table

#colgroup, #make_tr_attr, #table_attrs, #table_parse, #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, #copyright_parse, #feedback_parse, #foreword, #inline_header_title, #introduction, #is_clause?, #legal_parse, #license_parse, #preface, #preface_block, #scope, #symbols_abbrevs, #symbols_parse, #terms_defs, #terms_parse, #variant_title

Methods included from Function::References

#bibitem_ref_code, #biblio_list, #bibliography, #bibliography_parse, #bibliography_xpath, #bracket_if_num, #date_note_process, #docid_l10n, #docid_prefix, #implicit_reference, #is_standard, #iso_bibitem_entry_attrs, #iso_title, #nonstd_bibitem, #norm_ref, #norm_ref_xpath, #omit_docid_prefix, #pref_ref_code, #prefix_bracketed_ref, #ref_entry_code, #reference_format, #render_identifier, #std_bibitem_entry

Methods included from Function::Lists

#dl_attrs, #dl_parse, #dt_dd?, #dt_parse, #li_parse, #ol_attrs, #ol_depth, #ol_parse, #ol_style, #ul_attrs, #ul_parse

Methods included from Function::Inline

#add_parse, #bookmark_parse, #br_parse, #callout_parse, #del_parse, #em_parse, #eref_parse, #eref_target, #error_parse, #hr_parse, #image_parse, #image_title_parse, #index_parse, #index_xref_parse, #keyword_parse, #link_parse, #no_locality_parse, #origin_parse, #page_break, #pagebreak_parse, #section_break, #smallcap_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, #break_up_long_strings, #break_up_long_strings1, #cleanup, #example_cleanup, #figure_aside_process, #figure_cleanup, #figure_get_or_make_dl, #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_long_strings_cleanup, #table_note_cleanup, #textcleanup

Methods included from Function::Blocks

#admonition_attrs, #admonition_class, #admonition_name, #admonition_name_parse, #admonition_parse, #annotation_parse, #example_div_attr, #example_div_parse, #example_label, #example_parse, #example_table_attr, #example_table_parse, #figure_attrs, #figure_key, #figure_name_parse, #figure_parse, #figure_parse1, #formula_attrs, #formula_parse, #formula_parse1, #formula_where, #keep_style, #middle_admonitions, #middle_title, #note_attrs, #note_delim, #note_p_parse, #note_parse, #note_parse1, #para_attrs, #para_class, #para_parse, #passthrough_parse, #permission_parse, #pre_parse, #pseudocode_attrs, #pseudocode_parse, #quote_attribution, #quote_parse, #recommendation_attr_keyvalue, #recommendation_attr_parse, #recommendation_attributes, #recommendation_attributes1, #recommendation_labels, #recommendation_name, #recommendation_parse, #reqt_attrs, #reqt_component_attrs, #reqt_metadata_node, #requirement_component_parse, #requirement_parse, #requirement_skip_parse, #sourcecode_attrs, #sourcecode_name_parse, #sourcecode_parse, #svg_parse, #toc_parse

Constructor Details

#initialize(options) ⇒ HtmlConvert

Returns a new instance of HtmlConvert.



19
20
21
22
23
# File 'lib/isodoc/html_convert.rb', line 19

def initialize(options)
  @format = :html
  @suffix = "html"
  super
end

Instance Method Details

#convert(filename, file = nil, debug = false, output_filename = nil) ⇒ Object



25
26
27
28
29
30
# File 'lib/isodoc/html_convert.rb', line 25

def convert(filename, file = nil, debug = false, output_filename = nil)
  ret = super
  Dir.exists?(tmpimagedir) and Dir["#{tmpimagedir}/*"].empty? and
    FileUtils.rm_r tmpimagedir
  ret
end

#tmpimagedir_suffixObject



15
16
17
# File 'lib/isodoc/html_convert.rb', line 15

def tmpimagedir_suffix
  "_htmlimages"
end