Sha256: 9b69e701c117b3cc270eba67f9b8d291f65d61e878b05699b15215828d7cbdd2

Contents?: true

Size: 867 Bytes

Versions: 3

Compression:

Stored size: 867 Bytes

Contents

require "isodoc"
require "isodoc/generic/word_convert"
require "isodoc/ribose/metadata"

module IsoDoc
  module Ribose
    # 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::Ribose.configuration
      end

      def make_body2(body, docxml)
        body.div **{ class: "WordSection2" } do |div2|
          boilerplate docxml, div2
          abstract docxml, div2
          foreword docxml, div2
          executivesummary docxml, div2
          introduction docxml, div2
          preface docxml, div2
          acknowledgements docxml, div2
          div2.p { |p| p << "&nbsp;" } # placeholder
        end
        section_break(body)
      end

      include BaseConvert
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
metanorma-ribose-1.5.3 lib/isodoc/ribose/word_convert.rb
metanorma-ribose-1.5.2 lib/isodoc/ribose/word_convert.rb
metanorma-ribose-1.5.0 lib/isodoc/ribose/word_convert.rb