module IsoDoc::Generic::BaseConvert

Public Instance Methods

cleanup(docxml) click to toggle source
Calls superclass method
# File lib/isodoc/generic/base_convert.rb, line 7
def cleanup(docxml)
  super
  term_cleanup(docxml)
end
info(isoxml, out) click to toggle source
Calls superclass method
# File lib/isodoc/generic/base_convert.rb, line 31
def info(isoxml, out)
  @meta.ext isoxml, out
  super
end
make_body(xml, docxml) click to toggle source
# File lib/isodoc/generic/base_convert.rb, line 21
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
term_cleanup(docxml) click to toggle source
# File lib/isodoc/generic/base_convert.rb, line 12
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