Sha256: a0061b0c4cf052c5733cc2e755d13cd8df7150694dec2f6ea4f37cbcd3d7e2aa

Contents?: true

Size: 901 Bytes

Versions: 1

Compression:

Stored size: 901 Bytes

Contents

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

module IsoDoc
  module Jis
    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)
        p = HtmlConvert.new(language: lang, script: script)
        @xrefs = Xref.new(lang, script, p, labels, options)
      end

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

      def bibrenderer(options = {})
        ::Relaton::Render::Jis::General.new(options.merge(language: @lang,
                                                          i18nhash: @i18n.get))
      end

      def std_docid_semantic(text)
        text
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
metanorma-jis-0.4.0 lib/isodoc/jis/init.rb