Class: Asciidoctor::Standoc::Converter

Inherits:
Object
  • Object
show all
Includes:
Converter, Base, Blocks, Cleanup, Front, I18n, Inline, Lists, Section, Table, Utils, Validate, Writer
Defined in:
lib/asciidoctor/standoc/converter.rb

Overview

A Converter implementation that generates Standoc output, and a document schema encapsulation of the document for validation

Constant Summary

Constants included from Validate

Validate::SOURCELOCALITY

Constants included from Cleanup

Asciidoctor::Standoc::Cleanup::ELEMS_ALLOW_NOTES, Asciidoctor::Standoc::Cleanup::ISO_PUBLISHER_XPATH, Asciidoctor::Standoc::Cleanup::LOCALITY_RE, Asciidoctor::Standoc::Cleanup::LOCALITY_REGEX_STR, Asciidoctor::Standoc::Cleanup::NORM_REF, Asciidoctor::Standoc::Cleanup::TERM_CLAUSE, Asciidoctor::Standoc::Cleanup::TEXT_ELEMS

Constants included from Utils

Utils::NOKOHEAD, Utils::SUBCLAUSE_XPATH

Constants included from Section

Section::SYMBOLS_TITLES

Constants included from Lists

Lists::ISO_REF, Lists::ISO_REF_ALL_PARTS, Lists::ISO_REF_NO_YEAR, Lists::MALFORMED_REF, Lists::NON_ISO_REF

Constants included from Base

Base::TERM_REFERENCE_RE, Base::TERM_REFERENCE_RE_STR

Instance Method Summary collapse

Methods included from Validate

#asset_style, #asset_title_style, #content_validate, #formattedstr_strip, #iev_validate, #init_iev, #schema_validate, #section_validate, #sourcecode_style, #style_warning, #validate

Methods included from Cleanup

#add_to_hash, #align_callouts_to_annotations, #bibabstract_location, #biblio_cleanup, #biblio_renumber, #biblio_reorder, #biblio_reorder1, #boilerplate_cleanup, #bookmark_cleanup, #bpart_cleanup, #callout_cleanup, #cleanup, #dd_bib_extract, #dl_bib_extract, #dl_table_cleanup, #docid_prefix, #docidentifier_cleanup, #element_name_cleanup, #empty_element_cleanup, #empty_text_before_first_element, #external_terms_boilerplate, #extract_from_p, #extract_localities, #figure_cleanup, #figure_dl_cleanup, #figure_footnote_cleanup, #footnote_cleanup, #footnote_content, #format_ref, #formula_cleanup, #header_rows_cleanup, #inject_id, #insert_thead, #internal_external_terms_boilerplate, #link_callouts_to_annotations, #link_unwrap, #make_abstract, #make_bibliography, #make_preface, #mathml_cleanup, #maxlevel, #merge_annotations_into_sourcecode, #norm_ref_preface, #normref_cleanup, #note_cleanup, #notes_table_cleanup, #obligations_cleanup, #obligations_cleanup_info, #obligations_cleanup_inherit, #obligations_cleanup_norm, #omit_docid_prefix, #origin_cleanup, #other_footnote_renumber, #other_footnote_renumber1, #p_unwrap, #para_cleanup, #quotesource_cleanup, #ref_cleanup, #ref_dl_cleanup, #reference_names, #requirement_cleanup, #requirement_cleanup1, #script_cleanup, #sections_cleanup, #sections_level_cleanup, #sections_order_cleanup, #smartquotes_cleanup, #sort_biblio, #strip_initial_space, #subfigure_cleanup, #table_cleanup, #table_footnote_renumber, #table_footnote_renumber1, #term_children_cleanup, #term_defs_boilerplate, #term_defs_boilerplate_cont, #termdef_boilerplate_cleanup, #termdef_cleanup, #termdef_stem_cleanup, #termdef_subclause_cleanup, #termdef_unnest_cleanup, #termdefinition_cleanup, #termdocsource_cleanup, #termdomain_cleanup, #textcleanup, #tq, #xref_cleanup, #xref_to_eref

