Sha256: f1def8b07c5daad949c680a2e67edfcce5ee784072c8e90cd574b779a5beac92
Contents?: true
Size: 1.06 KB
Versions: 6
Compression:
Stored size: 1.06 KB
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) @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 bibrenderer(options = {}) ::Relaton::Render::JIS::General.new(options.merge(language: @lang, i18nhash: @i18n.get)) end def omit_docid_prefix(prefix) return true if prefix.nil? || prefix.empty? super || %w(JIS).include?(prefix) end def std_docid_semantic(text) text end end end end
Version data entries
6 entries across 6 versions & 1 rubygems