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-2.0.8 lib/isodoc/iec/init.rb
metanorma-iec-2.0.7 lib/isodoc/iec/init.rb
metanorma-iec-2.0.6 lib/isodoc/iec/init.rb
metanorma-iec-2.0.5 lib/isodoc/iec/init.rb
metanorma-iec-2.0.4 lib/isodoc/iec/init.rb
metanorma-iec-2.0.3 lib/isodoc/iec/init.rb
metanorma-iec-2.0.2 lib/isodoc/iec/init.rb
metanorma-iec-2.0.1 lib/isodoc/iec/init.rb
metanorma-iec-2.0.0 lib/isodoc/iec/init.rb
metanorma-iec-1.4.5 lib/isodoc/iec/init.rb
metanorma-iec-1.4.4 lib/isodoc/iec/init.rb
metanorma-iec-1.4.3 lib/isodoc/iec/init.rb
metanorma-iec-1.4.2 lib/isodoc/iec/init.rb
metanorma-iec-1.4.1 lib/isodoc/iec/init.rb
metanorma-iec-1.4.0 lib/isodoc/iec/init.rb
metanorma-iec-1.3.13 lib/isodoc/iec/init.rb
metanorma-iec-1.3.12 lib/isodoc/iec/init.rb
metanorma-iec-1.3.11 lib/isodoc/iec/init.rb
metanorma-iec-1.3.10 lib/isodoc/iec/init.rb
metanorma-iec-1.3.9 lib/isodoc/iec/init.rb