Sha256: 9eb6d41d7ff0cf265745be27c42b6b4b2ae57d55165efa74581f2d5e2dee9e29

Contents?: true

Size: 947 Bytes

Versions: 22

Compression:

Stored size: 947 Bytes

Contents

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

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
          preface_block docxml, div2
          abstract docxml, div2
          foreword docxml, div2
          executivesummary docxml, div2
          introduction docxml, div2
          preface docxml, div2
          acknowledgements docxml, div2
          div2.p { |p| p << "&#xa0;" } # placeholder
        end
        section_break(body)
      end

      include BaseConvert
      include Init
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
metanorma-ribose-2.2.7 lib/isodoc/ribose/word_convert.rb
metanorma-ribose-2.2.6 lib/isodoc/ribose/word_convert.rb
metanorma-ribose-2.2.5 lib/isodoc/ribose/word_convert.rb
metanorma-ribose-2.2.4 lib/isodoc/ribose/word_convert.rb
metanorma-ribose-2.2.3 lib/isodoc/ribose/word_convert.rb
metanorma-ribose-2.2.2 lib/isodoc/ribose/word_convert.rb
metanorma-ribose-2.2.1 lib/isodoc/ribose/word_convert.rb
metanorma-ribose-2.2.0 lib/isodoc/ribose/word_convert.rb
metanorma-ribose-2.1.13 lib/isodoc/ribose/word_convert.rb
metanorma-ribose-2.1.12 lib/isodoc/ribose/word_convert.rb
metanorma-ribose-2.1.11 lib/isodoc/ribose/word_convert.rb
metanorma-ribose-2.1.10 lib/isodoc/ribose/word_convert.rb
metanorma-ribose-2.1.9 lib/isodoc/ribose/word_convert.rb
metanorma-ribose-2.1.8.1 lib/isodoc/ribose/word_convert.rb
metanorma-ribose-2.1.8 lib/isodoc/ribose/word_convert.rb
metanorma-ribose-2.1.7 lib/isodoc/ribose/word_convert.rb
metanorma-ribose-2.1.6 lib/isodoc/ribose/word_convert.rb
metanorma-ribose-2.1.5 lib/isodoc/ribose/word_convert.rb
metanorma-ribose-2.1.4 lib/isodoc/ribose/word_convert.rb
metanorma-ribose-2.1.3 lib/isodoc/ribose/word_convert.rb