Sha256: 269fdcc539ceb2f5542fa0daf33fcf1bf8fef60926e45df02869daba3b3e5c80

Contents?: true

Size: 718 Bytes

Versions: 47

Compression:

Stored size: 718 Bytes

Contents

require "isodoc"
require_relative "metadata"
require_relative "xref"
require_relative "i18n"

module IsoDoc
  module Iec
    module Init
      def metadata_init(lang, script, labels)
        @meta = Metadata.new(lang, script, labels)
      end

      def xref_init(lang, script, klass, labels, options)
        @xrefs = Xref.new(lang, script, HtmlConvert.new(language: lang, script: script), labels, options)
      end

       def i18n_init(lang, script, i18nyaml = nil)
        @i18n = I18n.new(lang, script, i18nyaml || @i18nyaml)
      end

      def convert1(docxml, filename, dir)
        id = docxml&.at(ns("//bibdata/docnumber"))&.text
        @is_iev = id == "60050"
        super
      end
    end
  end
end

Version data entries

47 entries across 47 versions & 2 rubygems

Version Path
metanorma-iec-1.2.6 lib/isodoc/iec/init.rb
metanorma-iec-1.2.5 lib/isodoc/iec/init.rb
metanorma-iec-1.2.4 lib/isodoc/iec/init.rb
metanorma-iec-1.2.2 lib/isodoc/iec/init.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/isodoc/iec/init.rb
metanorma-iec-1.2.1 lib/isodoc/iec/init.rb
metanorma-iec-1.2.0 lib/isodoc/iec/init.rb