Sha256: 9c949e6983bc87d19ce43aab00c1211d2ac58dba431ebd6eacbd282be4b955da
Contents?: true
Size: 1.84 KB
Versions: 1
Compression:
Stored size: 1.84 KB
Contents
require_relative "presentation_function/block" require_relative "presentation_function/terms" require_relative "presentation_function/inline" require_relative "presentation_function/math" require_relative "presentation_function/section" require_relative "presentation_function/bibdata" 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 conversions(docxml) docxml.root["type"] = "presentation" docxml.to_xml.gsub(/</, "<").gsub(/>/, ">") end def conversions(docxml) bibdata docxml @xrefs.parse docxml section docxml block docxml terms docxml inline docxml end def section(docxml) clause docxml annex docxml term docxml references docxml index docxml clausetitle docxml toc docxml display_order docxml end def block(docxml) amend docxml table docxml figure docxml sourcecode docxml formula docxml example docxml note docxml permission docxml requirement docxml recommendation docxml end def inline(docxml) xref docxml eref docxml origin docxml quotesource docxml mathml docxml variant docxml end def terms(docxml) termexample docxml termnote docxml termdefinition docxml designation docxml concept docxml related docxml end def postprocess(result, filename, _dir) toXML(result, filename) @files_to_delete.each { |f| FileUtils.rm_rf f } end def toXML(result, filename) File.open(filename, "w:UTF-8") { |f| f.write(result) } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
isodoc-1.8.2.2 | lib/isodoc/presentation_xml_convert.rb |