Methods included from I18n

#i18n_init, #load_yaml

Methods included from Utils

anchor_or_uuid, asciidoc_sub, #attr_code, #convert, current_location, #datauri2mime, #datauri2mime1, #document_ns_attributes, emend_biblio, flatten_rawtext, flatten_rawtext_lines, localdir, #noko, reqt_subpart, set_nested_value, smart_render_xml, smartformat, warning, #wrap_in_para

Methods included from Table

#table, #table_attrs

Methods included from Section

#abstract_parse, #annex_parse, #bibliography_parse, #clause_parse, #in_biblio?, #in_norm_ref?, #in_terms?, #introduction_parse, #nonterm_symbols_parse, #nonterm_term_def_subclause_parse, #norm_ref_parse, #preamble, #section, #section_attributes, #sectiontype, #set_obligation, #symbols_parse, #term_def_parse, #term_def_subclause_parse, #term_def_title

Methods included from Blocks

#admonition, #admonition_attrs, #example, #example_attrs, #example_proper, #figure_attrs, #figure_title, #formula_attr, #id_attr, #id_unnum_attr, #image, #listing, #listing_attrs, #literal, #literal_attrs, #note, #open, #para_attrs, #paragraph, #pass, #pseudocode_example, #quote, #quote_attribution, #quote_attrs, #req_classif_parse, #reqt_attributes, #requirement, #requirement_classification, #requirement_subpart, #sidebar, #sidebar_attrs, #stem, #term_example, #termnote, #todo, #todo_attrs

Methods included from Inline

#datauri, #image_attributes, #inline_anchor, #inline_anchor_bibref, #inline_anchor_link, #inline_anchor_ref, #inline_anchor_xref, #inline_break, #inline_callout, #inline_footnote, #inline_image, #inline_indexterm, #inline_quoted, #page_break, #refid?, #stem_parse, #thematic_break, #xml_encode

Methods included from Lists

#colist, #conditional_date, #dd, #dl_attr, #dlist, #docid, #dt, #fetch_ref, #global_ievcache_name, #id_and_year, #iso_publisher, #isorefmatches, #isorefmatches2, #isorefmatches3, #li, #local_ievcache_name, #norm_year, #ol_attr, #olist, #olist_style, #plaintxt, #ref_attributes, #ref_normalise, #ref_normalise_no_format, #reference, #reference1, #reference1_matches, #refitem, #refitem_render, #set_date_range, #ul_attr, #ulist, #use_my_anchor

Methods included from Front

#committee_component, #datetypes, #metadata, #metadata_author, #metadata_committee, #metadata_copyright, #metadata_date, #metadata_date1, #metadata_doctype, #metadata_ext, #metadata_getrelation, #metadata_ics, #metadata_id, #metadata_keywords, #metadata_language, #metadata_note, #metadata_publisher, #metadata_relations, #metadata_script, #metadata_series, #metadata_source, #metadata_status, #metadata_version, #organization, #person_affiliation, #person_name, #personal_author, #personal_author1, #relation_normalise, #relaton_relations, #title, #title_english, #title_otherlangs

Methods included from Base

#add_term_source, #content, #default_fonts, #doc_converter, #doc_extract_attributes, #doctype, #document, #draft?, #extract_termsource_refs, #front, #html_converter, #html_extract_attributes, #init, #init_bib_caches, #init_iev_caches, #makexml, #makexml1, #middle, #skip, #term_source_attr, #termsource

Constructor Details

#initialize(backend, opts) ⇒ Converter

Returns a new instance of Converter.



42
43
44
45
46
47
# File 'lib/asciidoctor/standoc/converter.rb', line 42

def initialize(backend, opts)
  super
  basebackend "html"
  outfilesuffix ".xml"
  @libdir = File.dirname(__FILE__)
end

Instance Method Details

#html_doc_path(file) ⇒ Object

path to isodoc assets in child gems



50
51
52
# File 'lib/asciidoctor/standoc/converter.rb', line 50

def html_doc_path(file)
  File.join(@libdir, File.join("../../isodoc/html", file))
end