Module: IsoDoc::Iec::Init
- Included in:
- HtmlConvert, PresentationXMLConvert, WordConvert
- Defined in:
- lib/isodoc/iec/init.rb
Instance Method Summary collapse
- #bibrenderer ⇒ Object
- #convert1(docxml, filename, dir) ⇒ Object
- #i18n_init(lang, script, locale, i18nyaml = nil) ⇒ Object
- #metadata_init(lang, script, locale, labels) ⇒ Object
- #std_docid_semantic(text) ⇒ Object
- #xref_init(lang, script, _klass, labels, options) ⇒ Object
Instance Method Details
#bibrenderer ⇒ Object
24 25 26 27 |
# File 'lib/isodoc/iec/init.rb', line 24 def bibrenderer ::Relaton::Render::Iec::General.new(.merge(language: @lang, i18nhash: @i18n.get)) end |
#convert1(docxml, filename, dir) ⇒ Object
29 30 31 32 33 |
# File 'lib/isodoc/iec/init.rb', line 29 def convert1(docxml, filename, dir) id = docxml&.at(ns("//bibdata/docnumber"))&.text @is_iev = id == "60050" super end |
#i18n_init(lang, script, locale, i18nyaml = nil) ⇒ Object
19 20 21 22 |
# File 'lib/isodoc/iec/init.rb', line 19 def i18n_init(lang, script, locale, i18nyaml = nil) @i18n = I18n.new(lang, script, locale: locale, i18nyaml: i18nyaml || @i18nyaml) end |
#metadata_init(lang, script, locale, labels) ⇒ Object
9 10 11 |
# File 'lib/isodoc/iec/init.rb', line 9 def (lang, script, locale, labels) @meta = Metadata.new(lang, script, locale, labels) end |
#std_docid_semantic(text) ⇒ Object
35 36 37 |
# File 'lib/isodoc/iec/init.rb', line 35 def std_docid_semantic(text) text end |
#xref_init(lang, script, _klass, labels, options) ⇒ Object
13 14 15 16 17 |
# File 'lib/isodoc/iec/init.rb', line 13 def xref_init(lang, script, _klass, labels, ) @xrefs = Xref.new(lang, script, HtmlConvert.new(language: lang, script: script), labels, ) end |