Module: IsoDoc::Iec::Init
- Included in:
- HtmlConvert, PresentationXMLConvert, WordConvert
- Defined in:
- lib/isodoc/iec/init.rb
Instance Method Summary collapse
- #convert1(docxml, filename, dir) ⇒ Object
- #i18n_init(lang, script, i18nyaml = nil) ⇒ Object
- #metadata_init(lang, script, labels) ⇒ Object
- #xref_init(lang, script, klass, labels, options) ⇒ Object
Instance Method Details
#convert1(docxml, filename, dir) ⇒ Object
21 22 23 24 25 |
# File 'lib/isodoc/iec/init.rb', line 21 def convert1(docxml, filename, dir) id = docxml&.at(ns("//bibdata/docnumber"))&.text @is_iev = id == "60050" super end |
#i18n_init(lang, script, i18nyaml = nil) ⇒ Object
17 18 19 |
# File 'lib/isodoc/iec/init.rb', line 17 def i18n_init(lang, script, i18nyaml = nil) @i18n = I18n.new(lang, script, i18nyaml || @i18nyaml) end |
#metadata_init(lang, script, labels) ⇒ Object
9 10 11 |
# File 'lib/isodoc/iec/init.rb', line 9 def (lang, script, labels) @meta = Metadata.new(lang, script, labels) end |
#xref_init(lang, script, klass, labels, options) ⇒ Object
13 14 15 |
# 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 |