Sha256: 78815e8c94a9d2d4499767afbecc6097641905920138bab6c303e3570a3a0f01
Contents?: true
Size: 934 Bytes
Versions: 10
Compression:
Stored size: 934 Bytes
Contents
require "isodoc" require "fileutils" module IsoDoc module Generic module BaseConvert 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]") d["id"] = h2["id"] d.children.first.previous = "<strong>#{h2.remove.children.to_xml}</strong> " 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
10 entries across 10 versions & 1 rubygems