Sha256: 1523b7771df4270530023d8006b1e808cb86728bf67862e7ff633cc5eb46975f

Contents?: true

Size: 790 Bytes

Versions: 12

Compression:

Stored size: 790 Bytes

Contents

module IsoDoc
  class PresentationXMLConvert < ::IsoDoc::Convert
    def initialize(options)
      @format = :presentation
      @suffix = "presentation.xml"
      super
    end

    def convert1(docxml, filename, dir)
      @xrefs.parse docxml
      info docxml, nil
      docxml.to_xml
    end

    def postprocess(result, filename, dir)
      #result = from_xhtml(cleanup(to_xhtml(textcleanup(result))))
      toXML(result, filename)
      @files_to_delete.each { |f| FileUtils.rm_rf f }
    end

    def toXML(result, filename)
      #result = (from_xhtml(html_cleanup(to_xhtml(result))))
      #result = from_xhtml(move_images(to_xhtml(result)))
      #result = html5(script_cdata(inject_script(result)))
      File.open(filename, "w:UTF-8") { |f| f.write(result) }
    end
  end
end

Version data entries

12 entries across 10 versions & 2 rubygems

Version Path
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/isodoc-1.1.3/lib/isodoc/presentation_xml_convert.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/isodoc-1.1.2/lib/isodoc/presentation_xml_convert.rb
isodoc-1.1.4 lib/isodoc/presentation_xml_convert.rb
metanorma-cli-1.3.3.1 gems/ruby/2.6.0/gems/isodoc-1.1.3/lib/isodoc/presentation_xml_convert.rb
metanorma-cli-1.3.3.1 gems/ruby/2.6.0/gems/isodoc-1.1.2/lib/isodoc/presentation_xml_convert.rb
isodoc-1.1.3 lib/isodoc/presentation_xml_convert.rb
isodoc-1.1.3.pre.alpha3 lib/isodoc/presentation_xml_convert.rb
isodoc-1.1.3.pre.alpha2 lib/isodoc/presentation_xml_convert.rb
isodoc-1.1.3.pre.alpha lib/isodoc/presentation_xml_convert.rb
isodoc-1.1.2 lib/isodoc/presentation_xml_convert.rb
isodoc-1.1.1 lib/isodoc/presentation_xml_convert.rb
isodoc-1.1.0 lib/isodoc/presentation_xml_convert.rb