metanorma-cli 1.3.3.1 → 1.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +62 -69
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/Gemfile +4 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/LICENSE.txt +26 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/README.md +179 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/Rakefile +6 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/bin/console +11 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/bin/rspec +29 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/bin/setup +7 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/fontist.gemspec +32 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist.rb +48 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/errors.rb +10 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/font.rb +78 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/font_formula.rb +123 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/formula.rb +90 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/formulas.rb +15 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/formulas/andale_font.rb +79 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/formulas/arial_black_font.rb +78 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/formulas/cleartype_fonts.rb +226 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/formulas/comic_font.rb +77 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/formulas/courier_font.rb +80 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/formulas/euphemia_font.rb +85 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/formulas/georgia_font.rb +79 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/formulas/impact_font.rb +77 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/formulas/montserrat_font.rb +132 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/formulas/ms_truetype_fonts.rb +124 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/formulas/open_sans_fonts.rb +263 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/formulas/overpass_font.rb +73 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/formulas/source_fonts.rb +109 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/formulas/stix_fonts.rb +108 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/formulas/tahoma_font.rb +146 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/formulas/webding_font.rb +77 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/registry.rb +42 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/system.yml +17 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/system_font.rb +72 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/utils.rb +9 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/utils/downloader.rb +74 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/utils/dsl.rb +77 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/utils/exe_extractor.rb +72 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/utils/zip_extractor.rb +38 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/version.rb +3 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/fixtures/fonts/DejaVuSerif.ttf +0 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/fontist/font_formula_spec.rb +67 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/fontist/font_spec.rb +87 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/fontist/formula_spec.rb +67 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/fontist/formulas/andale_font_spec.rb +29 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/fontist/formulas/arial_black_font_spec.rb +29 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/fontist/formulas/cleartype_fonts_spec.rb +38 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/fontist/formulas/comic_font_spec.rb +29 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/fontist/formulas/courier_font_spec.rb +29 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/fontist/formulas/euphemia_font_spec.rb +29 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/fontist/formulas/georgia_font_spec.rb +29 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/fontist/formulas/impact_font_spec.rb +29 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/fontist/formulas/montserrat_font_spec.rb +29 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/fontist/formulas/ms_truetype_fonts_spec.rb +29 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/fontist/formulas/open_sans_fonts_spec.rb +29 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/fontist/formulas/overpass_font_spec.rb +29 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/fontist/formulas/source_fonts_spec.rb +31 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/fontist/formulas/stix_fonts_spec.rb +29 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/fontist/formulas/tahoma_font_spec.rb +29 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/fontist/formulas/webding_font_spec.rb +29 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/fontist/registry_spec.rb +47 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/fontist/system_font_spec.rb +44 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/fontist/utils/downloader_spec.rb +35 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/fontist_spec.rb +5 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/spec_helper.rb +22 -0
- data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/support/fontist_helper.rb +10 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/CODE_OF_CONDUCT.md +46 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/Gemfile +11 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/LICENSE +25 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/Rakefile +8 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/bin/rspec +18 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/isodoc.gemspec +51 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc-yaml/i18n-en.yaml +98 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc-yaml/i18n-fr.yaml +91 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc-yaml/i18n-zh-Hans.yaml +92 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc.rb +30 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/base_style/all.css +207 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/base_style/all.scss +6 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/base_style/bands.scss +79 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/base_style/blocks.css +0 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/base_style/blocks.scss +128 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/base_style/coverpage.css +0 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/base_style/coverpage.scss +7 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/base_style/defaults.css +0 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/base_style/defaults.scss +26 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/base_style/metanorma_word.css +34 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/base_style/metanorma_word.scss +30 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/base_style/nav.css +0 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/base_style/nav.scss +180 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/base_style/reset.css +105 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/base_style/reset.scss +129 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/base_style/typography.css +0 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/base_style/typography.scss +67 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/class_utils.rb +30 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/common.rb +29 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/convert.rb +250 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/function.rb +4 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/function/blocks.rb +208 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/function/blocks_example_note.rb +107 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/function/cleanup.rb +218 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/function/inline.rb +155 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/function/inline_simple.rb +72 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/function/lists.rb +94 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/function/references.rb +214 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/function/reqt.rb +115 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/function/section.rb +228 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/function/table.rb +108 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/function/terms.rb +78 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/function/to_word_html.rb +230 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/function/utils.rb +190 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/gem_tasks.rb +133 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/headlesshtml_convert.rb +45 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/html_convert.rb +30 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/html_function.rb +4 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/html_function/comments.rb +144 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/html_function/footnotes.rb +83 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/html_function/html.rb +115 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/html_function/postprocess.rb +243 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/i18n.rb +122 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/metadata.rb +235 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/metadata_date.rb +39 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/pdf_convert.rb +50 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/presentation_function/block.rb +138 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/presentation_function/inline.rb +131 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/presentation_function/section.rb +46 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/presentation_xml_convert.rb +62 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/sassc_importer.rb +11 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/version.rb +3 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/word_convert.rb +45 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/word_function.rb +4 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/word_function/body.rb +214 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/word_function/comments.rb +145 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/word_function/footnotes.rb +105 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/word_function/inline.rb +77 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/word_function/postprocess.rb +247 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/word_function/postprocess_cover.rb +79 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/word_function/table.rb +60 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/xref.rb +61 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/xref/xref_anchor.rb +56 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/xref/xref_counter.rb +74 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/xref/xref_gen.rb +117 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/xref/xref_gen_seq.rb +163 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/xref/xref_sect_gen.rb +151 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/xslfo_convert.rb +46 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/spec/assets/html.scss +6 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/spec/assets/i18n.yaml +16 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/spec/assets/odf.emf +0 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/spec/assets/odf.svg +4 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/spec/assets/odf1.svg +4 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/spec/assets/rice_image1 +0 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/spec/assets/std.css +2 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/spec/assets/word.css +2 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/spec/isodoc/blocks_spec.rb +2643 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/spec/isodoc/cleanup_spec.rb +1188 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/spec/isodoc/footnotes_spec.rb +280 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/spec/isodoc/i18n_spec.rb +1131 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/spec/isodoc/inline_spec.rb +995 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/spec/isodoc/lists_spec.rb +346 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/spec/isodoc/metadata_spec.rb +342 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/spec/isodoc/postproc_spec.rb +1536 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/spec/isodoc/presentation_xml_spec.rb +20 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/spec/isodoc/ref_spec.rb +427 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/spec/isodoc/section_spec.rb +993 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/spec/isodoc/table_spec.rb +454 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/spec/isodoc/terms_spec.rb +268 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/spec/isodoc/xref_spec.rb +2764 -0
- data/gems/ruby/2.6.0/gems/isodoc-1.2.1/spec/spec_helper.rb +74 -0
- data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/CODE_OF_CONDUCT.md +74 -0
- data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/Gemfile +11 -0
- data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/LICENSE +25 -0
- data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/Rakefile +8 -0
- data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/bin/console +14 -0
- data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/bin/rspec +18 -0
- data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/bin/setup +8 -0
- data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/asciidoctor/cc.rb +5 -0
- data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/asciidoctor/cc/basicdoc.rng +1059 -0
- data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/asciidoctor/cc/biblio.rng +1237 -0
- data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/asciidoctor/cc/cc.rng +116 -0
- data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/asciidoctor/cc/converter.rb +72 -0
- data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/asciidoctor/cc/front.rb +93 -0
- data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/asciidoctor/cc/isodoc.rng +1510 -0
- data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/asciidoctor/cc/reqt.rng +194 -0
- data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/asciidoctor/cc/validate.rb +29 -0
- data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/asciidoctor/cc/validate_section.rb +124 -0
- data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/isodoc/cc/base_convert.rb +21 -0
- data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/isodoc/cc/csd.standard.xsl +3371 -0
- data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/isodoc/cc/html/_coverpage.css +307 -0
- data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/isodoc/cc/html/_coverpage.scss +130 -0
- data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/isodoc/cc/html/cc.css +801 -0
- data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/isodoc/cc/html/cc.scss +763 -0
- data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/isodoc/cc/html/htmlstyle.css +1013 -0
- data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/isodoc/cc/html/htmlstyle.scss +409 -0
- data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/isodoc/cc/html/wordstyle.css +1253 -0
- data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/isodoc/cc/html/wordstyle.scss +1156 -0
- data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/isodoc/cc/html_convert.rb +53 -0
- data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/isodoc/cc/i18n-en.yaml +2 -0
- data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/isodoc/cc/i18n.rb +10 -0
- data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/isodoc/cc/init.rb +23 -0
- data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/isodoc/cc/metadata.rb +61 -0
- data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/isodoc/cc/pdf_convert.rb +21 -0
- data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/isodoc/cc/presentation_xml_convert.rb +19 -0
- data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/isodoc/cc/word_convert.rb +40 -0
- data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/isodoc/cc/xref.rb +6 -0
- data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/metanorma-cc.rb +11 -0
- data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/metanorma/cc.rb +29 -0
- data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/metanorma/cc/processor.rb +49 -0
- data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/metanorma/cc/version.rb +5 -0
- data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/metanorma-cc.gemspec +44 -0
- data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/CODE_OF_CONDUCT.md +74 -0
- data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/Gemfile +11 -0
- data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/LICENSE +25 -0
- data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/Rakefile +8 -0
- data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/bin/console +14 -0
- data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/bin/rspec +18 -0
- data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/bin/setup +8 -0
- data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/asciidoctor/csa.rb +5 -0
- data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/asciidoctor/csa/basicdoc.rng +1059 -0
- data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/asciidoctor/csa/biblio.rng +1237 -0
- data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/asciidoctor/csa/converter.rb +139 -0
- data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/asciidoctor/csa/csa.rng +115 -0
- data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/asciidoctor/csa/isodoc.rng +1510 -0
- data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/asciidoctor/csa/reqt.rng +194 -0
- data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/asciidoctor/csa/validate.rb +22 -0
- data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/isodoc/csa/base_convert.rb +23 -0
- data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/isodoc/csa/csa.standard.xsl +3387 -0
- data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/isodoc/csa/html/csa.css +801 -0
- data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/isodoc/csa/html/csa.scss +763 -0
- data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/isodoc/csa/html/htmlstyle.css +1070 -0
- data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/isodoc/csa/html/htmlstyle.scss +806 -0
- data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/isodoc/csa/html/wordstyle.css +1253 -0
- data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/isodoc/csa/html/wordstyle.scss +1157 -0
- data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/isodoc/csa/html_convert.rb +60 -0
- data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/isodoc/csa/i18n-en.yaml +2 -0
- data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/isodoc/csa/i18n.rb +10 -0
- data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/isodoc/csa/init.rb +24 -0
- data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/isodoc/csa/metadata.rb +51 -0
- data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/isodoc/csa/pdf_convert.rb +22 -0
- data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/isodoc/csa/presentation_xml_convert.rb +19 -0
- data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/isodoc/csa/word_convert.rb +42 -0
- data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/isodoc/csa/xref.rb +6 -0
- data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/metanorma-csa.rb +11 -0
- data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/metanorma/csa.rb +7 -0
- data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/metanorma/csa/processor.rb +52 -0
- data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/metanorma/csa/version.rb +7 -0
- data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/metanorma-csa.gemspec +52 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/CODE_OF_CONDUCT.md +74 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/Gemfile +10 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/LICENSE +25 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/Rakefile +23 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/asciidoctor-gb.gemspec.old +47 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/bin/console +14 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/bin/rspec +18 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/bin/setup +8 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/asciidoctor/gb.rb +5 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/asciidoctor/gb/basicdoc.rng +1059 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/asciidoctor/gb/biblio.rng +1237 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/asciidoctor/gb/cleanup.rb +130 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/asciidoctor/gb/converter.rb +146 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/asciidoctor/gb/front.rb +242 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/asciidoctor/gb/front_id.rb +57 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/asciidoctor/gb/gbstandard.rng +300 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/asciidoctor/gb/isodoc.rng +1510 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/asciidoctor/gb/isostandard.rng +533 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/asciidoctor/gb/reqt.rng +194 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/asciidoctor/gb/section_input.rb +42 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/asciidoctor/gb/validate.rb +132 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/base_convert.rb +211 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/cleanup.rb +79 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/common.rb +72 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/gb.recommendation.xsl +3739 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/html/_coverpage.css +193 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/html/_coverpage.scss +249 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/html/gb-logos/gb-issuer-default.svg +980 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/html/gb-logos/gb-standard-db.svg +1 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/html/gb-logos/gb-standard-gb.svg +1 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/html/gb-logos/gb-standard-gjb.svg +1 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/html/gb-logos/gb-standard-gm.svg +1 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/html/gb-logos/gb-standard-jjf.svg +1 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/html/gb-logos/gb-standard-zb.svg +13 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/html/gb.css +657 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/html/gb.scss +617 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/html/htmlcompliantstyle.css +1303 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/html/htmlcompliantstyle.scss +1004 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/html/htmlstyle.css +844 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/html/htmlstyle.scss +414 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/html/wordstyle.css +2932 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/html/wordstyle.scss +2750 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/html_convert.rb +70 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/i18n-en.yaml +11 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/i18n-zh-Hans.yaml +11 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/i18n.rb +16 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/init.rb +29 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/metadata.rb +225 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/pdf_convert.rb +21 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/presentation_xml_convert.rb +26 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/word_convert.rb +126 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/xref.rb +6 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/metanorma-gb.rb +12 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/metanorma/gb.rb +7 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/metanorma/gb/processor.rb +73 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/metanorma/gb/version.rb +5 -0
- data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/metanorma-gb.gemspec +49 -0
- data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/CODE_OF_CONDUCT.md +74 -0
- data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/Gemfile +11 -0
- data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/LICENSE +25 -0
- data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/Rakefile +6 -0
- data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/bin/console +14 -0
- data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/bin/rspec +17 -0
- data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/bin/setup +8 -0
- data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/lib/asciidoctor/generic.rb +7 -0
- data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/lib/asciidoctor/generic/basicdoc.rng +1059 -0
- data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/lib/asciidoctor/generic/biblio.rng +1237 -0
- data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/lib/asciidoctor/generic/converter.rb +219 -0
- data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/lib/asciidoctor/generic/generic.rng +79 -0
- data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/lib/asciidoctor/generic/isodoc.rng +1510 -0
- data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/lib/asciidoctor/generic/reqt.rng +194 -0
- data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/lib/asciidoctor/generic/rsd.rng +225 -0
- data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/lib/isodoc/generic.rb +11 -0
- data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/lib/isodoc/generic/base_convert.rb +43 -0
- data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/lib/isodoc/generic/html/generic.scss +766 -0
- data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/lib/isodoc/generic/html/htmlstyle.scss +710 -0
- data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/lib/isodoc/generic/html/wordstyle.scss +1157 -0
- data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/lib/isodoc/generic/html_convert.rb +65 -0
- data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/lib/isodoc/generic/init.rb +27 -0
- data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/lib/isodoc/generic/metadata.rb +59 -0
- data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/lib/isodoc/generic/pdf_convert.rb +66 -0
- data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/lib/isodoc/generic/presentation_xml_convert.rb +19 -0
- data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/lib/isodoc/generic/word_convert.rb +60 -0
- data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/lib/isodoc/generic/xref.rb +6 -0
- data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/lib/metanorma-generic.rb +8 -0
- data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/lib/metanorma/generic.rb +108 -0
- data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/lib/metanorma/generic/processor.rb +88 -0
- data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/lib/metanorma/generic/version.rb +5 -0
- data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/metanorma-generic.gemspec +44 -0
- data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/metanorma.yml.example +61 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/CODE_OF_CONDUCT.md +74 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/Gemfile +7 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/LICENSE +25 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/Rakefile +8 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/bin/rspec +18 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/asciidoctor/iec/basicdoc.rng +1059 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/asciidoctor/iec/biblio.rng +1237 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/asciidoctor/iec/converter.rb +80 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/asciidoctor/iec/front.rb +220 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/asciidoctor/iec/iec.rng +43 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/asciidoctor/iec/isodoc.rng +1510 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/asciidoctor/iec/isostandard.rng +533 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/asciidoctor/iec/reqt.rng +194 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/isodoc/iec/base_convert.rb +147 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/isodoc/iec/html/htmlstyle.css +962 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/isodoc/iec/html/htmlstyle.scss +703 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/isodoc/iec/html/isodoc.css +845 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/isodoc/iec/html/isodoc.scss +836 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/isodoc/iec/html/wordstyle.css +2013 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/isodoc/iec/html/wordstyle.scss +1854 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/isodoc/iec/html_convert.rb +43 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/isodoc/iec/i18n-en.yaml +18 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/isodoc/iec/i18n-fr.yaml +18 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/isodoc/iec/i18n-zh-Hans.yaml +14 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/isodoc/iec/i18n.rb +19 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/isodoc/iec/iec.international-standard.xsl +4782 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/isodoc/iec/init.rb +29 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/isodoc/iec/metadata.rb +28 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/isodoc/iec/pdf_convert.rb +21 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/isodoc/iec/presentation_xml_convert.rb +35 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/isodoc/iec/word_convert.rb +188 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/isodoc/iec/xref.rb +45 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/metanorma-iec.rb +15 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/metanorma/iec.rb +8 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/metanorma/iec/processor.rb +49 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/metanorma/iec/version.rb +6 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/metanorma-iec.gemspec +45 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/spec/asciidoctor-iec/base_spec.rb +602 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/spec/asciidoctor-iec/blocks_spec.rb +481 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/spec/asciidoctor-iec/cleanup_spec.rb +440 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/spec/asciidoctor-iec/iev_spec.rb +234 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/spec/asciidoctor-iec/inline_spec.rb +164 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/spec/asciidoctor-iec/lists_spec.rb +190 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/spec/asciidoctor-iec/section_spec.rb +369 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/spec/asciidoctor-iec/validate_spec.rb +20 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/spec/assets/html.css +2 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/spec/assets/word.css +2 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/spec/isodoc/blocks_spec.rb +219 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/spec/isodoc/i18n_spec.rb +648 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/spec/isodoc/iev_spec.rb +564 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/spec/isodoc/inline_spec.rb +287 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/spec/isodoc/iso_spec.rb +217 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/spec/isodoc/metadata_spec.rb +242 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/spec/isodoc/postproc_spec.rb +299 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/spec/isodoc/ref_spec.rb +376 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/spec/isodoc/section_spec.rb +541 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/spec/isodoc/terms_spec.rb +193 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/spec/metanorma/processor_spec.rb +76 -0
- data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/spec/spec_helper.rb +296 -0
- data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/CODE_OF_CONDUCT.md +74 -0
- data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/Gemfile +13 -0
- data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/Guardfile +22 -0
- data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/LICENSE +25 -0
- data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/Rakefile +6 -0
- data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/bin/asciidoctor-rfc2 +14 -0
- data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/bin/asciidoctor-rfc2.bat +2 -0
- data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/bin/asciidoctor-rfc3 +14 -0
- data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/bin/console +14 -0
- data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/bin/rspec +17 -0
- data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/bin/setup +8 -0
- data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/docs/installation.md +21 -0
- data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/docs/navigation.md +7 -0
- data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/docs/overview.md +5 -0
- data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/asciidoctor/ietf/basicdoc.rng +1059 -0
- data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/asciidoctor/ietf/biblio.rng +1237 -0
- data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/asciidoctor/ietf/blocks.rb +78 -0
- data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/asciidoctor/ietf/converter.rb +201 -0
- data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/asciidoctor/ietf/front.rb +144 -0
- data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/asciidoctor/ietf/ietf.rng +888 -0
- data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/asciidoctor/ietf/isodoc.rng +1510 -0
- data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/asciidoctor/ietf/reqt.rng +194 -0
- data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/asciidoctor/ietf/validate.rb +84 -0
- data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/isodoc/ietf/blocks.rb +227 -0
- data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/isodoc/ietf/cleanup.rb +230 -0
- data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/isodoc/ietf/footnotes.rb +70 -0
- data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/isodoc/ietf/front.rb +236 -0
- data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/isodoc/ietf/inline.rb +167 -0
- data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/isodoc/ietf/metadata.rb +54 -0
- data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/isodoc/ietf/references.rb +148 -0
- data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/isodoc/ietf/reqt.rb +79 -0
- data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/isodoc/ietf/rfc_convert.rb +82 -0
- data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/isodoc/ietf/section.rb +175 -0
- data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/isodoc/ietf/table.rb +43 -0
- data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/isodoc/ietf/terms.rb +52 -0
- data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/isodoc/ietf/xref.rb +20 -0
- data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/metanorma-ietf.rb +8 -0
- data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/metanorma/ietf.rb +8 -0
- data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/metanorma/ietf/processor.rb +103 -0
- data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/metanorma/ietf/version.rb +5 -0
- data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/metanorma-ietf.gemspec +53 -0
- data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/CODE_OF_CONDUCT.md +74 -0
- data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/Gemfile +11 -0
- data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/LICENSE +25 -0
- data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/Rakefile +8 -0
- data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/bin/console +14 -0
- data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/bin/rspec +18 -0
- data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/bin/setup +8 -0
- data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/asciidoctor/iho.rb +4 -0
- data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/asciidoctor/iho/basicdoc.rng +1059 -0
- data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/asciidoctor/iho/biblio.rng +1237 -0
- data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/asciidoctor/iho/converter.rb +105 -0
- data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/asciidoctor/iho/iho.rng +144 -0
- data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/asciidoctor/iho/isodoc.rng +1510 -0
- data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/asciidoctor/iho/reqt.rng +194 -0
- data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/isodoc/iho/base_convert.rb +20 -0
- data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/isodoc/iho/html/htmlstyle.css +1007 -0
- data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/isodoc/iho/html/htmlstyle.scss +757 -0
- data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/isodoc/iho/html/iho.css +798 -0
- data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/isodoc/iho/html/iho.scss +759 -0
- data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/isodoc/iho/html/logo.svg +555 -0
- data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/isodoc/iho/html/wordstyle.css +1252 -0
- data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/isodoc/iho/html/wordstyle.scss +1155 -0
- data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/isodoc/iho/html_convert.rb +34 -0
- data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/isodoc/iho/iho.specification.xsl +3501 -0
- data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/isodoc/iho/iho.standard.xsl +3501 -0
- data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/isodoc/iho/init.rb +23 -0
- data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/isodoc/iho/metadata.rb +26 -0
- data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/isodoc/iho/pdf_convert.rb +23 -0
- data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/isodoc/iho/presentation_xml_convert.rb +12 -0
- data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/isodoc/iho/word_convert.rb +47 -0
- data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/isodoc/iho/xref.rb +64 -0
- data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/metanorma-iho.rb +13 -0
- data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/metanorma/iho.rb +32 -0
- data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/metanorma/iho/processor.rb +46 -0
- data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/metanorma/iho/version.rb +5 -0
- data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/metanorma-iho.gemspec +44 -0
- data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/metanorma.yml +56 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/CODE_OF_CONDUCT.md +46 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/Gemfile +14 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/LICENSE +25 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/Makefile +39 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/Rakefile +8 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/bin/rspec +18 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/asciidoctor/iso/base.rb +67 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/asciidoctor/iso/basicdoc.rng +1059 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/asciidoctor/iso/biblio.rng +1237 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/asciidoctor/iso/cleanup.rb +129 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/asciidoctor/iso/converter.rb +18 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/asciidoctor/iso/front.rb +138 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/asciidoctor/iso/front_id.rb +196 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/asciidoctor/iso/isodoc.rng +1510 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/asciidoctor/iso/isostandard-amd.rng +98 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/asciidoctor/iso/isostandard.rnc +176 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/asciidoctor/iso/isostandard.rng +533 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/asciidoctor/iso/macros.rb +21 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/asciidoctor/iso/reqt.rng +194 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/asciidoctor/iso/section.rb +46 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/asciidoctor/iso/term_lookup_cleanup.rb +86 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/asciidoctor/iso/validate.rb +194 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/asciidoctor/iso/validate_requirements.rb +105 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/asciidoctor/iso/validate_section.rb +185 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/asciidoctor/iso/validate_style.rb +150 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/asciidoctor/iso/validate_title.rb +99 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/base_convert.rb +156 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/html/htmlstyle.css +47 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/html/htmlstyle.scss +45 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/html/isodoc.css +862 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/html/isodoc.scss +851 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/html/style-human.css +968 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/html/style-human.scss +695 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/html/style-iso.css +996 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/html/style-iso.scss +712 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/html/wordstyle.css +1515 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/html/wordstyle.scss +1393 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/html_convert.rb +55 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/i18n-en.yaml +11 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/i18n-fr.yaml +10 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/i18n-zh-Hans.yaml +8 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/i18n.rb +19 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/init.rb +33 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/iso.amendment.xsl +4638 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/iso.international-standard.xsl +4638 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/metadata.rb +217 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/pdf_convert.rb +26 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/presentation_xml_convert.rb +111 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/sections.rb +61 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/sts_convert.rb +31 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/word_convert.rb +127 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/xref.rb +113 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/metanorma-iso.rb +14 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/metanorma/iso.rb +7 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/metanorma/iso/processor.rb +62 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/metanorma/iso/version.rb +5 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/metanorma-iso.gemspec +50 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/asciidoctor-iso/amd_spec.rb +726 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/asciidoctor-iso/base_spec.rb +593 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/asciidoctor-iso/blocks_spec.rb +482 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/asciidoctor-iso/cleanup_spec.rb +995 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/asciidoctor-iso/inline_spec.rb +164 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/asciidoctor-iso/lists_spec.rb +190 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/asciidoctor-iso/macros_spec.rb +310 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/asciidoctor-iso/refs_spec.rb +286 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/asciidoctor-iso/section_spec.rb +357 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/asciidoctor-iso/table_spec.rb +307 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/asciidoctor-iso/validate_spec.rb +1127 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/assets/html.css +2 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/assets/i18n.yaml +2 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/assets/std.css +2 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/assets/word.css +2 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/examples/english.yaml +69 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/examples/rice.sh +4 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/isodoc/amd_spec.rb +808 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/isodoc/blocks_spec.rb +534 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/isodoc/i18n_spec.rb +954 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/isodoc/inline_spec.rb +331 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/isodoc/iso_spec.rb +384 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/isodoc/metadata_spec.rb +248 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/isodoc/postproc_spec.rb +708 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/isodoc/ref_spec.rb +346 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/isodoc/section_spec.rb +555 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/isodoc/table_spec.rb +426 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/isodoc/terms_spec.rb +202 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/isodoc/xref_spec.rb +1477 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/metanorma/processor_spec.rb +61 -0
- data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/spec_helper.rb +267 -0
- data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/CODE_OF_CONDUCT.md +74 -0
- data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/Gemfile +11 -0
- data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/LICENSE +25 -0
- data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/Rakefile +8 -0
- data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/bin/console +14 -0
- data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/bin/rspec +18 -0
- data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/bin/setup +8 -0
- data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/asciidoctor/itu.rb +7 -0
- data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/asciidoctor/itu/basicdoc.rng +1059 -0
- data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/asciidoctor/itu/biblio.rng +1237 -0
- data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/asciidoctor/itu/cleanup.rb +205 -0
- data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/asciidoctor/itu/converter.rb +143 -0
- data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/asciidoctor/itu/front.rb +216 -0
- data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/asciidoctor/itu/isodoc.rng +1510 -0
- data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/asciidoctor/itu/itu.rng +264 -0
- data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/asciidoctor/itu/macros.rb +27 -0
- data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/asciidoctor/itu/reqt.rng +194 -0
- data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/asciidoctor/itu/validate.rb +145 -0
- data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/isodoc/itu.rb +12 -0
- data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/isodoc/itu/base_convert.rb +196 -0
- data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/isodoc/itu/html/International_Telecommunication_Union_Logo.svg +1 -0
- data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/isodoc/itu/html/_coverpage.css +349 -0
- data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/isodoc/itu/html/_coverpage.scss +183 -0
- data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/isodoc/itu/html/htmlstyle.css +1159 -0
- data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/isodoc/itu/html/htmlstyle.scss +601 -0
- data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/isodoc/itu/html/itu.css +1138 -0
- data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/isodoc/itu/html/itu.scss +1097 -0
- data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/isodoc/itu/html/wordstyle.css +1808 -0
- data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/isodoc/itu/html/wordstyle.scss +1679 -0
- data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/isodoc/itu/html_convert.rb +73 -0
- data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/isodoc/itu/i18n-en.yaml +41 -0
- data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/isodoc/itu/i18n.rb +14 -0
- data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/isodoc/itu/init.rb +29 -0
- data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/isodoc/itu/itu.recommendation-annex.xsl +3798 -0
- data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/isodoc/itu/itu.recommendation.xsl +3798 -0
- data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/isodoc/itu/itu.resolution.xsl +3798 -0
- data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/isodoc/itu/metadata.rb +96 -0
- data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/isodoc/itu/pdf_convert.rb +25 -0
- data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/isodoc/itu/presentation_xml_convert.rb +55 -0
- data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/isodoc/itu/ref.rb +130 -0
- data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/isodoc/itu/terms.rb +64 -0
- data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/isodoc/itu/word_convert.rb +238 -0
- data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/isodoc/itu/xref.rb +175 -0
- data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/metanorma-itu.rb +8 -0
- data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/metanorma/itu.rb +9 -0
- data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/metanorma/itu/processor.rb +53 -0
- data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/metanorma/itu/version.rb +5 -0
- data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/metanorma-itu.gemspec +44 -0
- data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/CODE_OF_CONDUCT.md +74 -0
- data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/Gemfile +11 -0
- data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/LICENSE +25 -0
- data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/Rakefile +8 -0
- data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/bin/console +14 -0
- data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/bin/rspec +18 -0
- data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/bin/setup +8 -0
- data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/asciidoctor/m3aawg.rb +5 -0
- data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/asciidoctor/m3aawg/basicdoc.rng +1059 -0
- data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/asciidoctor/m3aawg/biblio.rng +1237 -0
- data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/asciidoctor/m3aawg/converter.rb +142 -0
- data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/asciidoctor/m3aawg/isodoc.rng +1510 -0
- data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/asciidoctor/m3aawg/m3d.rng +109 -0
- data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/asciidoctor/m3aawg/reqt.rng +194 -0
- data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/asciidoctor/m3aawg/validate.rb +22 -0
- data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/isodoc/m3aawg/base_convert.rb +22 -0
- data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/isodoc/m3aawg/html/htmlstyle.css +1030 -0
- data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/isodoc/m3aawg/html/htmlstyle.scss +733 -0
- data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/isodoc/m3aawg/html/m3d.css +758 -0
- data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/isodoc/m3aawg/html/m3d.scss +742 -0
- data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/isodoc/m3aawg/html/wordstyle.css +1278 -0
- data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/isodoc/m3aawg/html/wordstyle.scss +1174 -0
- data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/isodoc/m3aawg/html_convert.rb +65 -0
- data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/isodoc/m3aawg/i18n-en.yaml +1 -0
- data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/isodoc/m3aawg/i18n.rb +10 -0
- data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/isodoc/m3aawg/init.rb +27 -0
- data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/isodoc/m3aawg/m3d.report.xsl +3408 -0
- data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/isodoc/m3aawg/metadata.rb +53 -0
- data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/isodoc/m3aawg/pdf_convert.rb +22 -0
- data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/isodoc/m3aawg/presentation_xml_convert.rb +19 -0
- data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/isodoc/m3aawg/word_convert.rb +63 -0
- data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/isodoc/m3aawg/xref.rb +6 -0
- data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/metanorma-m3aawg.rb +12 -0
- data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/metanorma/m3aawg.rb +7 -0
- data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/metanorma/m3aawg/processor.rb +50 -0
- data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/metanorma/m3aawg/version.rb +5 -0
- data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/metanorma-m3d.gemspec +47 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/CODE_OF_CONDUCT.md +74 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/Gemfile +11 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/LICENSE +25 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/Rakefile +8 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/bin/console +14 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/bin/rspec +18 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/bin/setup +8 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/asciidoctor/nist.rb +5 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/asciidoctor/nist/basicdoc.rng +1059 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/asciidoctor/nist/biblio.rng +1237 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/asciidoctor/nist/boilerplate.rb +107 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/asciidoctor/nist/cleanup.rb +206 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/asciidoctor/nist/converter.rb +218 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/asciidoctor/nist/front.rb +259 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/asciidoctor/nist/front_id.rb +124 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/asciidoctor/nist/isodoc.rng +1510 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/asciidoctor/nist/nist.rng +186 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/asciidoctor/nist/reqt.rng +194 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/asciidoctor/nist/validate.rb +95 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/base_convert.rb +185 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/common.xsl +1246 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/html/_coverpage.css +243 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/html/_coverpage.scss +328 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/html/htmlstyle.css +955 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/html/htmlstyle.scss +463 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/html/nist.css +1055 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/html/nist.scss +1010 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/html/nist_cswp.css +996 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/html/nist_cswp.scss +955 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/html/wordstyle.css +1440 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/html/wordstyle.scss +1348 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/html/wordstyle_cswp.css +1119 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/html/wordstyle_cswp.scss +1026 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/html_convert.rb +137 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/i18n-en.yaml +13 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/i18n.rb +10 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/init.rb +37 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/metadata.rb +236 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/metadata_id.rb +125 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/nist.cswp.xsl +3645 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/nist.sp.xsl +4726 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/pdf_convert.rb +22 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/presentation_xml_convert.rb +80 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/refs.rb +89 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/render.rb +255 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/render_contributors.rb +80 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/render_dates.rb +42 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/section.rb +58 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/word_convert.rb +173 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/word_convert_toc.rb +86 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/xref.rb +61 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/metanorma-nist.rb +14 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/metanorma/nist.rb +7 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/metanorma/nist/processor.rb +48 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/metanorma/nist/version.rb +5 -0
- data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/metanorma-nist.gemspec +47 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/CODE_OF_CONDUCT.md +74 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/Gemfile +11 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/LICENSE +25 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/README.adoc.old +187 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/Rakefile +8 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/bin/console +14 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/bin/rspec +17 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/bin/setup +8 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/asciidoctor/ogc.rb +7 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/asciidoctor/ogc/basicdoc.rng +1059 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/asciidoctor/ogc/biblio.rng +1237 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/asciidoctor/ogc/converter.rb +134 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/asciidoctor/ogc/front.rb +195 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/asciidoctor/ogc/isodoc.rng +1510 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/asciidoctor/ogc/ogc.rng +124 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/asciidoctor/ogc/reqt.rng +194 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/asciidoctor/ogc/validate.rb +108 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc.rb +12 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/base_convert.rb +79 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/biblio.rb +120 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/html/_coverpage.css +195 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/html/_coverpage.scss +247 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/html/htmlstyle.css +1084 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/html/htmlstyle.scss +599 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/html/ogc.css +835 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/html/ogc.scss +792 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/html/wordstyle.css +1253 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/html/wordstyle.scss +1155 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/html_convert.rb +89 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/i18n-en.yaml +11 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/i18n.rb +10 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/init.rb +32 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/metadata.rb +111 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/ogc.abstract-specification-topic.xsl +3802 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/ogc.best-practice.xsl +3802 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/ogc.change-request-supporting-document.xsl +3802 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/ogc.community-practice.xsl +3802 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/ogc.community-standard.xsl +3802 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/ogc.discussion-paper.xsl +3802 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/ogc.engineering-report.xsl +3802 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/ogc.other.xsl +3802 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/ogc.policy.xsl +3802 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/ogc.reference-model.xsl +3802 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/ogc.release-notes.xsl +3802 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/ogc.standard.xsl +3802 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/ogc.test-suite.xsl +3802 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/ogc.user-guide.xsl +3802 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/ogc.white-paper.xsl +3554 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/pdf_convert.rb +24 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/presentation_xml_convert.rb +137 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/reqt.rb +168 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/sections.rb +66 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/word_convert.rb +189 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/xref.rb +156 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/metanorma-ogc.rb +8 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/metanorma/ogc.rb +12 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/metanorma/ogc/processor.rb +49 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/metanorma/ogc/version.rb +5 -0
- data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/metanorma-ogc.gemspec +41 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/CODE_OF_CONDUCT.md +46 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/Gemfile +11 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/LICENSE +25 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/Makefile +39 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/Rakefile +8 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/bin/rspec +18 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/base.rb +242 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/basicdoc.rng +1059 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/biblio.rng +1237 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/blocks.rb +191 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/blocks_notes.rb +89 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/cleanup.rb +177 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/cleanup_block.rb +183 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/cleanup_boilerplate.rb +100 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/cleanup_footnotes.rb +87 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/cleanup_inline.rb +134 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/cleanup_ref.rb +247 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/cleanup_section.rb +221 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/cleanup_terms.rb +144 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/converter.rb +86 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/datamodel/attributes_table_preprocessor.rb +57 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/datamodel/diagram_preprocessor.rb +102 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/datamodel/plantuml_renderer.rb +408 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/front.rb +210 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/front_contributor.rb +99 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/inline.rb +233 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/isodoc.rng +1510 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/lists.rb +115 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/log.rb +50 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/macros.rb +179 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/macros_plantuml.rb +100 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/macros_yaml2text.rb +165 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/ref.rb +257 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/ref_sect.rb +124 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/reqt.rb +73 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/reqt.rng +194 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/section.rb +244 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/table.rb +70 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/utils.rb +194 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/validate.rb +97 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/validate_section.rb +51 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/views/datamodel/model_representation.adoc.erb +30 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/views/datamodel/plantuml_representation.adoc.erb +20 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/metanorma-standoc.rb +10 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/metanorma/standoc.rb +11 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/metanorma/standoc/latexml_requirement.rb +62 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/metanorma/standoc/processor.rb +38 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/metanorma/standoc/requirement.rb +13 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/metanorma/standoc/version.rb +5 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/metanorma-standoc.gemspec +56 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/asciidoctor-standoc/base_spec.rb +519 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/asciidoctor-standoc/blocks_spec.rb +1271 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/asciidoctor-standoc/cleanup_spec.rb +3224 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/asciidoctor-standoc/datamodel/attributes_table_preprocessor_spec.rb +111 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/asciidoctor-standoc/datamodel/diagram_preprocessor_spec.rb +72 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/asciidoctor-standoc/inline_spec.rb +308 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/asciidoctor-standoc/isobib_cache_spec.rb +705 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/asciidoctor-standoc/lists_spec.rb +205 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/asciidoctor-standoc/macros_spec.rb +538 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/asciidoctor-standoc/macros_yaml2text_spec.rb +565 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/asciidoctor-standoc/refs_dl_spec.rb +850 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/asciidoctor-standoc/refs_spec.rb +1648 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/asciidoctor-standoc/section_spec.rb +983 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/asciidoctor-standoc/table_spec.rb +307 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/asciidoctor-standoc/validate_spec.rb +328 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/assets/codes.yml +695 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/assets/html.scss +13 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/assets/i18n.yaml +17 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/assets/iso123.rxl +107 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/assets/std.css +2 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/assets/word.scss +13 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/examples/datamodel/models/models/AddressClassProfile.yml +90 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/examples/datamodel/models/models/AddressComponentProfile.yml +63 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/examples/datamodel/models/models/AddressComponentSpecification.yml +15 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/examples/datamodel/models/models/AddressProfile.yml +36 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/examples/datamodel/models/models/AttributeProfile.yml +32 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/examples/datamodel/models/models/InterchangeAddressClassProfile.yml +79 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/examples/datamodel/models/models/Localization copy.yml +23 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/examples/datamodel/models/models/Localization.yml +23 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/examples/datamodel/models/models/ProfileCompliantAddress.yml +36 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/examples/datamodel/models/models/ProfileCompliantAddressComponent.yml +15 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/examples/datamodel/models/models/Signature.yml +20 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/examples/datamodel/models/models/SignatureBlankDefinition.yml +20 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/examples/datamodel/models/models/TextDirectionCode copy.yml +16 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/examples/datamodel/models/models/TextDirectionCode.yml +16 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/examples/datamodel/models/models/Validity.yml +14 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/examples/datamodel/models/models/iso19160-1/Address.yml +22 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/examples/datamodel/models/models/iso19160-1/AddressComponent.yml +2 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/examples/datamodel/models/style.uml.inc +37 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/examples/datamodel/models/views/CommonModels.yml +9 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/examples/datamodel/models/views/TopDown.yml +62 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/examples/english.yaml +69 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/examples/rice.sh +4 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/metanorma/processor_spec.rb +92 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/spec_helper.rb +249 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/vcr_cassettes/dated_iso_ref_joint_iso_iec.yml +719 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/vcr_cassettes/isobib_get_123.yml +182 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/vcr_cassettes/isobib_get_123_1.yml +361 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/vcr_cassettes/isobib_get_123_2001.yml +182 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/vcr_cassettes/isobib_get_124.yml +182 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/vcr_cassettes/rfcbib_get_rfc8341.yml +109 -0
- data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/vcr_cassettes/separates_iev_citations_by_top_level_clause.yml +436 -0
- data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/CODE_OF_CONDUCT.md +74 -0
- data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/Gemfile +11 -0
- data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/LICENSE +25 -0
- data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/Rakefile +8 -0
- data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/bin/console +14 -0
- data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/bin/rspec +17 -0
- data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/bin/setup +8 -0
- data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/asciidoctor/un.rb +7 -0
- data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/asciidoctor/un/basicdoc.rng +1059 -0
- data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/asciidoctor/un/biblio.rng +1237 -0
- data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/asciidoctor/un/converter.rb +253 -0
- data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/asciidoctor/un/isodoc.rng +1510 -0
- data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/asciidoctor/un/reqt.rng +194 -0
- data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/asciidoctor/un/un.rng +356 -0
- data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/asciidoctor/un/validate.rb +23 -0
- data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/isodoc/un.rb +11 -0
- data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/isodoc/un/base_convert.rb +35 -0
- data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/isodoc/un/html/htmlstyle.css +1096 -0
- data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/isodoc/un/html/htmlstyle.scss +881 -0
- data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/isodoc/un/html/unece.css +818 -0
- data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/isodoc/un/html/unece.scss +801 -0
- data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/isodoc/un/html/wordstyle.css +1237 -0
- data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/isodoc/un/html/wordstyle.scss +1140 -0
- data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/isodoc/un/html_convert.rb +112 -0
- data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/isodoc/un/i18n-en.yaml +2 -0
- data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/isodoc/un/i18n.rb +11 -0
- data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/isodoc/un/init.rb +29 -0
- data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/isodoc/un/metadata.rb +102 -0
- data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/isodoc/un/pdf_convert.rb +28 -0
- data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/isodoc/un/presentation_xml_convert.rb +53 -0
- data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/isodoc/un/un.plenary-attachment.xsl +3618 -0
- data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/isodoc/un/un.plenary.xsl +3618 -0
- data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/isodoc/un/un.recommendation.xsl +3605 -0
- data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/isodoc/un/word_convert.rb +174 -0
- data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/isodoc/un/xref.rb +185 -0
- data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/metanorma-un.rb +8 -0
- data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/metanorma/un.rb +12 -0
- data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/metanorma/un/UN_emblem_blue.svg +193 -0
- data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/metanorma/un/input.rb +18 -0
- data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/metanorma/un/processor.rb +49 -0
- data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/metanorma/un/version.rb +5 -0
- data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/metanorma-unece.gemspec +46 -0
- data/gems/ruby/2.6.0/gems/relaton-cli-1.2.1/CHANGELOG.md +6 -0
- data/gems/ruby/2.6.0/gems/relaton-cli-1.2.1/Gemfile +8 -0
- data/gems/ruby/2.6.0/gems/relaton-cli-1.2.1/LICENSE +25 -0
- data/gems/ruby/2.6.0/gems/relaton-cli-1.2.1/Rakefile +6 -0
- data/gems/ruby/2.6.0/gems/relaton-cli-1.2.1/bin/console +11 -0
- data/gems/ruby/2.6.0/gems/relaton-cli-1.2.1/bin/rspec +29 -0
- data/gems/ruby/2.6.0/gems/relaton-cli-1.2.1/bin/setup +8 -0
- data/gems/ruby/2.6.0/gems/relaton-cli-1.2.1/exe/relaton +21 -0
- data/gems/ruby/2.6.0/gems/relaton-cli-1.2.1/i18n.yaml +1 -0
- data/gems/ruby/2.6.0/gems/relaton-cli-1.2.1/lib/relaton-cli.rb +10 -0
- data/gems/ruby/2.6.0/gems/relaton-cli-1.2.1/lib/relaton/bibcollection.rb +120 -0
- data/gems/ruby/2.6.0/gems/relaton-cli-1.2.1/lib/relaton/bibdata.rb +90 -0
- data/gems/ruby/2.6.0/gems/relaton-cli-1.2.1/lib/relaton/cli.rb +55 -0
- data/gems/ruby/2.6.0/gems/relaton-cli-1.2.1/lib/relaton/cli/base_convertor.rb +141 -0
- data/gems/ruby/2.6.0/gems/relaton-cli-1.2.1/lib/relaton/cli/command.rb +115 -0
- data/gems/ruby/2.6.0/gems/relaton-cli-1.2.1/lib/relaton/cli/relaton_file.rb +276 -0
- data/gems/ruby/2.6.0/gems/relaton-cli-1.2.1/lib/relaton/cli/version.rb +5 -0
- data/gems/ruby/2.6.0/gems/relaton-cli-1.2.1/lib/relaton/cli/xml_convertor.rb +47 -0
- data/gems/ruby/2.6.0/gems/relaton-cli-1.2.1/lib/relaton/cli/xml_to_html_renderer.rb +116 -0
- data/gems/ruby/2.6.0/gems/relaton-cli-1.2.1/lib/relaton/cli/yaml_convertor.rb +99 -0
- data/gems/ruby/2.6.0/gems/relaton-cli-1.2.1/lib/relaton/element_finder.rb +25 -0
- data/gems/ruby/2.6.0/gems/relaton-cli-1.2.1/relaton-cli.gemspec +40 -0
- data/gems/ruby/2.6.0/gems/relaton-cli-1.2.1/templates/_document.liquid +92 -0
- data/gems/ruby/2.6.0/gems/relaton-cli-1.2.1/templates/_index.liquid +53 -0
- data/gems/ruby/2.6.0/gems/relaton-cli-1.2.1/templates/index-style.css +1017 -0
- data/gems/ruby/2.6.0/specifications/fontist-1.2.0.gemspec +51 -0
- data/gems/ruby/2.6.0/specifications/isodoc-1.2.1.gemspec +87 -0
- data/gems/ruby/2.6.0/specifications/metanorma-cc-1.5.0.gemspec +67 -0
- data/gems/ruby/2.6.0/specifications/metanorma-csa-1.6.0.gemspec +85 -0
- data/gems/ruby/2.6.0/specifications/metanorma-gb-1.5.1.gemspec +79 -0
- data/gems/ruby/2.6.0/specifications/metanorma-generic-1.6.0.gemspec +73 -0
- data/gems/ruby/2.6.0/specifications/metanorma-iec-1.2.1.gemspec +72 -0
- data/gems/ruby/2.6.0/specifications/metanorma-ietf-2.2.0.gemspec +73 -0
- data/gems/ruby/2.6.0/specifications/metanorma-iho-0.2.0.gemspec +73 -0
- data/gems/ruby/2.6.0/specifications/metanorma-iso-1.5.1.gemspec +81 -0
- data/gems/ruby/2.6.0/specifications/metanorma-itu-1.2.0.gemspec +79 -0
- data/gems/ruby/2.6.0/specifications/metanorma-m3aawg-1.5.0.gemspec +73 -0
- data/gems/ruby/2.6.0/specifications/metanorma-nist-1.2.0.gemspec +82 -0
- data/gems/ruby/2.6.0/specifications/metanorma-ogc-1.2.0.gemspec +70 -0
- data/gems/ruby/2.6.0/specifications/metanorma-standoc-1.5.0.gemspec +99 -0
- data/gems/ruby/2.6.0/specifications/metanorma-un-0.5.0.gemspec +76 -0
- data/gems/ruby/2.6.0/specifications/relaton-cli-1.2.1.gemspec +73 -0
- data/lib/metanorma/cli/version.rb +1 -1
- data/metanorma-cli.gemspec +18 -18
- metadata +981 -34
@@ -0,0 +1,3224 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
require "relaton_iec"
|
3
|
+
require "fileutils"
|
4
|
+
|
5
|
+
RSpec.describe Asciidoctor::Standoc do
|
6
|
+
it "applies smartquotes by default" do
|
7
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
8
|
+
#{ASCIIDOC_BLANK_HDR}
|
9
|
+
== "Quotation" A's
|
10
|
+
INPUT
|
11
|
+
#{BLANK_HDR}
|
12
|
+
<sections>
|
13
|
+
<clause id="_" inline-header="false" obligation="normative">
|
14
|
+
<title>“Quotation” A’s</title>
|
15
|
+
</clause>
|
16
|
+
</sections>
|
17
|
+
</standard-document>
|
18
|
+
OUTPUT
|
19
|
+
end
|
20
|
+
|
21
|
+
it "applies smartquotes when requested" do
|
22
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
23
|
+
= Document title
|
24
|
+
Author
|
25
|
+
:docfile: test.adoc
|
26
|
+
:nodoc:
|
27
|
+
:novalid:
|
28
|
+
:no-isobib:
|
29
|
+
:smartquotes: true
|
30
|
+
|
31
|
+
== "Quotation" A's
|
32
|
+
INPUT
|
33
|
+
#{BLANK_HDR}
|
34
|
+
<sections>
|
35
|
+
<clause id="_" inline-header="false" obligation="normative">
|
36
|
+
<title>“Quotation” A’s</title>
|
37
|
+
</clause>
|
38
|
+
</sections>
|
39
|
+
</standard-document>
|
40
|
+
OUTPUT
|
41
|
+
end
|
42
|
+
|
43
|
+
it "does not apply smartquotes when requested not to" do
|
44
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
45
|
+
= Document title
|
46
|
+
Author
|
47
|
+
:docfile: test.adoc
|
48
|
+
:nodoc:
|
49
|
+
:novalid:
|
50
|
+
:no-isobib:
|
51
|
+
:smartquotes: false
|
52
|
+
|
53
|
+
== "Quotation" A's
|
54
|
+
|
55
|
+
`"quote" A's`
|
56
|
+
INPUT
|
57
|
+
#{BLANK_HDR}
|
58
|
+
<sections>
|
59
|
+
<clause id="_" inline-header="false" obligation="normative">
|
60
|
+
<title>"Quotation" A's</title>
|
61
|
+
<p id="_">
|
62
|
+
<tt>"quote" A's</tt>
|
63
|
+
</p>
|
64
|
+
</clause>
|
65
|
+
</sections>
|
66
|
+
</standard-document>
|
67
|
+
OUTPUT
|
68
|
+
end
|
69
|
+
|
70
|
+
it "does not apply smartquotes to sourcecode, tt, pre, pseudocode" do
|
71
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
72
|
+
= Document title
|
73
|
+
Author
|
74
|
+
:docfile: test.adoc
|
75
|
+
:nodoc:
|
76
|
+
:novalid:
|
77
|
+
:no-isobib:
|
78
|
+
:smartquotes: true
|
79
|
+
|
80
|
+
== "Quotation" A's
|
81
|
+
|
82
|
+
"Quotation" A's
|
83
|
+
|
84
|
+
`"quote" A's`
|
85
|
+
|
86
|
+
[source]
|
87
|
+
----
|
88
|
+
"quote" A's
|
89
|
+
----
|
90
|
+
|
91
|
+
[pseudocode]
|
92
|
+
====
|
93
|
+
"quote" A's
|
94
|
+
====
|
95
|
+
|
96
|
+
INPUT
|
97
|
+
#{BLANK_HDR}
|
98
|
+
<sections>
|
99
|
+
<clause id="_" inline-header="false" obligation="normative"><title>“Quotation” A’s</title><p id="_">“Quotation” A’s</p>
|
100
|
+
<p id="_">
|
101
|
+
<tt>"quote" A’s</tt>
|
102
|
+
</p>
|
103
|
+
<sourcecode id="_">"quote" A's</sourcecode>
|
104
|
+
<figure id='_' class='pseudocode'>
|
105
|
+
<p id='_'>"quote" A's</p>
|
106
|
+
</figure>
|
107
|
+
</clause>
|
108
|
+
</sections>
|
109
|
+
</standard-document>
|
110
|
+
OUTPUT
|
111
|
+
end
|
112
|
+
|
113
|
+
it "handles < > & in Asciidoctor correctly" do
|
114
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
115
|
+
#{ASCIIDOC_BLANK_HDR}
|
116
|
+
== {blank}
|
117
|
+
|
118
|
+
<&>
|
119
|
+
INPUT
|
120
|
+
#{BLANK_HDR}
|
121
|
+
<sections>
|
122
|
+
<clause id="_" inline-header="false" obligation="normative">
|
123
|
+
<p id="_"><&></p>
|
124
|
+
</clause>
|
125
|
+
</sections>
|
126
|
+
</standard-document>
|
127
|
+
OUTPUT
|
128
|
+
end
|
129
|
+
|
130
|
+
it "removes empty text elements" do
|
131
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
132
|
+
#{ASCIIDOC_BLANK_HDR}
|
133
|
+
== {blank}
|
134
|
+
INPUT
|
135
|
+
#{BLANK_HDR}
|
136
|
+
<sections>
|
137
|
+
<clause id="_" inline-header="false" obligation="normative">
|
138
|
+
|
139
|
+
</clause>
|
140
|
+
</sections>
|
141
|
+
</standard-document>
|
142
|
+
OUTPUT
|
143
|
+
end
|
144
|
+
|
145
|
+
it "processes stem-only terms as admitted" do
|
146
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
147
|
+
#{ASCIIDOC_BLANK_HDR}
|
148
|
+
== Terms and Definitions
|
149
|
+
|
150
|
+
=== stem:[t_90]
|
151
|
+
|
152
|
+
stem:[t_91]
|
153
|
+
|
154
|
+
Time
|
155
|
+
INPUT
|
156
|
+
#{BLANK_HDR}
|
157
|
+
<sections>
|
158
|
+
<terms id="_" obligation="normative">
|
159
|
+
<title>Terms and definitions</title>
|
160
|
+
<p id="_">For the purposes of this document, the following terms and definitions apply.</p>
|
161
|
+
<term id="_"><preferred><stem type="MathML"><math xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>t</mi><mn>90</mn></msub></math></stem></preferred><admitted><stem type="MathML"><math xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>t</mi><mn>91</mn></msub></math></stem></admitted>
|
162
|
+
<definition><p id="_">Time</p></definition></term>
|
163
|
+
</terms>
|
164
|
+
</sections>
|
165
|
+
</standard-document>
|
166
|
+
OUTPUT
|
167
|
+
end
|
168
|
+
|
169
|
+
it "moves term domains out of the term definition paragraph" do
|
170
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
171
|
+
#{ASCIIDOC_BLANK_HDR}
|
172
|
+
== Terms and Definitions
|
173
|
+
|
174
|
+
=== Tempus
|
175
|
+
|
176
|
+
domain:[relativity] Time
|
177
|
+
|
178
|
+
=== Tempus1
|
179
|
+
|
180
|
+
Time2
|
181
|
+
|
182
|
+
domain:[relativity2]
|
183
|
+
INPUT
|
184
|
+
#{BLANK_HDR}
|
185
|
+
<sections>
|
186
|
+
<terms id="_" obligation="normative">
|
187
|
+
<title>Terms and definitions</title>
|
188
|
+
<p id="_">For the purposes of this document, the following terms and definitions apply.</p>
|
189
|
+
<term id="_">
|
190
|
+
<preferred>Tempus</preferred>
|
191
|
+
<domain>relativity</domain><definition><p id="_"> Time</p></definition>
|
192
|
+
</term>
|
193
|
+
<term id='_'>
|
194
|
+
<preferred>Tempus1</preferred>
|
195
|
+
<domain>relativity2</domain>
|
196
|
+
<definition>
|
197
|
+
<p id='_'>Time2</p>
|
198
|
+
<p id='_'> </p>
|
199
|
+
</definition>
|
200
|
+
</term>
|
201
|
+
</terms>
|
202
|
+
</sections>
|
203
|
+
</standard-document>
|
204
|
+
OUTPUT
|
205
|
+
end
|
206
|
+
|
207
|
+
it "permits multiple blocks in term definition paragraph" do
|
208
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
209
|
+
= Document title
|
210
|
+
Author
|
211
|
+
:docfile: test.adoc
|
212
|
+
:nodoc:
|
213
|
+
:novalid:
|
214
|
+
:stem:
|
215
|
+
|
216
|
+
== Terms and Definitions
|
217
|
+
|
218
|
+
=== stem:[t_90]
|
219
|
+
|
220
|
+
[stem]
|
221
|
+
++++
|
222
|
+
t_A
|
223
|
+
++++
|
224
|
+
|
225
|
+
This paragraph is extraneous
|
226
|
+
INPUT
|
227
|
+
#{BLANK_HDR}
|
228
|
+
<sections>
|
229
|
+
<terms id="_" obligation="normative">
|
230
|
+
<title>Terms and definitions</title>
|
231
|
+
<p id="_">For the purposes of this document, the following terms and definitions apply.</p>
|
232
|
+
<term id="_"><preferred><stem type="MathML"><math xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>t</mi><mn>90</mn></msub></math></stem></preferred><definition><formula id="_">
|
233
|
+
<stem type="MathML"><math xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>t</mi><mi>A</mi></msub></math></stem>
|
234
|
+
</formula>
|
235
|
+
<p id="_">This paragraph is extraneous</p></definition>
|
236
|
+
</term>
|
237
|
+
</terms>
|
238
|
+
</sections>
|
239
|
+
</standard-document>
|
240
|
+
OUTPUT
|
241
|
+
end
|
242
|
+
|
243
|
+
it "strips any initial boilerplate from terms and definitions" do
|
244
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
245
|
+
#{ASCIIDOC_BLANK_HDR}
|
246
|
+
== Terms and Definitions
|
247
|
+
|
248
|
+
I am boilerplate
|
249
|
+
|
250
|
+
* So am I
|
251
|
+
|
252
|
+
=== Time
|
253
|
+
|
254
|
+
This paragraph is extraneous
|
255
|
+
INPUT
|
256
|
+
#{BLANK_HDR}
|
257
|
+
<sections>
|
258
|
+
<terms id="_" obligation="normative"><title>Terms and definitions</title>
|
259
|
+
<p id="_">For the purposes of this document, the following terms and definitions apply.</p>
|
260
|
+
|
261
|
+
<term id="_">
|
262
|
+
<preferred>Time</preferred>
|
263
|
+
<definition><p id="_">This paragraph is extraneous</p></definition>
|
264
|
+
</term></terms>
|
265
|
+
</sections>
|
266
|
+
</standard-document>
|
267
|
+
OUTPUT
|
268
|
+
end
|
269
|
+
|
270
|
+
it "moves notes inside preceding blocks, if they are not at clause end, and the blocks are not delimited" do
|
271
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
272
|
+
#{ASCIIDOC_BLANK_HDR}
|
273
|
+
|
274
|
+
[stem]
|
275
|
+
++++
|
276
|
+
r = 1 %
|
277
|
+
r = 1 %
|
278
|
+
++++
|
279
|
+
|
280
|
+
NOTE: That formula does not do much
|
281
|
+
|
282
|
+
Indeed.
|
283
|
+
INPUT
|
284
|
+
#{BLANK_HDR}
|
285
|
+
<sections><formula id="_">
|
286
|
+
<stem type="MathML"><math xmlns="http://www.w3.org/1998/Math/MathML"><mi>r</mi><mo>=</mo><mn>1</mn><mi>%</mi><mi>r</mi><mo>=</mo><mn>1</mn><mi>%</mi></math></stem>
|
287
|
+
<note id="_">
|
288
|
+
<p id="_">That formula does not do much</p>
|
289
|
+
</note></formula>
|
290
|
+
|
291
|
+
<p id="_">Indeed.</p></sections>
|
292
|
+
</standard-document>
|
293
|
+
OUTPUT
|
294
|
+
end
|
295
|
+
|
296
|
+
it "does not move notes inside preceding blocks, if they are marked as keep-separate" do
|
297
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
298
|
+
#{ASCIIDOC_BLANK_HDR}
|
299
|
+
|
300
|
+
[stem]
|
301
|
+
++++
|
302
|
+
r = 1 %
|
303
|
+
r = 1 %
|
304
|
+
++++
|
305
|
+
|
306
|
+
[NOTE,keep-separate=true]
|
307
|
+
====
|
308
|
+
That formula does not do much
|
309
|
+
====
|
310
|
+
|
311
|
+
Indeed.
|
312
|
+
INPUT
|
313
|
+
#{BLANK_HDR}
|
314
|
+
<sections><formula id="_">
|
315
|
+
<stem type="MathML"><math xmlns="http://www.w3.org/1998/Math/MathML"><mi>r</mi><mo>=</mo><mn>1</mn><mi>%</mi><mi>r</mi><mo>=</mo><mn>1</mn><mi>%</mi></math></stem></formula>
|
316
|
+
<note id="_">
|
317
|
+
<p id="_">That formula does not do much</p>
|
318
|
+
</note>
|
319
|
+
|
320
|
+
<p id="_">Indeed.</p></sections>
|
321
|
+
</standard-document>
|
322
|
+
OUTPUT
|
323
|
+
end
|
324
|
+
|
325
|
+
it "does not move notes inside preceding blocks, if they are at clause end" do
|
326
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
327
|
+
#{ASCIIDOC_BLANK_HDR}
|
328
|
+
[source,ruby]
|
329
|
+
[1...x].each do |y|
|
330
|
+
puts y
|
331
|
+
end
|
332
|
+
|
333
|
+
NOTE: That loop does not do much
|
334
|
+
INPUT
|
335
|
+
#{BLANK_HDR}
|
336
|
+
<sections><sourcecode id="_" lang="ruby">[1...x].each do |y|
|
337
|
+
puts y
|
338
|
+
end</sourcecode>
|
339
|
+
<note id="_">
|
340
|
+
<p id="_">That loop does not do much</p>
|
341
|
+
</note></sections>
|
342
|
+
</standard-document>
|
343
|
+
OUTPUT
|
344
|
+
end
|
345
|
+
|
346
|
+
it "converts xrefs to references into erefs" do
|
347
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
348
|
+
#{ASCIIDOC_BLANK_HDR}
|
349
|
+
<<iso216>>
|
350
|
+
|
351
|
+
[bibliography]
|
352
|
+
== Normative References
|
353
|
+
* [[[iso216,ISO 216:2001]]], _Reference_
|
354
|
+
INPUT
|
355
|
+
#{BLANK_HDR}
|
356
|
+
<preface><foreword id="_" obligation="informative">
|
357
|
+
<title>Foreword</title>
|
358
|
+
<p id="_">
|
359
|
+
<eref type="inline" bibitemid="iso216" citeas="ISO 216:2001"/>
|
360
|
+
</p>
|
361
|
+
</foreword></preface><sections>
|
362
|
+
</sections><bibliography><references id="_" obligation="informative" normative="true">
|
363
|
+
<title>Normative references</title>
|
364
|
+
#{NORM_REF_BOILERPLATE}
|
365
|
+
<bibitem id="iso216" type="standard">
|
366
|
+
<title format="text/plain">Reference</title>
|
367
|
+
<docidentifier>ISO 216:2001</docidentifier>
|
368
|
+
<docnumber>216</docnumber>
|
369
|
+
<date type="published">
|
370
|
+
<on>2001</on>
|
371
|
+
</date>
|
372
|
+
<contributor>
|
373
|
+
<role type="publisher"/>
|
374
|
+
<organization>
|
375
|
+
<name>ISO</name>
|
376
|
+
</organization>
|
377
|
+
</contributor>
|
378
|
+
</bibitem>
|
379
|
+
</references>
|
380
|
+
</bibliography>
|
381
|
+
</standard-document>
|
382
|
+
OUTPUT
|
383
|
+
end
|
384
|
+
|
385
|
+
it "extracts localities from erefs" do
|
386
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
387
|
+
#{ASCIIDOC_BLANK_HDR}
|
388
|
+
<<iso216,whole,clause=3,example=9-11,locality:prelude="33 a",locality:entirety:the reference,xyz>>
|
389
|
+
<<iso216,whole,clause=3,example=9-11,locality:prelude=33,locality:entirety="the reference";whole,clause=3,example=9-11,locality:prelude=33,locality:entirety:the reference,xyz>>
|
390
|
+
|
391
|
+
[bibliography]
|
392
|
+
== Normative References
|
393
|
+
* [[[iso216,ISO 216]]], _Reference_
|
394
|
+
INPUT
|
395
|
+
#{BLANK_HDR}
|
396
|
+
<preface><foreword id="_" obligation="informative">
|
397
|
+
<title>Foreword</title>
|
398
|
+
<p id="_">
|
399
|
+
<eref type="inline" bibitemid="iso216" citeas="ISO 216">
|
400
|
+
<localityStack>
|
401
|
+
<locality type="whole"/><locality type="clause"><referenceFrom>3</referenceFrom></locality><locality type="example"><referenceFrom>9</referenceFrom><referenceTo>11</referenceTo></locality><locality type="locality:prelude"><referenceFrom>33 a</referenceFrom></locality><locality type="locality:entirety"/>
|
402
|
+
</localityStack>
|
403
|
+
the reference,xyz</eref>
|
404
|
+
<eref type='inline' bibitemid='iso216' citeas='ISO 216'>
|
405
|
+
<localityStack>
|
406
|
+
<locality type='whole'/>
|
407
|
+
<locality type='clause'>
|
408
|
+
<referenceFrom>3</referenceFrom>
|
409
|
+
</locality>
|
410
|
+
<locality type='example'>
|
411
|
+
<referenceFrom>9</referenceFrom>
|
412
|
+
<referenceTo>11</referenceTo>
|
413
|
+
</locality>
|
414
|
+
<locality type='locality:prelude'>
|
415
|
+
<referenceFrom>33</referenceFrom>
|
416
|
+
</locality>
|
417
|
+
<locality type='locality:entirety'>
|
418
|
+
<referenceFrom>the reference</referenceFrom>
|
419
|
+
</locality>
|
420
|
+
</localityStack>
|
421
|
+
<localityStack>
|
422
|
+
<locality type='whole'/>
|
423
|
+
<locality type='clause'>
|
424
|
+
<referenceFrom>3</referenceFrom>
|
425
|
+
</locality>
|
426
|
+
<locality type='example'>
|
427
|
+
<referenceFrom>9</referenceFrom>
|
428
|
+
<referenceTo>11</referenceTo>
|
429
|
+
</locality>
|
430
|
+
<locality type='locality:prelude'>
|
431
|
+
<referenceFrom>33</referenceFrom>
|
432
|
+
</locality>
|
433
|
+
<locality type='locality:entirety'/>
|
434
|
+
</localityStack>
|
435
|
+
the reference,xyz
|
436
|
+
</eref>
|
437
|
+
|
438
|
+
</p>
|
439
|
+
</foreword></preface><sections>
|
440
|
+
</sections><bibliography><references id="_" obligation="informative" normative="true">
|
441
|
+
<title>Normative references</title>
|
442
|
+
#{NORM_REF_BOILERPLATE}
|
443
|
+
<bibitem id="iso216" type="standard">
|
444
|
+
<title format="text/plain">Reference</title>
|
445
|
+
<docidentifier>ISO 216</docidentifier>
|
446
|
+
<docnumber>216</docnumber>
|
447
|
+
<contributor>
|
448
|
+
<role type="publisher"/>
|
449
|
+
<organization>
|
450
|
+
<name>ISO</name>
|
451
|
+
</organization>
|
452
|
+
</contributor>
|
453
|
+
</bibitem>
|
454
|
+
</references>
|
455
|
+
</bibliography>
|
456
|
+
</standard-document>
|
457
|
+
OUTPUT
|
458
|
+
end
|
459
|
+
|
460
|
+
|
461
|
+
it "strips type from xrefs" do
|
462
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
463
|
+
#{ASCIIDOC_BLANK_HDR}
|
464
|
+
<<iso216>>
|
465
|
+
|
466
|
+
[bibliography]
|
467
|
+
== Clause
|
468
|
+
* [[[iso216,ISO 216]]], _Reference_
|
469
|
+
INPUT
|
470
|
+
#{BLANK_HDR}
|
471
|
+
<preface>
|
472
|
+
<foreword id="_" obligation="informative">
|
473
|
+
<title>Foreword</title>
|
474
|
+
<p id="_">
|
475
|
+
<eref type="inline" bibitemid="iso216" citeas="ISO 216"/>
|
476
|
+
</p>
|
477
|
+
</foreword></preface><sections>
|
478
|
+
</sections><bibliography><references id="_" obligation="informative" normative="false">
|
479
|
+
<title>Bibliography</title>
|
480
|
+
<bibitem id="iso216" type="standard">
|
481
|
+
<title format="text/plain">Reference</title>
|
482
|
+
<docidentifier>ISO 216</docidentifier>
|
483
|
+
<docnumber>216</docnumber>
|
484
|
+
<contributor>
|
485
|
+
<role type="publisher"/>
|
486
|
+
<organization>
|
487
|
+
<name>ISO</name>
|
488
|
+
</organization>
|
489
|
+
</contributor>
|
490
|
+
</bibitem>
|
491
|
+
</references></bibliography>
|
492
|
+
</standard-document>
|
493
|
+
OUTPUT
|
494
|
+
end
|
495
|
+
|
496
|
+
it "processes localities in term sources" do
|
497
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
498
|
+
#{ASCIIDOC_BLANK_HDR}
|
499
|
+
== Terms and Definitions
|
500
|
+
|
501
|
+
=== Term1
|
502
|
+
|
503
|
+
[.source]
|
504
|
+
<<ISO2191,section=1>>
|
505
|
+
INPUT
|
506
|
+
#{BLANK_HDR}
|
507
|
+
<sections>
|
508
|
+
<terms id="_" obligation="normative">
|
509
|
+
<title>Terms and definitions</title>
|
510
|
+
<p id="_">For the purposes of this document, the following terms and definitions apply.</p>
|
511
|
+
<term id="_">
|
512
|
+
<preferred>Term1</preferred>
|
513
|
+
<termsource status="identical">
|
514
|
+
<origin bibitemid="ISO2191" type="inline" citeas="">
|
515
|
+
<localityStack>
|
516
|
+
<locality type="section"><referenceFrom>1</referenceFrom></locality>
|
517
|
+
</localityStack>
|
518
|
+
</origin>
|
519
|
+
</termsource>
|
520
|
+
</term>
|
521
|
+
</terms>
|
522
|
+
</sections>
|
523
|
+
</standard-document>
|
524
|
+
OUTPUT
|
525
|
+
end
|
526
|
+
|
527
|
+
it "removes initial extraneous material from Normative References" do
|
528
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
529
|
+
#{ASCIIDOC_BLANK_HDR}
|
530
|
+
[bibliography]
|
531
|
+
== Normative References
|
532
|
+
|
533
|
+
This is extraneous information
|
534
|
+
|
535
|
+
* [[[iso216,ISO 216]]], _Reference_
|
536
|
+
|
537
|
+
This is also extraneous information
|
538
|
+
INPUT
|
539
|
+
#{BLANK_HDR}
|
540
|
+
<sections></sections>
|
541
|
+
<bibliography><references id="_" obligation="informative" normative="true"><title>Normative references</title>
|
542
|
+
#{NORM_REF_BOILERPLATE}
|
543
|
+
<bibitem id="iso216" type="standard">
|
544
|
+
<title format="text/plain">Reference</title>
|
545
|
+
<docidentifier>ISO 216</docidentifier>
|
546
|
+
<docnumber>216</docnumber>
|
547
|
+
<contributor>
|
548
|
+
<role type="publisher"/>
|
549
|
+
<organization>
|
550
|
+
<name>ISO</name>
|
551
|
+
</organization>
|
552
|
+
</contributor>
|
553
|
+
</bibitem>
|
554
|
+
<p id='_'>This is also extraneous information</p>
|
555
|
+
</references>
|
556
|
+
</bibliography>
|
557
|
+
</standard-document>
|
558
|
+
OUTPUT
|
559
|
+
end
|
560
|
+
|
561
|
+
it "sorts references with their notes in Bibliography" do
|
562
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
563
|
+
#{ASCIIDOC_BLANK_HDR}
|
564
|
+
[bibliography]
|
565
|
+
== Bibliography
|
566
|
+
|
567
|
+
This is extraneous information
|
568
|
+
|
569
|
+
* [[[iso216,ISO 216]]], _Reference_
|
570
|
+
|
571
|
+
NOTE: ABC
|
572
|
+
|
573
|
+
NOTE: DEF
|
574
|
+
|
575
|
+
This is further extraneous information
|
576
|
+
|
577
|
+
NOTE: GHI
|
578
|
+
|
579
|
+
* [[[iso216,ISO 215]]], _Reference_
|
580
|
+
|
581
|
+
NOTE: JKL
|
582
|
+
|
583
|
+
This is also extraneous information
|
584
|
+
INPUT
|
585
|
+
#{BLANK_HDR}
|
586
|
+
<sections> </sections>
|
587
|
+
<bibliography>
|
588
|
+
<references id='_' obligation='informative' normative="false">
|
589
|
+
<title>Bibliography</title>
|
590
|
+
<p id='_'>This is extraneous information</p>
|
591
|
+
<bibitem id='iso216' type='standard'>
|
592
|
+
<title format='text/plain'>Reference</title>
|
593
|
+
<docidentifier>ISO 216</docidentifier>
|
594
|
+
<docnumber>216</docnumber>
|
595
|
+
<contributor>
|
596
|
+
<role type='publisher'/>
|
597
|
+
<organization>
|
598
|
+
<name>ISO</name>
|
599
|
+
</organization>
|
600
|
+
</contributor>
|
601
|
+
</bibitem>
|
602
|
+
<note id='_'>
|
603
|
+
<p id='_'>ABC</p>
|
604
|
+
</note>
|
605
|
+
<note id='_'>
|
606
|
+
<p id='_'>DEF</p>
|
607
|
+
</note>
|
608
|
+
<bibitem id='iso216' type='standard'>
|
609
|
+
<title format='text/plain'>Reference</title>
|
610
|
+
<docidentifier>ISO 215</docidentifier>
|
611
|
+
<docnumber>215</docnumber>
|
612
|
+
<contributor>
|
613
|
+
<role type='publisher'/>
|
614
|
+
<organization>
|
615
|
+
<name>ISO</name>
|
616
|
+
</organization>
|
617
|
+
</contributor>
|
618
|
+
</bibitem>
|
619
|
+
<note id='_'>
|
620
|
+
<p id='_'>JKL</p>
|
621
|
+
</note>
|
622
|
+
<p id='_'>
|
623
|
+
This is further extraneous information
|
624
|
+
<note id='_'>
|
625
|
+
<p id='_'>GHI</p>
|
626
|
+
</note>
|
627
|
+
</p>
|
628
|
+
<p id='_'>This is also extraneous information</p>
|
629
|
+
</references>
|
630
|
+
</bibliography>
|
631
|
+
</standard-document>
|
632
|
+
OUTPUT
|
633
|
+
end
|
634
|
+
|
635
|
+
it "inserts IDs into paragraphs" do
|
636
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
637
|
+
#{ASCIIDOC_BLANK_HDR}
|
638
|
+
Paragraph
|
639
|
+
INPUT
|
640
|
+
#{BLANK_HDR}
|
641
|
+
<sections>
|
642
|
+
<p id="_">Paragraph</p>
|
643
|
+
</sections>
|
644
|
+
</standard-document>
|
645
|
+
OUTPUT
|
646
|
+
end
|
647
|
+
|
648
|
+
it "inserts IDs into notes" do
|
649
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
650
|
+
#{ASCIIDOC_BLANK_HDR}
|
651
|
+
[example]
|
652
|
+
====
|
653
|
+
NOTE: This note has no ID
|
654
|
+
====
|
655
|
+
INPUT
|
656
|
+
#{BLANK_HDR}
|
657
|
+
<sections>
|
658
|
+
<example id="_">
|
659
|
+
<note id="_">
|
660
|
+
<p id="_">This note has no ID</p>
|
661
|
+
</note>
|
662
|
+
</example>
|
663
|
+
</sections>
|
664
|
+
</standard-document>
|
665
|
+
OUTPUT
|
666
|
+
end
|
667
|
+
|
668
|
+
it "moves table key inside table" do
|
669
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
670
|
+
#{ASCIIDOC_BLANK_HDR}
|
671
|
+
|===
|
672
|
+
|a |b |c
|
673
|
+
|===
|
674
|
+
|
675
|
+
Key
|
676
|
+
|
677
|
+
a:: b
|
678
|
+
INPUT
|
679
|
+
#{BLANK_HDR}
|
680
|
+
<sections><table id="_">
|
681
|
+
<tbody>
|
682
|
+
<tr>
|
683
|
+
<td align="left">a</td>
|
684
|
+
<td align="left">b</td>
|
685
|
+
<td align="left">c</td>
|
686
|
+
</tr>
|
687
|
+
</tbody>
|
688
|
+
<dl id="_">
|
689
|
+
<dt>a</dt>
|
690
|
+
<dd>
|
691
|
+
<p id="_">b</p>
|
692
|
+
</dd>
|
693
|
+
</dl></table>
|
694
|
+
|
695
|
+
</sections>
|
696
|
+
</standard-document>
|
697
|
+
OUTPUT
|
698
|
+
end
|
699
|
+
|
700
|
+
it "processes headerrows attribute for table without header rows" do
|
701
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
702
|
+
#{ASCIIDOC_BLANK_HDR}
|
703
|
+
[headerrows=3]
|
704
|
+
|===
|
705
|
+
|a |b |c
|
706
|
+
|a |b |c
|
707
|
+
|a |b |c
|
708
|
+
|a |b |c
|
709
|
+
|===
|
710
|
+
INPUT
|
711
|
+
#{BLANK_HDR}
|
712
|
+
<sections>
|
713
|
+
<table id="_"><thead><tr>
|
714
|
+
<th align="left">a</th>
|
715
|
+
<th align="left">b</th>
|
716
|
+
<th align="left">c</th>
|
717
|
+
</tr><tr>
|
718
|
+
<th align="left">a</th>
|
719
|
+
<th align="left">b</th>
|
720
|
+
<th align="left">c</th>
|
721
|
+
</tr><tr>
|
722
|
+
<th align="left">a</th>
|
723
|
+
<th align="left">b</th>
|
724
|
+
<th align="left">c</th>
|
725
|
+
</tr></thead>
|
726
|
+
<tbody>
|
727
|
+
<tr>
|
728
|
+
<td align="left">a</td>
|
729
|
+
<td align="left">b</td>
|
730
|
+
<td align="left">c</td>
|
731
|
+
</tr>
|
732
|
+
</tbody>
|
733
|
+
</table>
|
734
|
+
</sections>
|
735
|
+
</standard-document>
|
736
|
+
OUTPUT
|
737
|
+
end
|
738
|
+
|
739
|
+
it "processes headerrows attribute for table with header rows" do
|
740
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
741
|
+
#{ASCIIDOC_BLANK_HDR}
|
742
|
+
[headerrows=3]
|
743
|
+
|===
|
744
|
+
|a |b |c
|
745
|
+
|
746
|
+
|a |b |c
|
747
|
+
|a |b |c
|
748
|
+
|a |b |c
|
749
|
+
|===
|
750
|
+
INPUT
|
751
|
+
#{BLANK_HDR}
|
752
|
+
<sections>
|
753
|
+
<table id="_">
|
754
|
+
<thead>
|
755
|
+
<tr>
|
756
|
+
<th align="left">a</th>
|
757
|
+
<th align="left">b</th>
|
758
|
+
<th align="left">c</th>
|
759
|
+
</tr>
|
760
|
+
<tr>
|
761
|
+
<th align="left">a</th>
|
762
|
+
<th align="left">b</th>
|
763
|
+
<th align="left">c</th>
|
764
|
+
</tr><tr>
|
765
|
+
<th align="left">a</th>
|
766
|
+
<th align="left">b</th>
|
767
|
+
<th align="left">c</th>
|
768
|
+
</tr></thead>
|
769
|
+
<tbody>
|
770
|
+
|
771
|
+
|
772
|
+
<tr>
|
773
|
+
<td align="left">a</td>
|
774
|
+
<td align="left">b</td>
|
775
|
+
<td align="left">c</td>
|
776
|
+
</tr>
|
777
|
+
</tbody>
|
778
|
+
</table>
|
779
|
+
</sections>
|
780
|
+
</standard-document>
|
781
|
+
OUTPUT
|
782
|
+
end
|
783
|
+
|
784
|
+
it "moves table notes inside table" do
|
785
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
786
|
+
#{ASCIIDOC_BLANK_HDR}
|
787
|
+
|===
|
788
|
+
|a |b |c
|
789
|
+
|===
|
790
|
+
|
791
|
+
NOTE: Note 1
|
792
|
+
|
793
|
+
NOTE: Note 2
|
794
|
+
INPUT
|
795
|
+
#{BLANK_HDR}
|
796
|
+
<sections><table id="_">
|
797
|
+
<tbody>
|
798
|
+
<tr>
|
799
|
+
<td align="left">a</td>
|
800
|
+
<td align="left">b</td>
|
801
|
+
<td align="left">c</td>
|
802
|
+
</tr>
|
803
|
+
</tbody>
|
804
|
+
<note id="_">
|
805
|
+
<p id="_">Note 1</p>
|
806
|
+
</note><note id="_">
|
807
|
+
<p id="_">Note 2</p>
|
808
|
+
</note></table>
|
809
|
+
|
810
|
+
</sections>
|
811
|
+
</standard-document>
|
812
|
+
OUTPUT
|
813
|
+
end
|
814
|
+
|
815
|
+
it "moves formula key inside formula" do
|
816
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
817
|
+
#{ASCIIDOC_BLANK_HDR}
|
818
|
+
[stem]
|
819
|
+
++++
|
820
|
+
Formula
|
821
|
+
++++
|
822
|
+
|
823
|
+
Where,
|
824
|
+
|
825
|
+
a:: b
|
826
|
+
INPUT
|
827
|
+
#{BLANK_HDR}
|
828
|
+
<sections><formula id="_">
|
829
|
+
<stem type="MathML"><math xmlns="http://www.w3.org/1998/Math/MathML"><mi>F</mi><mi>or</mi><mi>μ</mi><mi>l</mi><mi>a</mi></math></stem>
|
830
|
+
<dl id="_">
|
831
|
+
<dt>a</dt>
|
832
|
+
<dd>
|
833
|
+
<p id="_">b</p>
|
834
|
+
</dd>
|
835
|
+
</dl></formula>
|
836
|
+
|
837
|
+
</sections>
|
838
|
+
</standard-document>
|
839
|
+
OUTPUT
|
840
|
+
end
|
841
|
+
|
842
|
+
it "moves footnotes inside figures" do
|
843
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
844
|
+
#{ASCIIDOC_BLANK_HDR}
|
845
|
+
.Figuretitle.footnote:[xyz]
|
846
|
+
image::spec/examples/rice_images/rice_image1.png[]
|
847
|
+
|
848
|
+
footnote:[This is a footnote to a figure]
|
849
|
+
|
850
|
+
footnote:[This is another footnote to a figure]
|
851
|
+
|
852
|
+
A footnote:[This is a third footnote]
|
853
|
+
INPUT
|
854
|
+
#{BLANK_HDR}
|
855
|
+
<sections><figure id="_">
|
856
|
+
<name>
|
857
|
+
Figuretitle.
|
858
|
+
<fn reference='1'>
|
859
|
+
<p id='_'>xyz</p>
|
860
|
+
</fn>
|
861
|
+
</name>
|
862
|
+
<image src="spec/examples/rice_images/rice_image1.png" id="_" mimetype="image/png" height="auto" width="auto"/>
|
863
|
+
<fn reference="a">
|
864
|
+
<p id="_">This is a footnote to a figure</p>
|
865
|
+
</fn><fn reference="b">
|
866
|
+
<p id="_">This is another footnote to a figure</p>
|
867
|
+
</fn></figure>
|
868
|
+
<p id='_'>
|
869
|
+
A
|
870
|
+
<fn reference='2'>
|
871
|
+
<p id='_'>This is a third footnote</p>
|
872
|
+
</fn>
|
873
|
+
</p>
|
874
|
+
|
875
|
+
</sections>
|
876
|
+
|
877
|
+
</standard-document>
|
878
|
+
OUTPUT
|
879
|
+
end
|
880
|
+
|
881
|
+
it "moves figure key inside figure" do
|
882
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
883
|
+
#{ASCIIDOC_BLANK_HDR}
|
884
|
+
image::spec/examples/rice_images/rice_image1.png[]
|
885
|
+
|
886
|
+
key:
|
887
|
+
|
888
|
+
a:: b
|
889
|
+
INPUT
|
890
|
+
#{BLANK_HDR}
|
891
|
+
<sections><figure id="_">
|
892
|
+
<image src="spec/examples/rice_images/rice_image1.png" id="_" mimetype="image/png" height="auto" width="auto"/>
|
893
|
+
<dl id="_">
|
894
|
+
<dt>a</dt>
|
895
|
+
<dd>
|
896
|
+
<p id="_">b</p>
|
897
|
+
</dd>
|
898
|
+
</dl></figure>
|
899
|
+
|
900
|
+
</sections>
|
901
|
+
|
902
|
+
</standard-document>
|
903
|
+
OUTPUT
|
904
|
+
end
|
905
|
+
|
906
|
+
it "processes subfigures" do
|
907
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
908
|
+
#{ASCIIDOC_BLANK_HDR}
|
909
|
+
[[figureC-2]]
|
910
|
+
.Stages of gelatinization
|
911
|
+
====
|
912
|
+
.Initial stages: No grains are fully gelatinized (ungelatinized starch granules are visible inside the kernels)
|
913
|
+
image::spec/examples/rice_images/rice_image3_1.png[]
|
914
|
+
|
915
|
+
.Intermediate stages: Some fully gelatinized kernels are visible
|
916
|
+
image::spec/examples/rice_images/rice_image3_2.png[]
|
917
|
+
|
918
|
+
.Final stages: All kernels are fully gelatinized
|
919
|
+
image::spec/examples/rice_images/rice_image3_3.png[]
|
920
|
+
====
|
921
|
+
INPUT
|
922
|
+
#{BLANK_HDR}
|
923
|
+
<sections>
|
924
|
+
<figure id="figureC-2"><name>Stages of gelatinization</name><figure id="_">
|
925
|
+
<name>Initial stages: No grains are fully gelatinized (ungelatinized starch granules are visible inside the kernels)</name>
|
926
|
+
<image src="spec/examples/rice_images/rice_image3_1.png" id="_" mimetype="image/png" height="auto" width="auto"/>
|
927
|
+
</figure>
|
928
|
+
<figure id="_">
|
929
|
+
<name>Intermediate stages: Some fully gelatinized kernels are visible</name>
|
930
|
+
<image src="spec/examples/rice_images/rice_image3_2.png" id="_" mimetype="image/png" height="auto" width="auto"/>
|
931
|
+
</figure>
|
932
|
+
<figure id="_">
|
933
|
+
<name>Final stages: All kernels are fully gelatinized</name>
|
934
|
+
<image src="spec/examples/rice_images/rice_image3_3.png" id="_" mimetype="image/png" height="auto" width="auto"/>
|
935
|
+
</figure></figure>
|
936
|
+
</sections>
|
937
|
+
</standard-document>
|
938
|
+
OUTPUT
|
939
|
+
end
|
940
|
+
|
941
|
+
it "numbers bibliographic notes and footnotes sequentially" do
|
942
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
943
|
+
#{ASCIIDOC_BLANK_HDR}
|
944
|
+
footnote:[Footnote]
|
945
|
+
|
946
|
+
[bibliography]
|
947
|
+
== Normative References
|
948
|
+
|
949
|
+
* [[[iso123,ISO 123:--]]] footnote:[The standard is in press] _Standard_
|
950
|
+
|
951
|
+
== Clause
|
952
|
+
footnote:[Footnote2]
|
953
|
+
INPUT
|
954
|
+
#{BLANK_HDR}
|
955
|
+
<preface><foreword id="_" obligation="informative">
|
956
|
+
<title>Foreword</title>
|
957
|
+
<p id="_"><fn reference="1">
|
958
|
+
<p id="_">Footnote</p>
|
959
|
+
</fn>
|
960
|
+
</p>
|
961
|
+
</foreword></preface><sections>
|
962
|
+
|
963
|
+
<clause id="_" inline-header="false" obligation="normative">
|
964
|
+
<title>Clause</title>
|
965
|
+
<p id="_"><fn reference="2">
|
966
|
+
<p id="_">Footnote2</p>
|
967
|
+
</fn>
|
968
|
+
</p>
|
969
|
+
</clause></sections><bibliography><references id="_" obligation="informative" normative="true">
|
970
|
+
<title>Normative references</title>
|
971
|
+
#{NORM_REF_BOILERPLATE}
|
972
|
+
<bibitem id="iso123" type="standard">
|
973
|
+
<title format="text/plain">Standard</title>
|
974
|
+
<docidentifier>ISO 123:—</docidentifier>
|
975
|
+
<docnumber>123</docnumber>
|
976
|
+
<date type="published">
|
977
|
+
<on>–</on>
|
978
|
+
</date>
|
979
|
+
<contributor>
|
980
|
+
<role type="publisher"/>
|
981
|
+
<organization>
|
982
|
+
<name>ISO</name>
|
983
|
+
</organization>
|
984
|
+
</contributor>
|
985
|
+
<note format="text/plain" type="ISO DATE">The standard is in press</note>
|
986
|
+
</bibitem>
|
987
|
+
</references>
|
988
|
+
</bibliography>
|
989
|
+
</standard-document>
|
990
|
+
OUTPUT
|
991
|
+
end
|
992
|
+
|
993
|
+
it "defaults section obligations" do
|
994
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
995
|
+
#{ASCIIDOC_BLANK_HDR}
|
996
|
+
|
997
|
+
== Clause
|
998
|
+
Text
|
999
|
+
|
1000
|
+
[appendix]
|
1001
|
+
== Clause
|
1002
|
+
|
1003
|
+
Text
|
1004
|
+
INPUT
|
1005
|
+
#{BLANK_HDR}
|
1006
|
+
<sections><clause id="_" inline-header="false" obligation="normative">
|
1007
|
+
<title>Clause</title>
|
1008
|
+
<p id="_">Text</p>
|
1009
|
+
</clause>
|
1010
|
+
</sections><annex id="_" inline-header="false" obligation="normative">
|
1011
|
+
<title>Clause</title>
|
1012
|
+
<p id="_">Text</p>
|
1013
|
+
</annex>
|
1014
|
+
</standard-document>
|
1015
|
+
OUTPUT
|
1016
|
+
end
|
1017
|
+
|
1018
|
+
it "rearranges term note, term example, term source" do
|
1019
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
1020
|
+
#{ASCIIDOC_BLANK_HDR}
|
1021
|
+
|
1022
|
+
== Terms and definitions
|
1023
|
+
|
1024
|
+
=== Term
|
1025
|
+
|
1026
|
+
[.source]
|
1027
|
+
<<ISO2191,section=1>>
|
1028
|
+
|
1029
|
+
NOTE: Note
|
1030
|
+
|
1031
|
+
[example]
|
1032
|
+
Example 1
|
1033
|
+
|
1034
|
+
NOTE: Note 2
|
1035
|
+
|
1036
|
+
[example]
|
1037
|
+
Example 2
|
1038
|
+
INPUT
|
1039
|
+
#{BLANK_HDR}
|
1040
|
+
<sections>
|
1041
|
+
<terms id="_" obligation="normative">
|
1042
|
+
<title>Terms and definitions</title>
|
1043
|
+
<p id="_">For the purposes of this document, the following terms and definitions apply.</p>
|
1044
|
+
<term id="_"><preferred>Term</preferred>
|
1045
|
+
|
1046
|
+
|
1047
|
+
|
1048
|
+
<termnote id="_">
|
1049
|
+
<p id="_">Note</p>
|
1050
|
+
</termnote><termnote id="_">
|
1051
|
+
<p id="_">Note 2</p>
|
1052
|
+
</termnote><termexample id="_">
|
1053
|
+
<p id="_">Example 1</p>
|
1054
|
+
</termexample><termexample id="_">
|
1055
|
+
<p id="_">Example 2</p>
|
1056
|
+
</termexample><termsource status="identical">
|
1057
|
+
<origin bibitemid="ISO2191" type="inline" citeas="">
|
1058
|
+
<localityStack>
|
1059
|
+
<locality type="section"><referenceFrom>1</referenceFrom></locality>
|
1060
|
+
</localityStack>
|
1061
|
+
</origin>
|
1062
|
+
</termsource></term>
|
1063
|
+
</terms>
|
1064
|
+
</sections>
|
1065
|
+
</standard-document>
|
1066
|
+
OUTPUT
|
1067
|
+
end
|
1068
|
+
|
1069
|
+
it "extends clause levels past 5" do
|
1070
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
1071
|
+
#{ASCIIDOC_BLANK_HDR}
|
1072
|
+
|
1073
|
+
== Clause1
|
1074
|
+
|
1075
|
+
=== Clause2
|
1076
|
+
|
1077
|
+
==== Clause3
|
1078
|
+
|
1079
|
+
===== Clause4
|
1080
|
+
|
1081
|
+
====== Clause 5
|
1082
|
+
|
1083
|
+
[level=6]
|
1084
|
+
====== Clause 6
|
1085
|
+
|
1086
|
+
[level=7]
|
1087
|
+
====== Clause 7A
|
1088
|
+
|
1089
|
+
[level=7]
|
1090
|
+
====== Clause 7B
|
1091
|
+
|
1092
|
+
[level=6]
|
1093
|
+
====== Clause 6B
|
1094
|
+
|
1095
|
+
====== Clause 5B
|
1096
|
+
|
1097
|
+
INPUT
|
1098
|
+
#{BLANK_HDR}
|
1099
|
+
<sections>
|
1100
|
+
<clause id="_" inline-header="false" obligation="normative">
|
1101
|
+
<title>Clause1</title>
|
1102
|
+
<clause id="_" inline-header="false" obligation="normative">
|
1103
|
+
<title>Clause2</title>
|
1104
|
+
<clause id="_" inline-header="false" obligation="normative">
|
1105
|
+
<title>Clause3</title>
|
1106
|
+
<clause id="_" inline-header="false" obligation="normative"><title>Clause4</title><clause id="_" inline-header="false" obligation="normative">
|
1107
|
+
<title>Clause 5</title>
|
1108
|
+
<clause id="_" inline-header="false" obligation="normative">
|
1109
|
+
<title>Clause 6</title>
|
1110
|
+
<clause id="_" inline-header="false" obligation="normative">
|
1111
|
+
<title>Clause 7A</title>
|
1112
|
+
</clause><clause id="_" inline-header="false" obligation="normative">
|
1113
|
+
<title>Clause 7B</title>
|
1114
|
+
</clause></clause><clause id="_" inline-header="false" obligation="normative">
|
1115
|
+
<title>Clause 6B</title>
|
1116
|
+
</clause></clause>
|
1117
|
+
|
1118
|
+
|
1119
|
+
|
1120
|
+
|
1121
|
+
<clause id="_" inline-header="false" obligation="normative">
|
1122
|
+
<title>Clause 5B</title>
|
1123
|
+
</clause></clause>
|
1124
|
+
</clause>
|
1125
|
+
</clause>
|
1126
|
+
</clause>
|
1127
|
+
</sections>
|
1128
|
+
</standard-document>
|
1129
|
+
OUTPUT
|
1130
|
+
end
|
1131
|
+
|
1132
|
+
it "separates IEV citations by top-level clause" do
|
1133
|
+
FileUtils.rm_rf File.expand_path("~/.relaton-bib.pstore1")
|
1134
|
+
FileUtils.mv File.expand_path("~/.relaton/cache"), File.expand_path("~/.relaton-bib.pstore1"), force: true
|
1135
|
+
FileUtils.rm_rf File.expand_path("~/.iev.pstore1")
|
1136
|
+
FileUtils.mv File.expand_path("~/.iev.pstore"), File.expand_path("~/.iev.pstore1"), force: true
|
1137
|
+
FileUtils.rm_rf "relaton/cache"
|
1138
|
+
FileUtils.rm_rf "test.iev.pstore"
|
1139
|
+
# mock_iecbib_get_iec60050_102_01
|
1140
|
+
# mock_iecbib_get_iec60050_103_01
|
1141
|
+
# mock_iev
|
1142
|
+
VCR.use_cassette "separates_iev_citations_by_top_level_clause" do
|
1143
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
1144
|
+
#{CACHED_ISOBIB_BLANK_HDR}
|
1145
|
+
|
1146
|
+
[bibliography]
|
1147
|
+
== Normative References
|
1148
|
+
* [[[iev,IEV]]], _iev_
|
1149
|
+
|
1150
|
+
== Terms and definitions
|
1151
|
+
=== Automation1
|
1152
|
+
|
1153
|
+
[.source]
|
1154
|
+
<<iev,clause="103-01-02">>
|
1155
|
+
|
1156
|
+
=== Automation2
|
1157
|
+
|
1158
|
+
[.source]
|
1159
|
+
<<iev,clause="102-01-02">>
|
1160
|
+
|
1161
|
+
=== Automation3
|
1162
|
+
|
1163
|
+
[.source]
|
1164
|
+
<<iev,clause="103-01-02">>
|
1165
|
+
INPUT
|
1166
|
+
#{BLANK_HDR}
|
1167
|
+
|
1168
|
+
<sections>
|
1169
|
+
<terms id="_" obligation="normative"><title>Terms and definitions</title>
|
1170
|
+
<p id="_">For the purposes of this document, the following terms and definitions apply.</p>
|
1171
|
+
<term id="_">
|
1172
|
+
<preferred>Automation1</preferred>
|
1173
|
+
<termsource status="identical">
|
1174
|
+
<origin bibitemid="IEC60050-103" type="inline" citeas="IEC 60050-103:2009">
|
1175
|
+
<localityStack>
|
1176
|
+
<locality type="clause"><referenceFrom>103-01-02</referenceFrom></locality>
|
1177
|
+
</localityStack>
|
1178
|
+
</origin>
|
1179
|
+
</termsource>
|
1180
|
+
</term>
|
1181
|
+
<term id="_">
|
1182
|
+
<preferred>Automation2</preferred>
|
1183
|
+
<termsource status="identical">
|
1184
|
+
<origin bibitemid="IEC60050-102" type="inline" citeas="IEC 60050-102:2007">
|
1185
|
+
<localityStack>
|
1186
|
+
<locality type="clause"><referenceFrom>102-01-02</referenceFrom></locality>
|
1187
|
+
</localityStack>
|
1188
|
+
</origin>
|
1189
|
+
</termsource>
|
1190
|
+
</term>
|
1191
|
+
<term id="_">
|
1192
|
+
<preferred>Automation3</preferred>
|
1193
|
+
<termsource status="identical">
|
1194
|
+
<origin bibitemid="IEC60050-103" type="inline" citeas="IEC 60050-103:2009">
|
1195
|
+
<localityStack>
|
1196
|
+
<locality type="clause"><referenceFrom>103-01-02</referenceFrom></locality>
|
1197
|
+
</localityStack>
|
1198
|
+
</origin>
|
1199
|
+
</termsource>
|
1200
|
+
</term></terms></sections><bibliography><references id="_" obligation="informative" normative="true">
|
1201
|
+
<title>Normative references</title>
|
1202
|
+
#{NORM_REF_BOILERPLATE}
|
1203
|
+
<bibitem type="standard" id="IEC60050-102">
|
1204
|
+
<fetched>#{Date.today}</fetched>
|
1205
|
+
<title type="title-main" format="text/plain" language="en" script="Latn">International Electrotechnical Vocabulary (IEV)</title>
|
1206
|
+
<title type="title-part" format="text/plain" language="en" script="Latn">Part 102: Mathematics — General concepts and linear algebra</title>
|
1207
|
+
<title type='main' format='text/plain' language='en' script='Latn'>International Electrotechnical Vocabulary (IEV) — Part 102: Mathematics — General concepts and linear algebra</title>
|
1208
|
+
<uri type="src">https://webstore.iec.ch/publication/160</uri>
|
1209
|
+
<uri type="obp">/preview/info_iec60050-102%7Bed1.0%7Db.pdf</uri>
|
1210
|
+
<docidentifier type="IEC">IEC 60050-102:2007</docidentifier>
|
1211
|
+
<date type="published">
|
1212
|
+
<on>2007</on>
|
1213
|
+
</date>
|
1214
|
+
<contributor>
|
1215
|
+
<role type="publisher"/>
|
1216
|
+
<organization>
|
1217
|
+
<name>International Electrotechnical Commission</name>
|
1218
|
+
<abbreviation>IEC</abbreviation>
|
1219
|
+
<uri>www.iec.ch</uri>
|
1220
|
+
</organization>
|
1221
|
+
</contributor>
|
1222
|
+
<edition>1.0</edition>
|
1223
|
+
<language>en</language>
|
1224
|
+
<script>Latn</script>
|
1225
|
+
<abstract format="text/plain" language="en" script="Latn">This part of IEC 60050 gives the general mathematical terminology used in the fields of electricity, electronics and telecommunications, together with basic concepts in linear algebra. It maintains a clear distinction between mathematical concepts and physical concepts, even if some terms are used in both cases. Another part will deal with functions. It has the status of a horizontal standard in accordance with IEC Guide 108.</abstract>
|
1226
|
+
<status>
|
1227
|
+
<stage>60</stage>
|
1228
|
+
<substage>60</substage>
|
1229
|
+
</status>
|
1230
|
+
<copyright>
|
1231
|
+
<from>2007</from>
|
1232
|
+
<owner>
|
1233
|
+
<organization>
|
1234
|
+
<name>International Electrotechnical Commission</name>
|
1235
|
+
<abbreviation>IEC</abbreviation>
|
1236
|
+
<uri>www.iec.ch</uri>
|
1237
|
+
</organization>
|
1238
|
+
</owner>
|
1239
|
+
</copyright>
|
1240
|
+
<place>Geneva</place>
|
1241
|
+
</bibitem><bibitem type="standard" id="IEC60050-103">
|
1242
|
+
<fetched>#{Date.today}</fetched>
|
1243
|
+
<title type="title-main" format="text/plain" language="en" script="Latn">International Electrotechnical Vocabulary (IEV)</title>
|
1244
|
+
<title type="title-part" format="text/plain" language="en" script="Latn">Part 103: Mathematics — Functions</title>
|
1245
|
+
<title type="main" format="text/plain" language="en" script="Latn">International Electrotechnical Vocabulary (IEV) — Part 103: Mathematics — Functions</title>
|
1246
|
+
<uri type="src">https://webstore.iec.ch/publication/161</uri>
|
1247
|
+
<uri type="obp">/preview/info_iec60050-103%7Bed1.0%7Db.pdf</uri>
|
1248
|
+
<docidentifier type="IEC">IEC 60050-103:2009</docidentifier>
|
1249
|
+
<date type="published">
|
1250
|
+
<on>2009</on>
|
1251
|
+
</date>
|
1252
|
+
<contributor>
|
1253
|
+
<role type="publisher"/>
|
1254
|
+
<organization>
|
1255
|
+
<name>International Electrotechnical Commission</name>
|
1256
|
+
<abbreviation>IEC</abbreviation>
|
1257
|
+
<uri>www.iec.ch</uri>
|
1258
|
+
</organization>
|
1259
|
+
</contributor>
|
1260
|
+
<edition>1.0</edition>
|
1261
|
+
<language>en</language>
|
1262
|
+
<script>Latn</script>
|
1263
|
+
<abstract format="text/plain" language="en" script="Latn">IEC 60050-103:2009 gives the terminology relative to functions of one or more variables. Together with IEC 60050-102, it covers the mathematical terminology used in the fields of electricity, electronics and telecommunications. It maintains a clear distinction between mathematical concepts and physical concepts, even if some terms are used in both cases. Mathematical symbols are generally in accordance with IEC 60027-1 and ISO 80000-2. This standard cancels and replaces Sections 101-13, 101-14 and 101-15 of International Standard IEC 60050-101:1998. It has the status of a horizontal standard in accordance with IEC Guide 108.</abstract>
|
1264
|
+
<status>
|
1265
|
+
<stage>60</stage>
|
1266
|
+
<substage>60</substage>
|
1267
|
+
</status>
|
1268
|
+
<copyright>
|
1269
|
+
<from>2009</from>
|
1270
|
+
<owner>
|
1271
|
+
<organization>
|
1272
|
+
<name>International Electrotechnical Commission</name>
|
1273
|
+
<abbreviation>IEC</abbreviation>
|
1274
|
+
<uri>www.iec.ch</uri>
|
1275
|
+
</organization>
|
1276
|
+
</owner>
|
1277
|
+
</copyright>
|
1278
|
+
<place>Geneva</place>
|
1279
|
+
</bibitem>
|
1280
|
+
</references></bibliography>
|
1281
|
+
</standard-document>
|
1282
|
+
OUTPUT
|
1283
|
+
end
|
1284
|
+
FileUtils.rm_rf File.expand_path("~/.iev.pstore")
|
1285
|
+
FileUtils.mv File.expand_path("~/.iev.pstore1"), File.expand_path("~/.iev.pstore"), force: true
|
1286
|
+
FileUtils.rm_rf File.expand_path("~/.relaton/cache")
|
1287
|
+
FileUtils.mv File.expand_path("~/.relaton-bib.pstore1"), File.expand_path("~/.relaton/cache"), force: true
|
1288
|
+
end
|
1289
|
+
|
1290
|
+
it "counts footnotes with link-only content as separate footnotes" do
|
1291
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
1292
|
+
#{ASCIIDOC_BLANK_HDR}
|
1293
|
+
|
1294
|
+
footnote:[http://www.example.com]
|
1295
|
+
|
1296
|
+
footnote:[http://www.example.com]
|
1297
|
+
|
1298
|
+
footnote:[http://www.example1.com]
|
1299
|
+
INPUT
|
1300
|
+
#{BLANK_HDR}
|
1301
|
+
<sections><p id="_"><fn reference="1">
|
1302
|
+
<p id="_">
|
1303
|
+
<link target="http://www.example.com"/>
|
1304
|
+
</p>
|
1305
|
+
</fn>
|
1306
|
+
</p>
|
1307
|
+
<p id="_"><fn reference="1">
|
1308
|
+
<p id="_">
|
1309
|
+
<link target="http://www.example.com"/>
|
1310
|
+
</p>
|
1311
|
+
</fn>
|
1312
|
+
</p>
|
1313
|
+
<p id="_"><fn reference="2">
|
1314
|
+
<p id="_">
|
1315
|
+
<link target="http://www.example1.com"/>
|
1316
|
+
</p>
|
1317
|
+
</fn>
|
1318
|
+
</p></sections>
|
1319
|
+
|
1320
|
+
|
1321
|
+
</standard-document>
|
1322
|
+
OUTPUT
|
1323
|
+
end
|
1324
|
+
|
1325
|
+
it "retains AsciiMath on request" do
|
1326
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
1327
|
+
= Document title
|
1328
|
+
Author
|
1329
|
+
:docfile: test.adoc
|
1330
|
+
:nodoc:
|
1331
|
+
:novalid:
|
1332
|
+
:no-isobib:
|
1333
|
+
:mn-keep-asciimath:
|
1334
|
+
|
1335
|
+
stem:[1/r]
|
1336
|
+
INPUT
|
1337
|
+
#{BLANK_HDR}
|
1338
|
+
<sections>
|
1339
|
+
<p id="_">
|
1340
|
+
<stem type="AsciiMath">1/r</stem>
|
1341
|
+
</p>
|
1342
|
+
</sections>
|
1343
|
+
</standard-document>
|
1344
|
+
|
1345
|
+
OUTPUT
|
1346
|
+
end
|
1347
|
+
|
1348
|
+
it "converts AsciiMath to MathML by default" do
|
1349
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
1350
|
+
= Document title
|
1351
|
+
Author
|
1352
|
+
:docfile: test.adoc
|
1353
|
+
:nodoc:
|
1354
|
+
:novalid:
|
1355
|
+
:no-isobib:
|
1356
|
+
|
1357
|
+
stem:[1/r]
|
1358
|
+
INPUT
|
1359
|
+
#{BLANK_HDR}
|
1360
|
+
<sections>
|
1361
|
+
<p id="_">
|
1362
|
+
<stem type="MathML"><math xmlns="http://www.w3.org/1998/Math/MathML"><mfrac><mn>1</mn><mi>r</mi></mfrac></math></stem>
|
1363
|
+
</p>
|
1364
|
+
</sections>
|
1365
|
+
</standard-document>
|
1366
|
+
OUTPUT
|
1367
|
+
end
|
1368
|
+
|
1369
|
+
it "cleans up text MathML" do
|
1370
|
+
expect(Asciidoctor::Standoc::Converter.new(nil, backend: :standoc, header_footer: true).cleanup(Nokogiri::XML(<<~"INPUT")).to_xml).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
1371
|
+
#{BLANK_HDR}
|
1372
|
+
<sections>
|
1373
|
+
<stem type="MathML"><math xmlns="http://www.w3.org/1998/Math/MathML"><mfrac><mn>1</mn><mi>r</mi></mfrac></math></stem>
|
1374
|
+
</sections>
|
1375
|
+
</standard-document>
|
1376
|
+
INPUT
|
1377
|
+
#{BLANK_HDR}
|
1378
|
+
<sections>
|
1379
|
+
<stem type="MathML"><math xmlns="http://www.w3.org/1998/Math/MathML"><mfrac><mn>1</mn><mi>r</mi></mfrac></math></stem>
|
1380
|
+
</sections>
|
1381
|
+
|
1382
|
+
|
1383
|
+
</standard-document>
|
1384
|
+
OUTPUT
|
1385
|
+
end
|
1386
|
+
|
1387
|
+
it "renumbers numeric references in Bibliography sequentially" do
|
1388
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
1389
|
+
#{ASCIIDOC_BLANK_HDR}
|
1390
|
+
|
1391
|
+
== Clause
|
1392
|
+
<<iso123>>
|
1393
|
+
<<iso124>>
|
1394
|
+
|
1395
|
+
[bibliography]
|
1396
|
+
== Bibliography
|
1397
|
+
|
1398
|
+
* [[[iso124,ISO 124]]] _Standard 124_
|
1399
|
+
* [[[iso123,1]]] _Standard 123_
|
1400
|
+
INPUT
|
1401
|
+
#{BLANK_HDR}
|
1402
|
+
<sections><clause id="_" inline-header="false" obligation="normative">
|
1403
|
+
<title>Clause</title>
|
1404
|
+
<p id="_"><eref type="inline" bibitemid="iso123" citeas="[2]"/>
|
1405
|
+
<eref type="inline" bibitemid="iso124" citeas="ISO 124"/></p>
|
1406
|
+
</clause>
|
1407
|
+
</sections><bibliography><references id="_" obligation="informative" normative="false">
|
1408
|
+
<title>Bibliography</title>
|
1409
|
+
<bibitem id="iso124" type="standard">
|
1410
|
+
<title format="text/plain">Standard 124</title>
|
1411
|
+
<docidentifier>ISO 124</docidentifier>
|
1412
|
+
<docnumber>124</docnumber>
|
1413
|
+
<contributor>
|
1414
|
+
<role type="publisher"/>
|
1415
|
+
<organization>
|
1416
|
+
<name>ISO</name>
|
1417
|
+
</organization>
|
1418
|
+
</contributor>
|
1419
|
+
</bibitem>
|
1420
|
+
<bibitem id="iso123">
|
1421
|
+
<formattedref format="application/x-isodoc+xml">
|
1422
|
+
<em>Standard 123</em>
|
1423
|
+
</formattedref>
|
1424
|
+
<docidentifier type="metanorma">[2]</docidentifier>
|
1425
|
+
</bibitem>
|
1426
|
+
</references></bibliography>
|
1427
|
+
</standard-document>
|
1428
|
+
OUTPUT
|
1429
|
+
end
|
1430
|
+
|
1431
|
+
it "renumbers numeric references in Bibliography subclauses sequentially" do
|
1432
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
1433
|
+
#{ASCIIDOC_BLANK_HDR}
|
1434
|
+
|
1435
|
+
== Clause
|
1436
|
+
<<iso123>>
|
1437
|
+
<<iso124>>
|
1438
|
+
<<iso125>>
|
1439
|
+
<<iso126>>
|
1440
|
+
|
1441
|
+
[bibliography]
|
1442
|
+
== Bibliography
|
1443
|
+
|
1444
|
+
[bibliography]
|
1445
|
+
=== Clause 1
|
1446
|
+
* [[[iso124,ISO 124]]] _Standard 124_
|
1447
|
+
* [[[iso123,1]]] _Standard 123_
|
1448
|
+
|
1449
|
+
[bibliography]
|
1450
|
+
=== {blank}
|
1451
|
+
* [[[iso125,ISO 125]]] _Standard 124_
|
1452
|
+
* [[[iso126,1]]] _Standard 123_
|
1453
|
+
|
1454
|
+
INPUT
|
1455
|
+
#{BLANK_HDR}
|
1456
|
+
<sections><clause id="_" inline-header="false" obligation="normative">
|
1457
|
+
<title>Clause</title>
|
1458
|
+
<p id="_"><eref type="inline" bibitemid="iso123" citeas="[2]"/>
|
1459
|
+
<eref type="inline" bibitemid="iso124" citeas="ISO 124"/>
|
1460
|
+
<eref type="inline" bibitemid="iso125" citeas="ISO 125"/>
|
1461
|
+
<eref type="inline" bibitemid="iso126" citeas="[4]"/></p>
|
1462
|
+
</clause>
|
1463
|
+
</sections><bibliography><clause id="_" obligation="informative"><title>Bibliography</title><references id="_" obligation="informative" normative="false">
|
1464
|
+
<title>Clause 1</title>
|
1465
|
+
<bibitem id="iso124" type="standard">
|
1466
|
+
<title format="text/plain">Standard 124</title>
|
1467
|
+
<docidentifier>ISO 124</docidentifier>
|
1468
|
+
<docnumber>124</docnumber>
|
1469
|
+
<contributor>
|
1470
|
+
<role type="publisher"/>
|
1471
|
+
<organization>
|
1472
|
+
<name>ISO</name>
|
1473
|
+
</organization>
|
1474
|
+
</contributor>
|
1475
|
+
</bibitem>
|
1476
|
+
<bibitem id="iso123">
|
1477
|
+
<formattedref format="application/x-isodoc+xml">
|
1478
|
+
<em>Standard 123</em>
|
1479
|
+
</formattedref>
|
1480
|
+
<docidentifier type="metanorma">[2]</docidentifier>
|
1481
|
+
</bibitem>
|
1482
|
+
</references>
|
1483
|
+
<references id="_" obligation="informative" normative="false">
|
1484
|
+
<bibitem id="iso125" type="standard">
|
1485
|
+
<title format="text/plain">Standard 124</title>
|
1486
|
+
<docidentifier>ISO 125</docidentifier>
|
1487
|
+
<docnumber>125</docnumber>
|
1488
|
+
<contributor>
|
1489
|
+
<role type="publisher"/>
|
1490
|
+
<organization>
|
1491
|
+
<name>ISO</name>
|
1492
|
+
</organization>
|
1493
|
+
</contributor>
|
1494
|
+
</bibitem>
|
1495
|
+
<bibitem id="iso126">
|
1496
|
+
<formattedref format="application/x-isodoc+xml">
|
1497
|
+
<em>Standard 123</em>
|
1498
|
+
</formattedref>
|
1499
|
+
<docidentifier type="metanorma">[4]</docidentifier>
|
1500
|
+
</bibitem>
|
1501
|
+
</references></clause></bibliography>
|
1502
|
+
</standard-document>
|
1503
|
+
OUTPUT
|
1504
|
+
end
|
1505
|
+
|
1506
|
+
it "inserts boilerplate before empty Normative References" do
|
1507
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
1508
|
+
#{ASCIIDOC_BLANK_HDR}
|
1509
|
+
|
1510
|
+
[bibliography]
|
1511
|
+
== Normative References
|
1512
|
+
|
1513
|
+
INPUT
|
1514
|
+
#{BLANK_HDR}
|
1515
|
+
<sections>
|
1516
|
+
|
1517
|
+
</sections><bibliography><references id="_" obligation="informative" normative="true">
|
1518
|
+
<title>Normative references</title><p id="_">There are no normative references in this document.</p>
|
1519
|
+
</references></bibliography>
|
1520
|
+
</standard-document>
|
1521
|
+
OUTPUT
|
1522
|
+
end
|
1523
|
+
|
1524
|
+
it "inserts boilerplate before non-empty Normative References" do
|
1525
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
1526
|
+
#{ASCIIDOC_BLANK_HDR}
|
1527
|
+
|
1528
|
+
[bibliography]
|
1529
|
+
== Normative References
|
1530
|
+
* [[[a,b]]] A
|
1531
|
+
|
1532
|
+
INPUT
|
1533
|
+
#{BLANK_HDR}
|
1534
|
+
<sections>
|
1535
|
+
|
1536
|
+
</sections><bibliography><references id="_" obligation="informative" normative="true">
|
1537
|
+
<title>Normative references</title><p id="_">The following documents are referred to in the text in such a way that some or all of their content constitutes requirements of this document. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies.</p>
|
1538
|
+
<bibitem id="a">
|
1539
|
+
<formattedref format="application/x-isodoc+xml">A</formattedref>
|
1540
|
+
<docidentifier>b</docidentifier>
|
1541
|
+
</bibitem>
|
1542
|
+
</references></bibliography>
|
1543
|
+
</standard-document>
|
1544
|
+
|
1545
|
+
OUTPUT
|
1546
|
+
end
|
1547
|
+
|
1548
|
+
it "inserts boilerplate before empty Normative References in French" do
|
1549
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
1550
|
+
= Document title
|
1551
|
+
Author
|
1552
|
+
:docfile: test.adoc
|
1553
|
+
:nodoc:
|
1554
|
+
:novalid:
|
1555
|
+
:no-isobib:
|
1556
|
+
:language: fr
|
1557
|
+
|
1558
|
+
[bibliography]
|
1559
|
+
== Normative References
|
1560
|
+
|
1561
|
+
INPUT
|
1562
|
+
#{BLANK_HDR.sub(/<language>en/, "<language>fr")}
|
1563
|
+
<sections>
|
1564
|
+
|
1565
|
+
</sections><bibliography><references id="_" obligation="informative" normative="true">
|
1566
|
+
<title>Références normatives</title><p id="_">Le présent document ne contient aucune référence normative.</p>
|
1567
|
+
</references></bibliography>
|
1568
|
+
</standard-document>
|
1569
|
+
OUTPUT
|
1570
|
+
end
|
1571
|
+
|
1572
|
+
it "removes bibdata bibitem IDs" do
|
1573
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
1574
|
+
= Document title
|
1575
|
+
Author
|
1576
|
+
:docfile: test.adoc
|
1577
|
+
:nodoc:
|
1578
|
+
:novalid:
|
1579
|
+
:no-isobib:
|
1580
|
+
:translated-from: IEC 60050-102
|
1581
|
+
|
1582
|
+
[bibliography]
|
1583
|
+
== Normative References
|
1584
|
+
|
1585
|
+
INPUT
|
1586
|
+
<?xml version='1.0' encoding='UTF-8'?>
|
1587
|
+
<standard-document xmlns='https://www.metanorma.org/ns/standoc'>
|
1588
|
+
<bibdata type='standard'>
|
1589
|
+
<title language='en' format='text/plain'>Document title</title>
|
1590
|
+
<language>en</language>
|
1591
|
+
<script>Latn</script>
|
1592
|
+
<status>
|
1593
|
+
<stage>published</stage>
|
1594
|
+
</status>
|
1595
|
+
<copyright>
|
1596
|
+
<from>#{Date.today.year}</from>
|
1597
|
+
</copyright>
|
1598
|
+
<relation type='translatedFrom'>
|
1599
|
+
<bibitem>
|
1600
|
+
<title>--</title>
|
1601
|
+
<docidentifier>IEC 60050-102</docidentifier>
|
1602
|
+
</bibitem>
|
1603
|
+
</relation>
|
1604
|
+
<ext>
|
1605
|
+
<doctype>article</doctype>
|
1606
|
+
</ext>
|
1607
|
+
</bibdata>
|
1608
|
+
<sections> </sections>
|
1609
|
+
<bibliography>
|
1610
|
+
<references id='_' obligation='informative' normative="true">
|
1611
|
+
<title>Normative references</title>
|
1612
|
+
<p id="_">There are no normative references in this document.</p>
|
1613
|
+
</references>
|
1614
|
+
</bibliography>
|
1615
|
+
</standard-document>
|
1616
|
+
OUTPUT
|
1617
|
+
end
|
1618
|
+
|
1619
|
+
it "imports boilerplate file" do
|
1620
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
1621
|
+
= Document title
|
1622
|
+
Author
|
1623
|
+
:docfile: test.adoc
|
1624
|
+
:nodoc:
|
1625
|
+
:novalid:
|
1626
|
+
:no-isobib:
|
1627
|
+
:docstage: 10
|
1628
|
+
:boilerplate-authority: spec/assets/boilerplate.xml
|
1629
|
+
|
1630
|
+
== Clause 1
|
1631
|
+
|
1632
|
+
INPUT
|
1633
|
+
<standard-document xmlns='https://www.metanorma.org/ns/standoc'>
|
1634
|
+
<bibdata type='standard'>
|
1635
|
+
<title language='en' format='text/plain'>Document title</title>
|
1636
|
+
<language>en</language>
|
1637
|
+
<script>Latn</script>
|
1638
|
+
<status>
|
1639
|
+
<stage>10</stage>
|
1640
|
+
</status>
|
1641
|
+
<copyright>
|
1642
|
+
<from>#{Date.today.year}</from>
|
1643
|
+
</copyright>
|
1644
|
+
<ext>
|
1645
|
+
<doctype>article</doctype>
|
1646
|
+
</ext>
|
1647
|
+
</bibdata>
|
1648
|
+
<boilerplate>
|
1649
|
+
<text>10</text>
|
1650
|
+
</boilerplate>
|
1651
|
+
<sections>
|
1652
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
1653
|
+
<title>Clause 1</title>
|
1654
|
+
</clause>
|
1655
|
+
</sections>
|
1656
|
+
</standard-document>
|
1657
|
+
OUTPUT
|
1658
|
+
end
|
1659
|
+
|
1660
|
+
it "sorts symbols lists" do
|
1661
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
1662
|
+
#{ASCIIDOC_BLANK_HDR}
|
1663
|
+
|
1664
|
+
[[L]]
|
1665
|
+
== Symbols and abbreviated terms
|
1666
|
+
|
1667
|
+
α:: Definition 1
|
1668
|
+
xa:: Definition 2
|
1669
|
+
x_1_:: Definition 3
|
1670
|
+
x_m_:: Definition 4
|
1671
|
+
x:: Definition 5
|
1672
|
+
INPUT
|
1673
|
+
#{BLANK_HDR}
|
1674
|
+
<sections>
|
1675
|
+
<definitions id='L' obligation="normative">
|
1676
|
+
<title>Symbols and abbreviated terms</title>
|
1677
|
+
<dl id='_'>
|
1678
|
+
<dt>x</dt>
|
1679
|
+
<dd>
|
1680
|
+
<p id='_'>Definition 5</p>
|
1681
|
+
</dd>
|
1682
|
+
<dt>x_m_</dt>
|
1683
|
+
<dd>
|
1684
|
+
<p id='_'>Definition 4</p>
|
1685
|
+
</dd>
|
1686
|
+
<dt>x_1_</dt>
|
1687
|
+
<dd>
|
1688
|
+
<p id='_'>Definition 3</p>
|
1689
|
+
</dd>
|
1690
|
+
<dt>xa</dt>
|
1691
|
+
<dd>
|
1692
|
+
<p id='_'>Definition 2</p>
|
1693
|
+
</dd>
|
1694
|
+
<dt>α</dt>
|
1695
|
+
<dd>
|
1696
|
+
<p id='_'>Definition 1</p>
|
1697
|
+
</dd>
|
1698
|
+
</dl>
|
1699
|
+
</definitions>
|
1700
|
+
</sections>
|
1701
|
+
</standard-document>
|
1702
|
+
OUTPUT
|
1703
|
+
end
|
1704
|
+
|
1705
|
+
it "sorts symbols lists" do
|
1706
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
1707
|
+
#{ASCIIDOC_BLANK_HDR}
|
1708
|
+
|
1709
|
+
[[L]]
|
1710
|
+
== Symbols and abbreviated terms
|
1711
|
+
|
1712
|
+
stem:[alpha]:: Definition 1
|
1713
|
+
xa:: Definition 2
|
1714
|
+
stem:[x_1]:: Definition 3
|
1715
|
+
stem:[x_m]:: Definition 4
|
1716
|
+
x:: Definition 5
|
1717
|
+
INPUT
|
1718
|
+
#{BLANK_HDR}
|
1719
|
+
<sections>
|
1720
|
+
<definitions id='L' obligation="normative">
|
1721
|
+
<title>Symbols and abbreviated terms</title>
|
1722
|
+
<dl id='_'>
|
1723
|
+
<dt>x</dt>
|
1724
|
+
<dd>
|
1725
|
+
<p id='_'>Definition 5</p>
|
1726
|
+
</dd>
|
1727
|
+
<dt><stem type='MathML'>
|
1728
|
+
<math xmlns='http://www.w3.org/1998/Math/MathML'>
|
1729
|
+
<msub>
|
1730
|
+
<mi>x</mi>
|
1731
|
+
<mi>m</mi>
|
1732
|
+
</msub>
|
1733
|
+
</math>
|
1734
|
+
</stem></dt>
|
1735
|
+
<dd>
|
1736
|
+
<p id='_'>Definition 4</p>
|
1737
|
+
</dd>
|
1738
|
+
<dt><stem type='MathML'>
|
1739
|
+
<math xmlns='http://www.w3.org/1998/Math/MathML'>
|
1740
|
+
<msub>
|
1741
|
+
<mi>x</mi>
|
1742
|
+
<mn>1</mn>
|
1743
|
+
</msub>
|
1744
|
+
</math>
|
1745
|
+
</stem></dt>
|
1746
|
+
<dd>
|
1747
|
+
<p id='_'>Definition 3</p>
|
1748
|
+
</dd>
|
1749
|
+
<dt>xa</dt>
|
1750
|
+
<dd>
|
1751
|
+
<p id='_'>Definition 2</p>
|
1752
|
+
</dd>
|
1753
|
+
<dt>
|
1754
|
+
<stem type='MathML'>
|
1755
|
+
<math xmlns='http://www.w3.org/1998/Math/MathML'>
|
1756
|
+
<mi>α</mi>
|
1757
|
+
</math>
|
1758
|
+
</stem>
|
1759
|
+
</dt>
|
1760
|
+
<dd>
|
1761
|
+
<p id='_'>Definition 1</p>
|
1762
|
+
</dd>
|
1763
|
+
</dl>
|
1764
|
+
</definitions>
|
1765
|
+
</sections>
|
1766
|
+
</standard-document>
|
1767
|
+
OUTPUT
|
1768
|
+
end
|
1769
|
+
|
1770
|
+
it "moves inherit macros to correct location" do
|
1771
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
1772
|
+
#{ASCIIDOC_BLANK_HDR}
|
1773
|
+
|
1774
|
+
== Clause
|
1775
|
+
|
1776
|
+
[.requirement,subsequence="A",inherit="/ss/584/2015/level/1 & /ss/584/2015/level/2"]
|
1777
|
+
.Title
|
1778
|
+
====
|
1779
|
+
inherit:[A]
|
1780
|
+
inherit:[B]
|
1781
|
+
I recommend this
|
1782
|
+
====
|
1783
|
+
|
1784
|
+
[.requirement,subsequence="A",classification="X:Y"]
|
1785
|
+
.Title
|
1786
|
+
====
|
1787
|
+
inherit:[A]
|
1788
|
+
I recommend this
|
1789
|
+
====
|
1790
|
+
|
1791
|
+
[.requirement,subsequence="A"]
|
1792
|
+
.Title
|
1793
|
+
====
|
1794
|
+
inherit:[A]
|
1795
|
+
I recommend this
|
1796
|
+
====
|
1797
|
+
|
1798
|
+
[.requirement,subsequence="A"]
|
1799
|
+
.Title
|
1800
|
+
====
|
1801
|
+
inherit:[A]
|
1802
|
+
====
|
1803
|
+
|
1804
|
+
|
1805
|
+
INPUT
|
1806
|
+
#{BLANK_HDR}
|
1807
|
+
<sections>
|
1808
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
1809
|
+
<title>Clause</title>
|
1810
|
+
<requirement id='_' subsequence='A'>
|
1811
|
+
<title>Title</title>
|
1812
|
+
<inherit>/ss/584/2015/level/1 & /ss/584/2015/level/2</inherit>
|
1813
|
+
<inherit>A</inherit>
|
1814
|
+
<inherit>B</inherit>
|
1815
|
+
<description>
|
1816
|
+
<p id='_'> I recommend this</p>
|
1817
|
+
</description>
|
1818
|
+
</requirement>
|
1819
|
+
<requirement id='_' subsequence='A'>
|
1820
|
+
<title>Title</title>
|
1821
|
+
<inherit>A</inherit>
|
1822
|
+
<classification>
|
1823
|
+
<tag>X</tag>
|
1824
|
+
<value>Y</value>
|
1825
|
+
</classification>
|
1826
|
+
<description>
|
1827
|
+
<p id='_'> I recommend this</p>
|
1828
|
+
</description>
|
1829
|
+
</requirement>
|
1830
|
+
<requirement id='_' subsequence='A'>
|
1831
|
+
<title>Title</title>
|
1832
|
+
<inherit>A</inherit>
|
1833
|
+
<description>
|
1834
|
+
<p id='_'> I recommend this</p>
|
1835
|
+
</description>
|
1836
|
+
</requirement>
|
1837
|
+
<requirement id='_' subsequence='A'>
|
1838
|
+
<title>Title</title>
|
1839
|
+
<inherit>A</inherit>
|
1840
|
+
<description>
|
1841
|
+
<p id='_'> </p>
|
1842
|
+
</description>
|
1843
|
+
</requirement>
|
1844
|
+
</clause>
|
1845
|
+
</sections>
|
1846
|
+
</standard-document>
|
1847
|
+
OUTPUT
|
1848
|
+
end
|
1849
|
+
|
1850
|
+
it "moves %beforeclause admonitions to right position" do
|
1851
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
1852
|
+
#{ASCIIDOC_BLANK_HDR}
|
1853
|
+
|
1854
|
+
.Foreword
|
1855
|
+
Foreword
|
1856
|
+
|
1857
|
+
[NOTE,beforeclauses=true]
|
1858
|
+
====
|
1859
|
+
Note which is very important
|
1860
|
+
====
|
1861
|
+
|
1862
|
+
== Introduction
|
1863
|
+
Introduction
|
1864
|
+
|
1865
|
+
== Scope
|
1866
|
+
Scope statement
|
1867
|
+
|
1868
|
+
[IMPORTANT,beforeclauses=true]
|
1869
|
+
====
|
1870
|
+
Notice which is very important
|
1871
|
+
====
|
1872
|
+
INPUT
|
1873
|
+
#{BLANK_HDR}
|
1874
|
+
<preface>
|
1875
|
+
<foreword id='_' obligation='informative'>
|
1876
|
+
<title>Foreword</title>
|
1877
|
+
<p id='_'>Foreword</p>
|
1878
|
+
</foreword>
|
1879
|
+
<introduction id='_' obligation='informative'>
|
1880
|
+
<title>Introduction</title>
|
1881
|
+
<p id='_'>Introduction</p>
|
1882
|
+
</introduction>
|
1883
|
+
</preface>
|
1884
|
+
<sections>
|
1885
|
+
<note id='_'>
|
1886
|
+
<p id='_'>Note which is very important</p>
|
1887
|
+
</note>
|
1888
|
+
<admonition id='_' type='important'>
|
1889
|
+
<p id='_'>Notice which is very important</p>
|
1890
|
+
</admonition>
|
1891
|
+
<clause id='_' inline-header='false' obligation='normative' type="scope">
|
1892
|
+
<title>Scope</title>
|
1893
|
+
<p id='_'>Scope statement</p>
|
1894
|
+
</clause>
|
1895
|
+
</sections>
|
1896
|
+
</standard-document>
|
1897
|
+
|
1898
|
+
OUTPUT
|
1899
|
+
end
|
1900
|
+
|
1901
|
+
|
1902
|
+
it "processes section names, with footnotes" do
|
1903
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
1904
|
+
#{ASCIIDOC_BLANK_HDR}
|
1905
|
+
.Foreword.footnote:[A]
|
1906
|
+
|
1907
|
+
Text
|
1908
|
+
|
1909
|
+
[abstract]
|
1910
|
+
== Abstract.footnote:[A]
|
1911
|
+
|
1912
|
+
Text
|
1913
|
+
|
1914
|
+
[heading=introduction]
|
1915
|
+
== Introduction.footnote:[A]
|
1916
|
+
|
1917
|
+
=== Introduction Subsection
|
1918
|
+
|
1919
|
+
[heading=acknowledgements]
|
1920
|
+
== Acknowledgements.footnote:[A]
|
1921
|
+
|
1922
|
+
[.preface]
|
1923
|
+
== Dedication
|
1924
|
+
|
1925
|
+
[heading=scope]
|
1926
|
+
== Scope.footnote:[A]
|
1927
|
+
|
1928
|
+
Text
|
1929
|
+
|
1930
|
+
[bibliography,heading=normative references]
|
1931
|
+
== Normative References.footnote:[A]
|
1932
|
+
|
1933
|
+
[bibliography,normative=true]
|
1934
|
+
== Normative References 2.footnote:[A]
|
1935
|
+
|
1936
|
+
[heading=terms and definitions]
|
1937
|
+
== Terms and Definitions.footnote:[A]
|
1938
|
+
|
1939
|
+
=== Term1
|
1940
|
+
|
1941
|
+
[heading="terms and definitions"]
|
1942
|
+
== Terms, Definitions, Symbols and Abbreviated Terms.footnote:[A]
|
1943
|
+
|
1944
|
+
[.nonterm]
|
1945
|
+
=== Introduction
|
1946
|
+
|
1947
|
+
==== Intro 1
|
1948
|
+
|
1949
|
+
=== Intro 2
|
1950
|
+
|
1951
|
+
[.nonterm]
|
1952
|
+
==== Intro 3
|
1953
|
+
|
1954
|
+
=== Intro 4
|
1955
|
+
|
1956
|
+
==== Intro 5
|
1957
|
+
|
1958
|
+
===== Term1
|
1959
|
+
|
1960
|
+
=== Normal Terms
|
1961
|
+
|
1962
|
+
==== Term2
|
1963
|
+
|
1964
|
+
[heading=symbols and abbreviated terms]
|
1965
|
+
=== Symbols and Abbreviated Terms.footnote:[A]
|
1966
|
+
|
1967
|
+
[.nonterm]
|
1968
|
+
==== General
|
1969
|
+
|
1970
|
+
[heading=symbols]
|
1971
|
+
==== Symbols 1.footnote:[A]
|
1972
|
+
|
1973
|
+
[heading=abbreviated terms]
|
1974
|
+
== Abbreviated Terms.footnote:[A]
|
1975
|
+
|
1976
|
+
== Clause 4
|
1977
|
+
|
1978
|
+
=== Introduction
|
1979
|
+
|
1980
|
+
=== Clause 4.2
|
1981
|
+
|
1982
|
+
== Terms and Definitions
|
1983
|
+
|
1984
|
+
[appendix]
|
1985
|
+
== Annex.footnote:[A]
|
1986
|
+
|
1987
|
+
=== Annex A.1
|
1988
|
+
|
1989
|
+
[bibliography,heading=bibliography]
|
1990
|
+
== Bibliography.footnote:[A]
|
1991
|
+
|
1992
|
+
[bibliography,normative=false]
|
1993
|
+
== Bibliography 2.footnote:[A]
|
1994
|
+
|
1995
|
+
=== Bibliography Subsection
|
1996
|
+
|
1997
|
+
INPUT
|
1998
|
+
<standard-document xmlns='https://www.metanorma.org/ns/standoc'>
|
1999
|
+
<bibdata type='standard'>
|
2000
|
+
<title language='en' format='text/plain'>Document title</title>
|
2001
|
+
<language>en</language>
|
2002
|
+
<script>Latn</script>
|
2003
|
+
<abstract>
|
2004
|
+
<p>Text</p>
|
2005
|
+
</abstract>
|
2006
|
+
<status>
|
2007
|
+
<stage>published</stage>
|
2008
|
+
</status>
|
2009
|
+
<copyright>
|
2010
|
+
<from>2020</from>
|
2011
|
+
</copyright>
|
2012
|
+
<ext>
|
2013
|
+
<doctype>article</doctype>
|
2014
|
+
</ext>
|
2015
|
+
</bibdata>
|
2016
|
+
<preface>
|
2017
|
+
<abstract id='_'>
|
2018
|
+
<title>Abstract</title>
|
2019
|
+
<p id='_'>Text</p>
|
2020
|
+
</abstract>
|
2021
|
+
<foreword id='_' obligation='informative'>
|
2022
|
+
<title>
|
2023
|
+
Foreword
|
2024
|
+
<fn reference='1'>
|
2025
|
+
<p id='_'>A</p>
|
2026
|
+
</fn>
|
2027
|
+
</title>
|
2028
|
+
<p id='_'>Text</p>
|
2029
|
+
</foreword>
|
2030
|
+
<introduction id='_' obligation='informative'>
|
2031
|
+
<title>Introduction</title>
|
2032
|
+
<clause id='_' inline-header='false' obligation='informative'>
|
2033
|
+
<title>Introduction Subsection</title>
|
2034
|
+
</clause>
|
2035
|
+
</introduction>
|
2036
|
+
<clause id='_' inline-header='false' obligation='informative'>
|
2037
|
+
<title>Dedication</title>
|
2038
|
+
</clause>
|
2039
|
+
<acknowledgements id='_' obligation='informative'>
|
2040
|
+
<title>
|
2041
|
+
Acknowledgements
|
2042
|
+
<fn reference='1'>
|
2043
|
+
<p id='_'>A</p>
|
2044
|
+
</fn>
|
2045
|
+
</title>
|
2046
|
+
</acknowledgements>
|
2047
|
+
</preface>
|
2048
|
+
<sections>
|
2049
|
+
<clause id='_' type='scope' inline-header='false' obligation='normative'>
|
2050
|
+
<title>
|
2051
|
+
Scope
|
2052
|
+
<fn reference='1'>
|
2053
|
+
<p id='_'>A</p>
|
2054
|
+
</fn>
|
2055
|
+
</title>
|
2056
|
+
<p id='_'>Text</p>
|
2057
|
+
</clause>
|
2058
|
+
<terms id='_' obligation='normative'>
|
2059
|
+
<title>
|
2060
|
+
Terms and definitions
|
2061
|
+
<fn reference='1'>
|
2062
|
+
<p id='_'>A</p>
|
2063
|
+
</fn>
|
2064
|
+
</title>
|
2065
|
+
<p id='_'>For the purposes of this document, the following terms and definitions apply.</p>
|
2066
|
+
<term id='_'>
|
2067
|
+
<preferred>Term1</preferred>
|
2068
|
+
</term>
|
2069
|
+
</terms>
|
2070
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2071
|
+
<title>
|
2072
|
+
Terms, Definitions, Symbols and Abbreviated Terms.
|
2073
|
+
<fn reference='1'>
|
2074
|
+
<p id='_'>A</p>
|
2075
|
+
</fn>
|
2076
|
+
</title>
|
2077
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2078
|
+
<title>Introduction</title>
|
2079
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2080
|
+
<title>Intro 1</title>
|
2081
|
+
</clause>
|
2082
|
+
</clause>
|
2083
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2084
|
+
<title>Intro 2</title>
|
2085
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2086
|
+
<title>Intro 3</title>
|
2087
|
+
</clause>
|
2088
|
+
</clause>
|
2089
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2090
|
+
<title>Intro 4</title>
|
2091
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2092
|
+
<title>Intro 5</title>
|
2093
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2094
|
+
<title>Term1</title>
|
2095
|
+
</clause>
|
2096
|
+
</clause>
|
2097
|
+
</clause>
|
2098
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2099
|
+
<title>Normal Terms</title>
|
2100
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2101
|
+
<title>Term2</title>
|
2102
|
+
</clause>
|
2103
|
+
</clause>
|
2104
|
+
<definitions id='_' obligation='normative'>
|
2105
|
+
<title>
|
2106
|
+
Symbols and abbreviated terms
|
2107
|
+
<fn reference='1'>
|
2108
|
+
<p id='_'>A</p>
|
2109
|
+
</fn>
|
2110
|
+
</title>
|
2111
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2112
|
+
<title>General</title>
|
2113
|
+
</clause>
|
2114
|
+
<definitions id='_' type='symbols' obligation='normative'>
|
2115
|
+
<title>
|
2116
|
+
Symbols
|
2117
|
+
<fn reference='1'>
|
2118
|
+
<p id='_'>A</p>
|
2119
|
+
</fn>
|
2120
|
+
</title>
|
2121
|
+
</definitions>
|
2122
|
+
</definitions>
|
2123
|
+
</clause>
|
2124
|
+
<definitions id='_' type='abbreviated_terms' obligation='normative'>
|
2125
|
+
<title>
|
2126
|
+
Abbreviated terms
|
2127
|
+
<fn reference='1'>
|
2128
|
+
<p id='_'>A</p>
|
2129
|
+
</fn>
|
2130
|
+
</title>
|
2131
|
+
</definitions>
|
2132
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2133
|
+
<title>Clause 4</title>
|
2134
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2135
|
+
<title>Introduction</title>
|
2136
|
+
</clause>
|
2137
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2138
|
+
<title>Clause 4.2</title>
|
2139
|
+
</clause>
|
2140
|
+
</clause>
|
2141
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2142
|
+
<title>Terms and Definitions</title>
|
2143
|
+
</clause>
|
2144
|
+
</sections>
|
2145
|
+
<annex id='_' inline-header='false' obligation='normative'>
|
2146
|
+
<title>
|
2147
|
+
Annex.
|
2148
|
+
<fn reference='1'>
|
2149
|
+
<p id='_'>A</p>
|
2150
|
+
</fn>
|
2151
|
+
</title>
|
2152
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2153
|
+
<title>Annex A.1</title>
|
2154
|
+
</clause>
|
2155
|
+
</annex>
|
2156
|
+
<bibliography>
|
2157
|
+
<references id='_' normative='true' obligation='informative'>
|
2158
|
+
<title>Normative references</title>
|
2159
|
+
<p id='_'>There are no normative references in this document.</p>
|
2160
|
+
</references>
|
2161
|
+
<references id='_' normative='false' obligation='informative'>
|
2162
|
+
<title>Bibliography</title>
|
2163
|
+
</references>
|
2164
|
+
<references id='_' normative='false' obligation='informative'>
|
2165
|
+
<title>Bibliography</title>
|
2166
|
+
</references>
|
2167
|
+
<clause id='_' obligation='informative'>
|
2168
|
+
<title>Bibliography</title>
|
2169
|
+
<references id='_' normative='false' obligation='informative'>
|
2170
|
+
<title>Bibliography Subsection</title>
|
2171
|
+
</references>
|
2172
|
+
</clause>
|
2173
|
+
</bibliography>
|
2174
|
+
</standard-document>
|
2175
|
+
OUTPUT
|
2176
|
+
end
|
2177
|
+
|
2178
|
+
it "processes section names, default to English" do
|
2179
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
2180
|
+
#{ASCIIDOC_BLANK_HDR.sub(/:nodoc:/, ":language: tlh\n:script: Latn\n:nodoc:")}
|
2181
|
+
.Foreword
|
2182
|
+
|
2183
|
+
Text
|
2184
|
+
|
2185
|
+
[abstract]
|
2186
|
+
== Abstract
|
2187
|
+
|
2188
|
+
Text
|
2189
|
+
|
2190
|
+
[heading=introduction]
|
2191
|
+
== Introduction
|
2192
|
+
|
2193
|
+
=== Introduction Subsection
|
2194
|
+
|
2195
|
+
[heading=acknowledgements]
|
2196
|
+
== Acknowledgements
|
2197
|
+
|
2198
|
+
[.preface]
|
2199
|
+
== Dedication
|
2200
|
+
|
2201
|
+
[heading=scope]
|
2202
|
+
== Scope
|
2203
|
+
|
2204
|
+
Text
|
2205
|
+
|
2206
|
+
[bibliography,heading=normative references]
|
2207
|
+
== Normative References
|
2208
|
+
|
2209
|
+
[bibliography,normative=true]
|
2210
|
+
== Normative References 2
|
2211
|
+
|
2212
|
+
[heading=terms and definitions]
|
2213
|
+
== Terms and Definitions
|
2214
|
+
|
2215
|
+
=== Term1
|
2216
|
+
|
2217
|
+
[heading="terms and definitions"]
|
2218
|
+
== Terms, Definitions, Symbols and Abbreviated Terms
|
2219
|
+
|
2220
|
+
[.nonterm]
|
2221
|
+
=== Introduction
|
2222
|
+
|
2223
|
+
==== Intro 1
|
2224
|
+
|
2225
|
+
=== Intro 2
|
2226
|
+
|
2227
|
+
[.nonterm]
|
2228
|
+
==== Intro 3
|
2229
|
+
|
2230
|
+
=== Intro 4
|
2231
|
+
|
2232
|
+
==== Intro 5
|
2233
|
+
|
2234
|
+
===== Term1
|
2235
|
+
|
2236
|
+
=== Normal Terms
|
2237
|
+
|
2238
|
+
==== Term2
|
2239
|
+
|
2240
|
+
[heading=symbols and abbreviated terms]
|
2241
|
+
=== Symbols and Abbreviated Terms
|
2242
|
+
|
2243
|
+
[.nonterm]
|
2244
|
+
==== General
|
2245
|
+
|
2246
|
+
[heading=symbols]
|
2247
|
+
==== Symbols 1
|
2248
|
+
|
2249
|
+
[heading=abbreviated terms]
|
2250
|
+
== Abbreviated Terms
|
2251
|
+
|
2252
|
+
== Clause 4
|
2253
|
+
|
2254
|
+
=== Introduction
|
2255
|
+
|
2256
|
+
=== Clause 4.2
|
2257
|
+
|
2258
|
+
== Terms and Definitions
|
2259
|
+
|
2260
|
+
[appendix]
|
2261
|
+
== Annex
|
2262
|
+
|
2263
|
+
=== Annex A.1
|
2264
|
+
|
2265
|
+
[bibliography,heading=bibliography]
|
2266
|
+
== Bibliography
|
2267
|
+
|
2268
|
+
[bibliography,normative=false]
|
2269
|
+
== Bibliography 2
|
2270
|
+
|
2271
|
+
=== Bibliography Subsection
|
2272
|
+
|
2273
|
+
INPUT
|
2274
|
+
<standard-document xmlns='https://www.metanorma.org/ns/standoc'>
|
2275
|
+
<bibdata type='standard'>
|
2276
|
+
<title language='en' format='text/plain'>Document title</title>
|
2277
|
+
<language>tlh</language>
|
2278
|
+
<script>Latn</script>
|
2279
|
+
<abstract>
|
2280
|
+
<p>Text</p>
|
2281
|
+
</abstract>
|
2282
|
+
<status>
|
2283
|
+
<stage>published</stage>
|
2284
|
+
</status>
|
2285
|
+
<copyright>
|
2286
|
+
<from>2020</from>
|
2287
|
+
</copyright>
|
2288
|
+
<ext>
|
2289
|
+
<doctype>article</doctype>
|
2290
|
+
</ext>
|
2291
|
+
</bibdata>
|
2292
|
+
<preface>
|
2293
|
+
<abstract id='_'>
|
2294
|
+
<title>Abstract</title>
|
2295
|
+
<p id='_'>Text</p>
|
2296
|
+
</abstract>
|
2297
|
+
<foreword id='_' obligation='informative'>
|
2298
|
+
<title>Foreword</title>
|
2299
|
+
<p id='_'>Text</p>
|
2300
|
+
</foreword>
|
2301
|
+
<introduction id='_' obligation='informative'>
|
2302
|
+
<title>Introduction</title>
|
2303
|
+
<clause id='_' inline-header='false' obligation='informative'>
|
2304
|
+
<title>Introduction Subsection</title>
|
2305
|
+
</clause>
|
2306
|
+
</introduction>
|
2307
|
+
<clause id='_' inline-header='false' obligation='informative'>
|
2308
|
+
<title>Dedication</title>
|
2309
|
+
</clause>
|
2310
|
+
<acknowledgements id='_' obligation='informative'>
|
2311
|
+
<title>Acknowledgements</title>
|
2312
|
+
</acknowledgements>
|
2313
|
+
</preface>
|
2314
|
+
<sections>
|
2315
|
+
<clause id='_' type='scope' inline-header='false' obligation='normative'>
|
2316
|
+
<title>Scope</title>
|
2317
|
+
<p id='_'>Text</p>
|
2318
|
+
</clause>
|
2319
|
+
<terms id='_' obligation='normative'>
|
2320
|
+
<title>Terms and definitions</title>
|
2321
|
+
<p id='_'>For the purposes of this document, the following terms and definitions apply.</p>
|
2322
|
+
<term id='_'>
|
2323
|
+
<preferred>Term1</preferred>
|
2324
|
+
</term>
|
2325
|
+
</terms>
|
2326
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2327
|
+
<title>Terms, Definitions, Symbols and Abbreviated Terms</title>
|
2328
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2329
|
+
<title>Introduction</title>
|
2330
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2331
|
+
<title>Intro 1</title>
|
2332
|
+
</clause>
|
2333
|
+
</clause>
|
2334
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2335
|
+
<title>Intro 2</title>
|
2336
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2337
|
+
<title>Intro 3</title>
|
2338
|
+
</clause>
|
2339
|
+
</clause>
|
2340
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2341
|
+
<title>Intro 4</title>
|
2342
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2343
|
+
<title>Intro 5</title>
|
2344
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2345
|
+
<title>Term1</title>
|
2346
|
+
</clause>
|
2347
|
+
</clause>
|
2348
|
+
</clause>
|
2349
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2350
|
+
<title>Normal Terms</title>
|
2351
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2352
|
+
<title>Term2</title>
|
2353
|
+
</clause>
|
2354
|
+
</clause>
|
2355
|
+
<definitions id='_' obligation='normative'>
|
2356
|
+
<title>Symbols and abbreviated terms</title>
|
2357
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2358
|
+
<title>General</title>
|
2359
|
+
</clause>
|
2360
|
+
<definitions id='_' type='symbols' obligation='normative'>
|
2361
|
+
<title>Symbols</title>
|
2362
|
+
</definitions>
|
2363
|
+
</definitions>
|
2364
|
+
</clause>
|
2365
|
+
<definitions id='_' type='abbreviated_terms' obligation='normative'>
|
2366
|
+
<title>Abbreviated terms</title>
|
2367
|
+
</definitions>
|
2368
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2369
|
+
<title>Clause 4</title>
|
2370
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2371
|
+
<title>Introduction</title>
|
2372
|
+
</clause>
|
2373
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2374
|
+
<title>Clause 4.2</title>
|
2375
|
+
</clause>
|
2376
|
+
</clause>
|
2377
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2378
|
+
<title>Terms and Definitions</title>
|
2379
|
+
</clause>
|
2380
|
+
</sections>
|
2381
|
+
<annex id='_' inline-header='false' obligation='normative'>
|
2382
|
+
<title>Annex</title>
|
2383
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2384
|
+
<title>Annex A.1</title>
|
2385
|
+
</clause>
|
2386
|
+
</annex>
|
2387
|
+
<bibliography>
|
2388
|
+
<references id='_' normative='true' obligation='informative'>
|
2389
|
+
<title>Normative references</title>
|
2390
|
+
<p id='_'>There are no normative references in this document.</p>
|
2391
|
+
</references>
|
2392
|
+
<references id='_' normative='false' obligation='informative'>
|
2393
|
+
<title>Bibliography</title>
|
2394
|
+
</references>
|
2395
|
+
<references id='_' normative='false' obligation='informative'>
|
2396
|
+
<title>Bibliography</title>
|
2397
|
+
</references>
|
2398
|
+
<clause id='_' obligation='informative'>
|
2399
|
+
<title>Bibliography</title>
|
2400
|
+
<references id='_' normative='false' obligation='informative'>
|
2401
|
+
<title>Bibliography Subsection</title>
|
2402
|
+
</references>
|
2403
|
+
</clause>
|
2404
|
+
</bibliography>
|
2405
|
+
</standard-document>
|
2406
|
+
OUTPUT
|
2407
|
+
end
|
2408
|
+
|
2409
|
+
it "processes section names, French" do
|
2410
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
2411
|
+
#{ASCIIDOC_BLANK_HDR.sub(/:nodoc:/, ":language: fr\n:script: Latn\n:nodoc:")}
|
2412
|
+
.Foreword
|
2413
|
+
|
2414
|
+
Text
|
2415
|
+
|
2416
|
+
[abstract]
|
2417
|
+
== Abstract
|
2418
|
+
|
2419
|
+
Text
|
2420
|
+
|
2421
|
+
[heading=introduction]
|
2422
|
+
== Introduction
|
2423
|
+
|
2424
|
+
=== Introduction Subsection
|
2425
|
+
|
2426
|
+
[heading=acknowledgements]
|
2427
|
+
== Acknowledgements
|
2428
|
+
|
2429
|
+
[.preface]
|
2430
|
+
== Dedication
|
2431
|
+
|
2432
|
+
[heading=scope]
|
2433
|
+
== Scope
|
2434
|
+
|
2435
|
+
Text
|
2436
|
+
|
2437
|
+
[bibliography,heading=normative references]
|
2438
|
+
== Normative References
|
2439
|
+
|
2440
|
+
[bibliography,normative=true]
|
2441
|
+
== Normative References 2
|
2442
|
+
|
2443
|
+
[heading=terms and definitions]
|
2444
|
+
== Terms and Definitions
|
2445
|
+
|
2446
|
+
=== Term1
|
2447
|
+
|
2448
|
+
[heading="terms and definitions"]
|
2449
|
+
== Terms, Definitions, Symbols and Abbreviated Terms
|
2450
|
+
|
2451
|
+
[.nonterm]
|
2452
|
+
=== Introduction
|
2453
|
+
|
2454
|
+
==== Intro 1
|
2455
|
+
|
2456
|
+
=== Intro 2
|
2457
|
+
|
2458
|
+
[.nonterm]
|
2459
|
+
==== Intro 3
|
2460
|
+
|
2461
|
+
=== Intro 4
|
2462
|
+
|
2463
|
+
==== Intro 5
|
2464
|
+
|
2465
|
+
===== Term1
|
2466
|
+
|
2467
|
+
=== Normal Terms
|
2468
|
+
|
2469
|
+
==== Term2
|
2470
|
+
|
2471
|
+
[heading=symbols and abbreviated terms]
|
2472
|
+
=== Symbols and Abbreviated Terms
|
2473
|
+
|
2474
|
+
[.nonterm]
|
2475
|
+
==== General
|
2476
|
+
|
2477
|
+
[heading=symbols]
|
2478
|
+
==== Symbols 1
|
2479
|
+
|
2480
|
+
[heading=abbreviated terms]
|
2481
|
+
== Abbreviated Terms
|
2482
|
+
|
2483
|
+
== Clause 4
|
2484
|
+
|
2485
|
+
=== Introduction
|
2486
|
+
|
2487
|
+
=== Clause 4.2
|
2488
|
+
|
2489
|
+
== Terms and Definitions
|
2490
|
+
|
2491
|
+
[appendix]
|
2492
|
+
== Annex
|
2493
|
+
|
2494
|
+
=== Annex A.1
|
2495
|
+
|
2496
|
+
[bibliography,heading=bibliography]
|
2497
|
+
== Bibliography
|
2498
|
+
|
2499
|
+
[bibliography,normative=false]
|
2500
|
+
== Bibliography 2
|
2501
|
+
|
2502
|
+
=== Bibliography Subsection
|
2503
|
+
|
2504
|
+
INPUT
|
2505
|
+
<standard-document xmlns='https://www.metanorma.org/ns/standoc'>
|
2506
|
+
<bibdata type='standard'>
|
2507
|
+
<title language='en' format='text/plain'>Document title</title>
|
2508
|
+
<language>fr</language>
|
2509
|
+
<script>Latn</script>
|
2510
|
+
<abstract>
|
2511
|
+
<p>Text</p>
|
2512
|
+
</abstract>
|
2513
|
+
<status>
|
2514
|
+
<stage>published</stage>
|
2515
|
+
</status>
|
2516
|
+
<copyright>
|
2517
|
+
<from>2020</from>
|
2518
|
+
</copyright>
|
2519
|
+
<ext>
|
2520
|
+
<doctype>article</doctype>
|
2521
|
+
</ext>
|
2522
|
+
</bibdata>
|
2523
|
+
<preface>
|
2524
|
+
<abstract id='_'>
|
2525
|
+
<title>Résumé</title>
|
2526
|
+
<p id='_'>Text</p>
|
2527
|
+
</abstract>
|
2528
|
+
<foreword id='_' obligation='informative'>
|
2529
|
+
<title>Avant-propos</title>
|
2530
|
+
<p id='_'>Text</p>
|
2531
|
+
</foreword>
|
2532
|
+
<introduction id='_' obligation='informative'>
|
2533
|
+
<title>Introduction</title>
|
2534
|
+
<clause id='_' inline-header='false' obligation='informative'>
|
2535
|
+
<title>Introduction Subsection</title>
|
2536
|
+
</clause>
|
2537
|
+
</introduction>
|
2538
|
+
<clause id='_' inline-header='false' obligation='informative'>
|
2539
|
+
<title>Dedication</title>
|
2540
|
+
</clause>
|
2541
|
+
<acknowledgements id='_' obligation='informative'>
|
2542
|
+
<title>Remerciements</title>
|
2543
|
+
</acknowledgements>
|
2544
|
+
</preface>
|
2545
|
+
<sections>
|
2546
|
+
<clause id='_' type='scope' inline-header='false' obligation='normative'>
|
2547
|
+
<title>Domaine d’application</title>
|
2548
|
+
<p id='_'>Text</p>
|
2549
|
+
</clause>
|
2550
|
+
<terms id='_' obligation='normative'>
|
2551
|
+
<title>Terms et définitions</title>
|
2552
|
+
<p id='_'>
|
2553
|
+
Pour les besoins du présent document, les termes et définitions suivants
|
2554
|
+
s’appliquent.
|
2555
|
+
</p>
|
2556
|
+
<term id='_'>
|
2557
|
+
<preferred>Term1</preferred>
|
2558
|
+
</term>
|
2559
|
+
</terms>
|
2560
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2561
|
+
<title>Terms, Definitions, Symbols and Abbreviated Terms</title>
|
2562
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2563
|
+
<title>Introduction</title>
|
2564
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2565
|
+
<title>Intro 1</title>
|
2566
|
+
</clause>
|
2567
|
+
</clause>
|
2568
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2569
|
+
<title>Intro 2</title>
|
2570
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2571
|
+
<title>Intro 3</title>
|
2572
|
+
</clause>
|
2573
|
+
</clause>
|
2574
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2575
|
+
<title>Intro 4</title>
|
2576
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2577
|
+
<title>Intro 5</title>
|
2578
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2579
|
+
<title>Term1</title>
|
2580
|
+
</clause>
|
2581
|
+
</clause>
|
2582
|
+
</clause>
|
2583
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2584
|
+
<title>Normal Terms</title>
|
2585
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2586
|
+
<title>Term2</title>
|
2587
|
+
</clause>
|
2588
|
+
</clause>
|
2589
|
+
<definitions id='_' obligation='normative'>
|
2590
|
+
<title>Symbols and abbreviated terms</title>
|
2591
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2592
|
+
<title>General</title>
|
2593
|
+
</clause>
|
2594
|
+
<definitions id='_' type='symbols' obligation='normative'>
|
2595
|
+
<title>Symboles</title>
|
2596
|
+
</definitions>
|
2597
|
+
</definitions>
|
2598
|
+
</clause>
|
2599
|
+
<definitions id='_' type='abbreviated_terms' obligation='normative'>
|
2600
|
+
<title>Termes abrégés</title>
|
2601
|
+
</definitions>
|
2602
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2603
|
+
<title>Clause 4</title>
|
2604
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2605
|
+
<title>Introduction</title>
|
2606
|
+
</clause>
|
2607
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2608
|
+
<title>Clause 4.2</title>
|
2609
|
+
</clause>
|
2610
|
+
</clause>
|
2611
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2612
|
+
<title>Terms and Definitions</title>
|
2613
|
+
</clause>
|
2614
|
+
</sections>
|
2615
|
+
<annex id='_' inline-header='false' obligation='normative'>
|
2616
|
+
<title>Annex</title>
|
2617
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2618
|
+
<title>Annex A.1</title>
|
2619
|
+
</clause>
|
2620
|
+
</annex>
|
2621
|
+
<bibliography>
|
2622
|
+
<references id='_' normative='true' obligation='informative'>
|
2623
|
+
<title>Références normatives</title>
|
2624
|
+
<p id='_'>Le présent document ne contient aucune référence normative.</p>
|
2625
|
+
</references>
|
2626
|
+
<references id='_' normative='false' obligation='informative'>
|
2627
|
+
<title>Bibliographie</title>
|
2628
|
+
</references>
|
2629
|
+
<references id='_' normative='false' obligation='informative'>
|
2630
|
+
<title>Bibliography</title>
|
2631
|
+
</references>
|
2632
|
+
<clause id='_' obligation='informative'>
|
2633
|
+
<title>Bibliography</title>
|
2634
|
+
<references id='_' normative='false' obligation='informative'>
|
2635
|
+
<title>Bibliography Subsection</title>
|
2636
|
+
</references>
|
2637
|
+
</clause>
|
2638
|
+
</bibliography>
|
2639
|
+
</standard-document>
|
2640
|
+
OUTPUT
|
2641
|
+
end
|
2642
|
+
|
2643
|
+
it "processes section names, Simplified Chinese" do
|
2644
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
2645
|
+
#{ASCIIDOC_BLANK_HDR.sub(/:nodoc:/, ":language: zh\n:script: Hans\n:nodoc:")}
|
2646
|
+
.Foreword
|
2647
|
+
|
2648
|
+
Text
|
2649
|
+
|
2650
|
+
[abstract]
|
2651
|
+
== Abstract
|
2652
|
+
|
2653
|
+
Text
|
2654
|
+
|
2655
|
+
[heading=introduction]
|
2656
|
+
== Introduction
|
2657
|
+
|
2658
|
+
=== Introduction Subsection
|
2659
|
+
|
2660
|
+
[heading=acknowledgements]
|
2661
|
+
== Acknowledgements
|
2662
|
+
|
2663
|
+
[.preface]
|
2664
|
+
== Dedication
|
2665
|
+
|
2666
|
+
[heading=scope]
|
2667
|
+
== Scope
|
2668
|
+
|
2669
|
+
Text
|
2670
|
+
|
2671
|
+
[bibliography,heading=normative references]
|
2672
|
+
== Normative References
|
2673
|
+
|
2674
|
+
[bibliography,normative=true]
|
2675
|
+
== Normative References 2
|
2676
|
+
|
2677
|
+
[heading=terms and definitions]
|
2678
|
+
== Terms and Definitions
|
2679
|
+
|
2680
|
+
=== Term1
|
2681
|
+
|
2682
|
+
[heading="terms and definitions"]
|
2683
|
+
== Terms, Definitions, Symbols and Abbreviated Terms
|
2684
|
+
|
2685
|
+
[.nonterm]
|
2686
|
+
=== Introduction
|
2687
|
+
|
2688
|
+
==== Intro 1
|
2689
|
+
|
2690
|
+
=== Intro 2
|
2691
|
+
|
2692
|
+
[.nonterm]
|
2693
|
+
==== Intro 3
|
2694
|
+
|
2695
|
+
=== Intro 4
|
2696
|
+
|
2697
|
+
==== Intro 5
|
2698
|
+
|
2699
|
+
===== Term1
|
2700
|
+
|
2701
|
+
=== Normal Terms
|
2702
|
+
|
2703
|
+
==== Term2
|
2704
|
+
|
2705
|
+
[heading=symbols and abbreviated terms]
|
2706
|
+
=== Symbols and Abbreviated Terms
|
2707
|
+
|
2708
|
+
[.nonterm]
|
2709
|
+
==== General
|
2710
|
+
|
2711
|
+
[heading=symbols]
|
2712
|
+
==== Symbols 1
|
2713
|
+
|
2714
|
+
[heading=abbreviated terms]
|
2715
|
+
== Abbreviated Terms
|
2716
|
+
|
2717
|
+
== Clause 4
|
2718
|
+
|
2719
|
+
=== Introduction
|
2720
|
+
|
2721
|
+
=== Clause 4.2
|
2722
|
+
|
2723
|
+
== Terms and Definitions
|
2724
|
+
|
2725
|
+
[appendix]
|
2726
|
+
== Annex
|
2727
|
+
|
2728
|
+
=== Annex A.1
|
2729
|
+
|
2730
|
+
[bibliography,heading=bibliography]
|
2731
|
+
== Bibliography
|
2732
|
+
|
2733
|
+
[bibliography,normative=false]
|
2734
|
+
== Bibliography 2
|
2735
|
+
|
2736
|
+
=== Bibliography Subsection
|
2737
|
+
|
2738
|
+
INPUT
|
2739
|
+
<standard-document xmlns='https://www.metanorma.org/ns/standoc'>
|
2740
|
+
<bibdata type='standard'>
|
2741
|
+
<title language='en' format='text/plain'>Document title</title>
|
2742
|
+
<language>zh</language>
|
2743
|
+
<script>Hans</script>
|
2744
|
+
<abstract>
|
2745
|
+
<p>Text</p>
|
2746
|
+
</abstract>
|
2747
|
+
<status>
|
2748
|
+
<stage>published</stage>
|
2749
|
+
</status>
|
2750
|
+
<copyright>
|
2751
|
+
<from>2020</from>
|
2752
|
+
</copyright>
|
2753
|
+
<ext>
|
2754
|
+
<doctype>article</doctype>
|
2755
|
+
</ext>
|
2756
|
+
</bibdata>
|
2757
|
+
<preface>
|
2758
|
+
<abstract id='_'>
|
2759
|
+
<title>摘要</title>
|
2760
|
+
<p id='_'>Text</p>
|
2761
|
+
</abstract>
|
2762
|
+
<foreword id='_' obligation='informative'>
|
2763
|
+
<title>前言</title>
|
2764
|
+
<p id='_'>Text</p>
|
2765
|
+
</foreword>
|
2766
|
+
<introduction id='_' obligation='informative'>
|
2767
|
+
<title>引言</title>
|
2768
|
+
<clause id='_' inline-header='false' obligation='informative'>
|
2769
|
+
<title>Introduction Subsection</title>
|
2770
|
+
</clause>
|
2771
|
+
</introduction>
|
2772
|
+
<clause id='_' inline-header='false' obligation='informative'>
|
2773
|
+
<title>Dedication</title>
|
2774
|
+
</clause>
|
2775
|
+
<acknowledgements id='_' obligation='informative'>
|
2776
|
+
<title>致謝</title>
|
2777
|
+
</acknowledgements>
|
2778
|
+
</preface>
|
2779
|
+
<sections>
|
2780
|
+
<clause id='_' type='scope' inline-header='false' obligation='normative'>
|
2781
|
+
<title>范围</title>
|
2782
|
+
<p id='_'>Text</p>
|
2783
|
+
</clause>
|
2784
|
+
<terms id='_' obligation='normative'>
|
2785
|
+
<title>术语和定义</title>
|
2786
|
+
<p id='_'>下列术语和定义适用于本文件。</p>
|
2787
|
+
<term id='_'>
|
2788
|
+
<preferred>Term1</preferred>
|
2789
|
+
</term>
|
2790
|
+
</terms>
|
2791
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2792
|
+
<title>Terms, Definitions, Symbols and Abbreviated Terms</title>
|
2793
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2794
|
+
<title>Introduction</title>
|
2795
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2796
|
+
<title>Intro 1</title>
|
2797
|
+
</clause>
|
2798
|
+
</clause>
|
2799
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2800
|
+
<title>Intro 2</title>
|
2801
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2802
|
+
<title>Intro 3</title>
|
2803
|
+
</clause>
|
2804
|
+
</clause>
|
2805
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2806
|
+
<title>Intro 4</title>
|
2807
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2808
|
+
<title>Intro 5</title>
|
2809
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2810
|
+
<title>Term1</title>
|
2811
|
+
</clause>
|
2812
|
+
</clause>
|
2813
|
+
</clause>
|
2814
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2815
|
+
<title>Normal Terms</title>
|
2816
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2817
|
+
<title>Term2</title>
|
2818
|
+
</clause>
|
2819
|
+
</clause>
|
2820
|
+
<definitions id='_' obligation='normative'>
|
2821
|
+
<title>符号、代号和缩略语</title>
|
2822
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2823
|
+
<title>General</title>
|
2824
|
+
</clause>
|
2825
|
+
<definitions id='_' type='symbols' obligation='normative'>
|
2826
|
+
<title>符号</title>
|
2827
|
+
</definitions>
|
2828
|
+
</definitions>
|
2829
|
+
</clause>
|
2830
|
+
<definitions id='_' type='abbreviated_terms' obligation='normative'>
|
2831
|
+
<title>代号和缩略语</title>
|
2832
|
+
</definitions>
|
2833
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2834
|
+
<title>Clause 4</title>
|
2835
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2836
|
+
<title>Introduction</title>
|
2837
|
+
</clause>
|
2838
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2839
|
+
<title>Clause 4.2</title>
|
2840
|
+
</clause>
|
2841
|
+
</clause>
|
2842
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2843
|
+
<title>Terms and Definitions</title>
|
2844
|
+
</clause>
|
2845
|
+
</sections>
|
2846
|
+
<annex id='_' inline-header='false' obligation='normative'>
|
2847
|
+
<title>Annex</title>
|
2848
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
2849
|
+
<title>Annex A.1</title>
|
2850
|
+
</clause>
|
2851
|
+
</annex>
|
2852
|
+
<bibliography>
|
2853
|
+
<references id='_' normative='true' obligation='informative'>
|
2854
|
+
<title>规范性引用文件</title>
|
2855
|
+
<p id='_'>本文件并没有规范性引用文件。</p>
|
2856
|
+
</references>
|
2857
|
+
<references id='_' normative='false' obligation='informative'>
|
2858
|
+
<title>参考文献</title>
|
2859
|
+
</references>
|
2860
|
+
<references id='_' normative='false' obligation='informative'>
|
2861
|
+
<title>Bibliography</title>
|
2862
|
+
</references>
|
2863
|
+
<clause id='_' obligation='informative'>
|
2864
|
+
<title>Bibliography</title>
|
2865
|
+
<references id='_' normative='false' obligation='informative'>
|
2866
|
+
<title>Bibliography Subsection</title>
|
2867
|
+
</references>
|
2868
|
+
</clause>
|
2869
|
+
</bibliography>
|
2870
|
+
</standard-document>
|
2871
|
+
OUTPUT
|
2872
|
+
end
|
2873
|
+
|
2874
|
+
it "processes section names, internationalisation file" do
|
2875
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
2876
|
+
#{ASCIIDOC_BLANK_HDR.sub(/:nodoc:/, ":i18nyaml: spec/assets/i18n.yaml")}
|
2877
|
+
.Foreword
|
2878
|
+
|
2879
|
+
Text
|
2880
|
+
|
2881
|
+
[abstract]
|
2882
|
+
== Abstract
|
2883
|
+
|
2884
|
+
Text
|
2885
|
+
|
2886
|
+
[heading=introduction]
|
2887
|
+
== Introduction
|
2888
|
+
|
2889
|
+
=== Introduction Subsection
|
2890
|
+
|
2891
|
+
[heading=acknowledgements]
|
2892
|
+
== Acknowledgements
|
2893
|
+
|
2894
|
+
[.preface]
|
2895
|
+
== Dedication
|
2896
|
+
|
2897
|
+
[heading=scope]
|
2898
|
+
== Scope
|
2899
|
+
|
2900
|
+
Text
|
2901
|
+
|
2902
|
+
[bibliography,heading=normative references]
|
2903
|
+
== Normative References
|
2904
|
+
|
2905
|
+
[bibliography,normative=true]
|
2906
|
+
== Normative References 2
|
2907
|
+
|
2908
|
+
[heading=terms and definitions]
|
2909
|
+
== Terms and Definitions
|
2910
|
+
|
2911
|
+
=== Term1
|
2912
|
+
|
2913
|
+
[heading="terms and definitions"]
|
2914
|
+
== Terms, Definitions, Symbols and Abbreviated Terms
|
2915
|
+
|
2916
|
+
[.nonterm]
|
2917
|
+
=== Introduction
|
2918
|
+
|
2919
|
+
==== Intro 1
|
2920
|
+
|
2921
|
+
=== Intro 2
|
2922
|
+
|
2923
|
+
[.nonterm]
|
2924
|
+
==== Intro 3
|
2925
|
+
|
2926
|
+
=== Intro 4
|
2927
|
+
|
2928
|
+
==== Intro 5
|
2929
|
+
|
2930
|
+
===== Term1
|
2931
|
+
|
2932
|
+
=== Normal Terms
|
2933
|
+
|
2934
|
+
==== Term2
|
2935
|
+
|
2936
|
+
[heading=symbols and abbreviated terms]
|
2937
|
+
=== Symbols and Abbreviated Terms
|
2938
|
+
|
2939
|
+
[.nonterm]
|
2940
|
+
==== General
|
2941
|
+
|
2942
|
+
[heading=symbols]
|
2943
|
+
==== Symbols 1
|
2944
|
+
|
2945
|
+
[heading=abbreviated terms]
|
2946
|
+
== Abbreviated Terms
|
2947
|
+
|
2948
|
+
== Clause 4
|
2949
|
+
|
2950
|
+
=== Introduction
|
2951
|
+
|
2952
|
+
=== Clause 4.2
|
2953
|
+
|
2954
|
+
== Terms and Definitions
|
2955
|
+
|
2956
|
+
[appendix]
|
2957
|
+
== Annex
|
2958
|
+
|
2959
|
+
=== Annex A.1
|
2960
|
+
|
2961
|
+
[bibliography,heading=bibliography]
|
2962
|
+
== Bibliography
|
2963
|
+
|
2964
|
+
[bibliography,normative=false]
|
2965
|
+
== Bibliography 2
|
2966
|
+
|
2967
|
+
=== Bibliography Subsection
|
2968
|
+
|
2969
|
+
INPUT
|
2970
|
+
<standard-document xmlns='https://www.metanorma.org/ns/standoc'>
|
2971
|
+
<bibdata type='standard'>
|
2972
|
+
<title language='en' format='text/plain'>Document title</title>
|
2973
|
+
<language>en</language>
|
2974
|
+
<script>Latn</script>
|
2975
|
+
<abstract>
|
2976
|
+
<p>Text</p>
|
2977
|
+
</abstract>
|
2978
|
+
<status>
|
2979
|
+
<stage>published</stage>
|
2980
|
+
</status>
|
2981
|
+
<copyright>
|
2982
|
+
<from>2020</from>
|
2983
|
+
</copyright>
|
2984
|
+
<ext>
|
2985
|
+
<doctype>article</doctype>
|
2986
|
+
</ext>
|
2987
|
+
</bibdata>
|
2988
|
+
<preface>
|
2989
|
+
<abstract id='_'>
|
2990
|
+
<title>Abstract</title>
|
2991
|
+
<p id='_'>Text</p>
|
2992
|
+
</abstract>
|
2993
|
+
<foreword id='_' obligation='informative'>
|
2994
|
+
<title>Antaŭparolo</title>
|
2995
|
+
<p id='_'>Text</p>
|
2996
|
+
</foreword>
|
2997
|
+
<introduction id='_' obligation='informative'>
|
2998
|
+
<title>Enkonduko</title>
|
2999
|
+
<clause id='_' inline-header='false' obligation='informative'>
|
3000
|
+
<title>Introduction Subsection</title>
|
3001
|
+
</clause>
|
3002
|
+
</introduction>
|
3003
|
+
<clause id='_' inline-header='false' obligation='informative'>
|
3004
|
+
<title>Dedication</title>
|
3005
|
+
</clause>
|
3006
|
+
<acknowledgements id='_' obligation='informative'>
|
3007
|
+
<title>Acknowledgements</title>
|
3008
|
+
</acknowledgements>
|
3009
|
+
</preface>
|
3010
|
+
<sections>
|
3011
|
+
<clause id='_' type='scope' inline-header='false' obligation='normative'>
|
3012
|
+
<title>Amplekso</title>
|
3013
|
+
<p id='_'>Text</p>
|
3014
|
+
</clause>
|
3015
|
+
<terms id='_' obligation='normative'>
|
3016
|
+
<title>Terms and definitions</title>
|
3017
|
+
<p id='_'>For the purposes of this document, the following terms and definitions apply.</p>
|
3018
|
+
<term id='_'>
|
3019
|
+
<preferred>Term1</preferred>
|
3020
|
+
</term>
|
3021
|
+
</terms>
|
3022
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
3023
|
+
<title>Terms, Definitions, Symbols and Abbreviated Terms</title>
|
3024
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
3025
|
+
<title>Introduction</title>
|
3026
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
3027
|
+
<title>Intro 1</title>
|
3028
|
+
</clause>
|
3029
|
+
</clause>
|
3030
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
3031
|
+
<title>Intro 2</title>
|
3032
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
3033
|
+
<title>Intro 3</title>
|
3034
|
+
</clause>
|
3035
|
+
</clause>
|
3036
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
3037
|
+
<title>Intro 4</title>
|
3038
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
3039
|
+
<title>Intro 5</title>
|
3040
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
3041
|
+
<title>Term1</title>
|
3042
|
+
</clause>
|
3043
|
+
</clause>
|
3044
|
+
</clause>
|
3045
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
3046
|
+
<title>Normal Terms</title>
|
3047
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
3048
|
+
<title>Term2</title>
|
3049
|
+
</clause>
|
3050
|
+
</clause>
|
3051
|
+
<definitions id='_' obligation='normative'>
|
3052
|
+
<title>Symbols and abbreviated terms</title>
|
3053
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
3054
|
+
<title>General</title>
|
3055
|
+
</clause>
|
3056
|
+
<definitions id='_' type='symbols' obligation='normative'>
|
3057
|
+
<title>Simboloj kai mallongigitaj terminoj</title>
|
3058
|
+
</definitions>
|
3059
|
+
</definitions>
|
3060
|
+
</clause>
|
3061
|
+
<definitions id='_' type='abbreviated_terms' obligation='normative'>
|
3062
|
+
<title>Abbreviated terms</title>
|
3063
|
+
</definitions>
|
3064
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
3065
|
+
<title>Clause 4</title>
|
3066
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
3067
|
+
<title>Introduction</title>
|
3068
|
+
</clause>
|
3069
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
3070
|
+
<title>Clause 4.2</title>
|
3071
|
+
</clause>
|
3072
|
+
</clause>
|
3073
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
3074
|
+
<title>Terms and Definitions</title>
|
3075
|
+
</clause>
|
3076
|
+
</sections>
|
3077
|
+
<annex id='_' inline-header='false' obligation='normative'>
|
3078
|
+
<title>Annex</title>
|
3079
|
+
<clause id='_' inline-header='false' obligation='normative'>
|
3080
|
+
<title>Annex A.1</title>
|
3081
|
+
</clause>
|
3082
|
+
</annex>
|
3083
|
+
<bibliography>
|
3084
|
+
<references id='_' normative='true' obligation='informative'>
|
3085
|
+
<title>Normaj citaĵoj</title>
|
3086
|
+
<p id='_'>There are no normative references in this document.</p>
|
3087
|
+
</references>
|
3088
|
+
<references id='_' normative='false' obligation='informative'>
|
3089
|
+
<title>Bibliografio</title>
|
3090
|
+
</references>
|
3091
|
+
<references id='_' normative='false' obligation='informative'>
|
3092
|
+
<title>Bibliography</title>
|
3093
|
+
</references>
|
3094
|
+
<clause id='_' obligation='informative'>
|
3095
|
+
<title>Bibliography</title>
|
3096
|
+
<references id='_' normative='false' obligation='informative'>
|
3097
|
+
<title>Bibliography Subsection</title>
|
3098
|
+
</references>
|
3099
|
+
</clause>
|
3100
|
+
</bibliography>
|
3101
|
+
</standard-document>
|
3102
|
+
OUTPUT
|
3103
|
+
end
|
3104
|
+
|
3105
|
+
|
3106
|
+
private
|
3107
|
+
|
3108
|
+
def mock_iecbib_get_iec60050_103_01
|
3109
|
+
expect(Iecbib::IecBibliography).to receive(:get).with("IEC 60050-103", nil, {keep_year: true}) do
|
3110
|
+
IsoBibItem::XMLParser.from_xml(<<~"OUTPUT")
|
3111
|
+
<bibitem type="standard" id="IEC60050-103">
|
3112
|
+
<title format="text/plain" language="en" script="Latn">International Electrotechnical Vocabulary</title>
|
3113
|
+
<docidentifier>IEC 60050-103:2009</docidentifier>
|
3114
|
+
<date type="published">
|
3115
|
+
<on>2009</on>
|
3116
|
+
</date>
|
3117
|
+
<contributor>
|
3118
|
+
<role type="publisher"/>
|
3119
|
+
<organization>
|
3120
|
+
<name>International Electrotechnical Commission</name>
|
3121
|
+
<abbreviation>IEC</abbreviation>
|
3122
|
+
<uri>www.iec.ch</uri>
|
3123
|
+
</organization>
|
3124
|
+
</contributor>
|
3125
|
+
<language>en</language>
|
3126
|
+
<language>fr</language>
|
3127
|
+
<script>Latn</script>
|
3128
|
+
<status>
|
3129
|
+
<stage>60</stage>
|
3130
|
+
</status>
|
3131
|
+
<copyright>
|
3132
|
+
<from>2018</from>
|
3133
|
+
<owner>
|
3134
|
+
<organization>
|
3135
|
+
<name>International Electrotechnical Commission</name>
|
3136
|
+
<abbreviation>IEC</abbreviation>
|
3137
|
+
<uri>www.iec.ch</uri>
|
3138
|
+
</organization>
|
3139
|
+
</owner>
|
3140
|
+
</copyright>
|
3141
|
+
</bibitem>
|
3142
|
+
OUTPUT
|
3143
|
+
end
|
3144
|
+
end
|
3145
|
+
|
3146
|
+
def mock_iecbib_get_iec60050_102_01
|
3147
|
+
expect(Iecbib::IecBibliography).to receive(:get).with("IEC 60050-102", nil, {keep_year: true}) do
|
3148
|
+
IsoBibItem::XMLParser.from_xml(<<~"OUTPUT")
|
3149
|
+
<bibitem type="standard" id="IEC60050-102">
|
3150
|
+
<title format="text/plain" language="en" script="Latn">International Electrotechnical Vocabulary</title>
|
3151
|
+
<docidentifier>IEC 60050-102:2007</docidentifier>
|
3152
|
+
<date type="published">
|
3153
|
+
<on>2007</on>
|
3154
|
+
</date>
|
3155
|
+
<contributor>
|
3156
|
+
<role type="publisher"/>
|
3157
|
+
<organization>
|
3158
|
+
<name>International Electrotechnical Commission</name>
|
3159
|
+
<abbreviation>IEC</abbreviation>
|
3160
|
+
<uri>www.iec.ch</uri>
|
3161
|
+
</organization>
|
3162
|
+
</contributor>
|
3163
|
+
<language>en</language>
|
3164
|
+
<language>fr</language>
|
3165
|
+
<script>Latn</script>
|
3166
|
+
<status>
|
3167
|
+
<stage>60</stage>
|
3168
|
+
</status>
|
3169
|
+
<copyright>
|
3170
|
+
<from>2018</from>
|
3171
|
+
<owner>
|
3172
|
+
<organization>
|
3173
|
+
<name>International Electrotechnical Commission</name>
|
3174
|
+
<abbreviation>IEC</abbreviation>
|
3175
|
+
<uri>www.iec.ch</uri>
|
3176
|
+
</organization>
|
3177
|
+
</owner>
|
3178
|
+
</copyright>
|
3179
|
+
</bibitem>
|
3180
|
+
OUTPUT
|
3181
|
+
end
|
3182
|
+
end
|
3183
|
+
|
3184
|
+
def mock_iev
|
3185
|
+
expect(Iecbib::IecBibliography).to receive(:get).with("IEV", nil, {}) do
|
3186
|
+
IsoBibItem::XMLParser.from_xml(<<~"OUTPUT")
|
3187
|
+
<bibitem type="standard" id="IEC60050:2001">
|
3188
|
+
<title format="text/plain" language="en" script="Latn">International Electrotechnical Vocabulary</title>
|
3189
|
+
<docidentifier>IEC 60050:2011</docidentifier>
|
3190
|
+
<date type="published">
|
3191
|
+
<on>2007</on>
|
3192
|
+
</date>
|
3193
|
+
<contributor>
|
3194
|
+
<role type="publisher"/>
|
3195
|
+
<organization>
|
3196
|
+
<name>International Electrotechnical Commission</name>
|
3197
|
+
<abbreviation>IEC</abbreviation>
|
3198
|
+
<uri>www.iec.ch</uri>
|
3199
|
+
</organization>
|
3200
|
+
</contributor>
|
3201
|
+
<language>en</language>
|
3202
|
+
<language>fr</language>
|
3203
|
+
<script>Latn</script>
|
3204
|
+
<status>
|
3205
|
+
<stage>60</stage>
|
3206
|
+
</status>
|
3207
|
+
<copyright>
|
3208
|
+
<from>2018</from>
|
3209
|
+
<owner>
|
3210
|
+
<organization>
|
3211
|
+
<name>International Electrotechnical Commission</name>
|
3212
|
+
<abbreviation>IEC</abbreviation>
|
3213
|
+
<uri>www.iec.ch</uri>
|
3214
|
+
</organization>
|
3215
|
+
</owner>
|
3216
|
+
</copyright>
|
3217
|
+
</bibitem>
|
3218
|
+
OUTPUT
|
3219
|
+
end.at_least :once
|
3220
|
+
end
|
3221
|
+
|
3222
|
+
|
3223
|
+
|
3224
|
+
end
|