Sha256: 4967ef3295add7a6558be3e62e74c7022bd28466f0d5a485c3d98f12810b0a7d

Contents?: true

Size: 976 Bytes

Versions: 13

Compression:

Stored size: 976 Bytes

Contents

require "relaton_gb"

module Asciidoctor
  module Gb

    # A {Converter} implementation that generates GB output, and a document
    # schema encapsulation of the document for validation
    class Converter < ISO::Converter
      def sectiontype_streamline(ret)
        case ret
        when "引言" then "introduction"
        when "范围" then "scope"
        when "规范性引用文件" then "normative references"
        when "术语和定义", "术语、定义、符号、代号和缩略语"
          "terms and definitions"
        when "符号、代号和缩略语" then "symbols and abbreviated terms"
        when "参考文献" then "bibliography"
        when "致谢" then "acknowledgements"
        else
          super
        end
      end

      def appendix_parse(attrs, xml, node)
        # UNSAFE, there is no unset_option() in asciidoctor
        node.remove_attr("appendix-option")
        clause_parse(attrs, xml, node)
      end
    end
  end
end

Version data entries

13 entries across 11 versions & 2 rubygems

Version Path
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/metanorma-gb-1.4.2/lib/asciidoctor/gb/section_input.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/metanorma-gb-1.4.3/lib/asciidoctor/gb/section_input.rb
metanorma-cli-1.3.3.1 gems/ruby/2.6.0/gems/metanorma-gb-1.4.2/lib/asciidoctor/gb/section_input.rb
metanorma-cli-1.3.3.1 gems/ruby/2.6.0/gems/metanorma-gb-1.4.3/lib/asciidoctor/gb/section_input.rb
metanorma-gb-1.4.3 lib/asciidoctor/gb/section_input.rb
metanorma-gb-1.4.2 lib/asciidoctor/gb/section_input.rb
metanorma-gb-1.4.1 lib/asciidoctor/gb/section_input.rb
metanorma-gb-1.4.0 lib/asciidoctor/gb/section_input.rb
metanorma-gb-1.3.27 lib/asciidoctor/gb/section_input.rb
metanorma-gb-1.3.26 lib/asciidoctor/gb/section_input.rb
metanorma-gb-1.3.25 lib/asciidoctor/gb/section_input.rb
metanorma-gb-1.3.24 lib/asciidoctor/gb/section_input.rb
metanorma-gb-1.3.23 lib/asciidoctor/gb/section_input.rb