Sha256: ce176898b0a85bbb201f1d639427ec65ced8c67cb5ccea8f110db01ab8f03120
Contents?: true
Size: 1.4 KB
Versions: 19
Compression:
Stored size: 1.4 KB
Contents
require "isodoc" require "isodoc/generic/word_convert" require_relative "init" module IsoDoc module IHO # A {Converter} implementation that generates Word output, and a document # schema encapsulation of the document for validation class WordConvert < IsoDoc::Generic::WordConvert def configuration Metanorma::IHO.configuration end def make_body1(body, _docxml) body.div class: "WordSection1" do |div1| div1.p style: "font-size:0pt;" do |p| p << " " end # placeholder end section_break(body) end # def make_body2(body, docxml) # body.div **{ class: "WordSection2" } do |div2| # boilerplate docxml, div2 # preface_block docxml, div2 # abstract docxml, div2 # foreword docxml, div2 # introduction docxml, div2 # preface docxml, div2 # acknowledgements docxml, div2 # div2.p { |p| p << " " } # placeholder # end # section_break(body) # end def authority_cleanup(docxml) super docxml.xpath("//div[@class = 'boilerplate-feedback']/p").each do |p| p["style"] = "font-size:8pt;font-family:Arial;text-align:right" end end include BaseConvert include Init end end end
Version data entries
19 entries across 19 versions & 1 rubygems