Sha256: 8724208718f8009dcf80d6905cee131abaac75a2e933c0df5471791faeaefbe5

Contents?: true

Size: 674 Bytes

Versions: 8

Compression:

Stored size: 674 Bytes

Contents

require_relative "init"
require "isodoc"
require "metanorma-generic"

module IsoDoc
  module Ribose
    class PresentationXMLConvert < IsoDoc::Generic::PresentationXMLConvert
      def annex1(elem)
        lbl = @xrefs.anchor(elem["id"], :label)
        prefix_name(elem, "<br/><br/>", lbl, "title")
      end

      def termsource1(elem)
        mod = elem.at(ns("./modification")) and
          termsource_modification(mod)
        elem.children = l10n("<strong>#{@i18n.source}:</strong> "\
                             "#{to_xml(elem.children).strip}")
        elem&.next_element&.name == "termsource" and elem.next = "; "
      end

      include Init
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
metanorma-ribose-2.2.7 lib/isodoc/ribose/presentation_xml_convert.rb
metanorma-ribose-2.2.6 lib/isodoc/ribose/presentation_xml_convert.rb
metanorma-ribose-2.2.5 lib/isodoc/ribose/presentation_xml_convert.rb
metanorma-ribose-2.2.4 lib/isodoc/ribose/presentation_xml_convert.rb
metanorma-ribose-2.2.3 lib/isodoc/ribose/presentation_xml_convert.rb
metanorma-ribose-2.2.2 lib/isodoc/ribose/presentation_xml_convert.rb
metanorma-ribose-2.2.1 lib/isodoc/ribose/presentation_xml_convert.rb
metanorma-ribose-2.2.0 lib/isodoc/ribose/presentation_xml_convert.rb