lib/isodoc/mpfd/word_convert.rb in metanorma-mpfd-0.1.5 vs lib/isodoc/mpfd/word_convert.rb in metanorma-mpfd-0.1.6

- old
+ new

@@ -8,13 +8,17 @@ # schema encapsulation of the document for validation class WordConvert < IsoDoc::WordConvert def initialize(options) @libdir = File.dirname(__FILE__) super + end + + def convert1(docxml, filename, dir) FileUtils.cp html_doc_path("logo.jpg"), "logo.jpg" FileUtils.cp html_doc_path('mpfa-logo-no-text@4x.png'), "mpfa-logo-no-text@4x.png" @files_to_delete << "logo.jpg" @files_to_delete << "mpfa-logo-no-text@4x.png" + super end def default_fonts(options) { bodyfont: (options[:script] == "Hans" ? '"SimSun",serif' : '"Arial",sans-serif'),