Sha256: 0593d11d2e3348d84e707c17cbd0418524ab1a41295d9acbd090b9a4c413935b

Contents?: true

Size: 1.05 KB

Versions: 6

Compression:

Stored size: 1.05 KB

Contents

module IsoDoc::Ietf
  class RfcConvert < ::IsoDoc::Convert

    def definition_parse(node, out)
      node.children.each { |n| parse(n, out) }
    end

    def modification_parse(node, out)
      para = node.at(ns("./p"))
      out << " -- "
      para.children.each { |n| parse(n, out) }
    end

    def deprecated_term_parse(node, out)
      out.t do |p|
        p << l10n("#{@deprecated_lbl}: ")
        node.children.each { |c| parse(c, p) }
      end
    end

    def admitted_term_parse(node, out)
      out.t do |p|
        node.children.each { |c| parse(c, p) }
      end
    end

    def term_parse(node, out)
      out.name do |p|
        node.children.each { |n| parse(n, p) }
      end
    end

    def termnote_parse(node, out)
      note_parse(node, out)
    end

    def termref_parse(node, out)
      out.t do |p|
        p << "SOURCE: "
        node.children.each { |n| parse(n, p) }
      end
    end

    def termdef_parse(node, out)
      set_termdomain("")
      clause_parse(node, out)
    end

    def termdocsource_parse(_node, _out)
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/metanorma-ietf-2.1.3/lib/isodoc/ietf/terms.rb
metanorma-cli-1.3.3.1 gems/ruby/2.6.0/gems/metanorma-ietf-2.1.3/lib/isodoc/ietf/terms.rb
metanorma-ietf-2.1.3 lib/isodoc/ietf/terms.rb
metanorma-ietf-2.1.2 lib/isodoc/ietf/terms.rb
metanorma-ietf-2.1.1 lib/isodoc/ietf/terms.rb
metanorma-ietf-2.1.0 lib/isodoc/ietf/terms.rb