Sha256: 8256f9e03ac09c7e94c38016fd47373a13439975f9f6a7eb21fd8a71ae8dfdf6
Contents?: true
Size: 1.03 KB
Versions: 5
Compression:
Stored size: 1.03 KB
Contents
require "isodoc" require "fileutils" module IsoDoc module Generic module BaseConvert def baselocation(loc) return nil if loc.nil? File.expand_path(File.join( File.dirname(self.class::_file || __FILE__), "..", "..", "..", loc)) end def cleanup(docxml) super term_cleanup(docxml) end def term_cleanup(docxml) docxml.xpath("//p[@class = 'Terms']").each do |d| h2 = d.at("./preceding-sibling::*[@class = 'TermNum'][1]") h2.add_child(" ") h2.add_child(d.remove) end docxml end def make_body(xml, docxml) body_attr = { lang: "EN-US", link: "blue", vlink: "#954F72", "xml:lang": "EN-US", class: "container" } xml.body **body_attr do |body| make_body1(body, docxml) make_body2(body, docxml) make_body3(body, docxml) end end def info(isoxml, out) @meta.ext isoxml, out super end end end end
Version data entries
5 entries across 5 versions & 2 rubygems