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, 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
#convert1(docxml, filename, dir) ⇒ Object
24 25 26 27 28 |
# File 'lib/isodoc/iec/init.rb', line 24 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
30 31 32 |
# File 'lib/isodoc/iec/init.rb', line 30 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 |