Sha256: bb92874d508dada728bc1c5834bbde8ebbf7515204cc6a4d818fba20cf3eaf5e
Contents?: true
Size: 1.04 KB
Versions: 3
Compression:
Stored size: 1.04 KB
Contents
require "isodoc" require "fileutils" module IsoDoc module Generic module BaseConvert =begin def baselocation(loc) return nil if loc.nil? File.expand_path(File.join( File.dirname(self.class::_file || __FILE__), "..", "..", "..", loc)) end =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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
metanorma-generic-1.7.2 | lib/isodoc/generic/base_convert.rb |
metanorma-generic-1.7.1 | lib/isodoc/generic/base_convert.rb |
metanorma-generic-1.7.0 | lib/isodoc/generic/base_convert.rb |