Sha256: c224dd0bdf3b844448e0f465ff07f0b3f984273874818cc023d330ce9aa5bc52

Contents?: true

Size: 643 Bytes

Versions: 10

Compression:

Stored size: 643 Bytes

Contents

require_relative "init"
require "isodoc"

module IsoDoc
  module Gb
    class PresentationXMLConvert < IsoDoc::Iso::PresentationXMLConvert
      def example1(f)
        n = @xrefs.get[f["id"]]
        lbl = (n.nil? || n[:label].nil? || n[:label].empty?) ? @i18n.example :
          l10n("#{@i18n.example} #{n[:label]}")
        prefix_name(f, "&nbsp;&mdash; ", l10n(lbl + ":"), "name")
      end

      def annex1(f)
      lbl = @xrefs.anchor(f['id'], :label)
      if t = f.at(ns("./title"))
        t.children = "#{t.children.to_xml}"
      end
      prefix_name(f, "<br/><br/>", lbl, "title")
    end

      include Init
    end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
metanorma-gb-1.5.8 lib/isodoc/gb/presentation_xml_convert.rb
metanorma-gb-1.5.7 lib/isodoc/gb/presentation_xml_convert.rb
metanorma-gb-1.5.6 lib/isodoc/gb/presentation_xml_convert.rb
metanorma-gb-1.5.5 lib/isodoc/gb/presentation_xml_convert.rb
metanorma-gb-1.5.4 lib/isodoc/gb/presentation_xml_convert.rb
metanorma-gb-1.5.3 lib/isodoc/gb/presentation_xml_convert.rb
metanorma-gb-1.5.2 lib/isodoc/gb/presentation_xml_convert.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/presentation_xml_convert.rb
metanorma-gb-1.5.1 lib/isodoc/gb/presentation_xml_convert.rb
metanorma-gb-1.5.0 lib/isodoc/gb/presentation_xml_convert.rb