Method: IsoDoc::Convert#convert_init

Defined in:
lib/isodoc/convert.rb

#convert_init(file, input_filename, debug) ⇒ Object



110
111
112
113
114
115
116
117
118
119
120
121
# File 'lib/isodoc/convert.rb', line 110

def convert_init(file, input_filename, debug)
  docxml = Nokogiri::XML(file, &:huge)
  filename, dir = init_file(input_filename, debug)
  docxml.root.default_namespace = ""
  convert_i18n_init(docxml)
  (@lang, @script, @locale, @i18n)
  xref_init(@lang, @script, self, @i18n,
            { locale: @locale, bibrender: @bibrender })
  docxml = preprocess_xslt(docxml)
  toc_init(docxml)
  [docxml, filename, dir]
end