Sha256: 6604ca5c98132312c9fbb48d2db63af23e48375053bbdd94ba8ea0a5961508f3

Contents?: true

Size: 1.05 KB

Versions: 17

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("#{@i18n.deprecated}: ")
        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

17 entries across 17 versions & 2 rubygems

Version Path
metanorma-ietf-2.3.4 lib/isodoc/ietf/terms.rb
metanorma-ietf-2.3.3 lib/isodoc/ietf/terms.rb
metanorma-ietf-2.3.2 lib/isodoc/ietf/terms.rb
metanorma-ietf-2.3.1 lib/isodoc/ietf/terms.rb
metanorma-ietf-2.3.0 lib/isodoc/ietf/terms.rb
metanorma-ietf-2.2.10 lib/isodoc/ietf/terms.rb
metanorma-ietf-2.2.9 lib/isodoc/ietf/terms.rb
metanorma-ietf-2.2.8 lib/isodoc/ietf/terms.rb
metanorma-ietf-2.2.7 lib/isodoc/ietf/terms.rb
metanorma-ietf-2.2.6 lib/isodoc/ietf/terms.rb
metanorma-ietf-2.2.5 lib/isodoc/ietf/terms.rb
metanorma-ietf-2.2.4 lib/isodoc/ietf/terms.rb
metanorma-ietf-2.2.3 lib/isodoc/ietf/terms.rb
metanorma-ietf-2.2.2 lib/isodoc/ietf/terms.rb
metanorma-ietf-2.2.1 lib/isodoc/ietf/terms.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/isodoc/ietf/terms.rb
metanorma-ietf-2.2.0 lib/isodoc/ietf/terms.rb