Sha256: 3738babd01a29bfe1596403241378e0e55ffe50f79059ac93499adb0b881ec1a

Contents?: true

Size: 917 Bytes

Versions: 25

Compression:

Stored size: 917 Bytes

Contents

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

module IsoDoc
  module Iec
    module Init
      def metadata_init(lang, script, locale, labels)
        @meta = Metadata.new(lang, script, locale, 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, locale, i18nyaml = nil)
        @i18n = I18n.new(lang, script, locale: locale,
                                       i18nyaml: i18nyaml || @i18nyaml)
      end

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

      def std_docid_semantic(text)
        text
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
metanorma-iec-2.4.2 lib/isodoc/iec/init.rb
metanorma-iec-2.4.1 lib/isodoc/iec/init.rb
metanorma-iec-2.4.0 lib/isodoc/iec/init.rb
metanorma-iec-2.3.8 lib/isodoc/iec/init.rb
metanorma-iec-2.3.6 lib/isodoc/iec/init.rb
metanorma-iec-2.3.5 lib/isodoc/iec/init.rb
metanorma-iec-2.3.4 lib/isodoc/iec/init.rb
metanorma-iec-2.3.3 lib/isodoc/iec/init.rb
metanorma-iec-2.3.2 lib/isodoc/iec/init.rb
metanorma-iec-2.3.1 lib/isodoc/iec/init.rb
metanorma-iec-2.3.0 lib/isodoc/iec/init.rb
metanorma-iec-2.2.14 lib/isodoc/iec/init.rb
metanorma-iec-2.2.13 lib/isodoc/iec/init.rb
metanorma-iec-2.2.12 lib/isodoc/iec/init.rb
metanorma-iec-2.2.11 lib/isodoc/iec/init.rb
metanorma-iec-2.2.10 lib/isodoc/iec/init.rb
metanorma-iec-2.2.9 lib/isodoc/iec/init.rb
metanorma-iec-2.2.8 lib/isodoc/iec/init.rb
metanorma-iec-2.2.7 lib/isodoc/iec/init.rb
metanorma-iec-2.2.6 lib/isodoc/iec/init.rb