require "metanorma/processor" module Metanorma module IHO class Processor < Metanorma::Generic::Processor def configuration Metanorma::IHO.configuration end def output_formats super.merge( html: "html", doc: "doc", pdf: "pdf", ) end def version "Metanorma::IHO #{Metanorma::IHO::VERSION}" end def output(isodoc_node, inname, outname, format, options={}) options_preprocess(options) case format when :html IsoDoc::IHO::HtmlConvert.new(options).convert(inname, isodoc_node, nil, outname) when :doc IsoDoc::IHO::WordConvert.new(options).convert(inname, isodoc_node, nil, outname) when :pdf IsoDoc::IHO::PdfConvert.new(options).convert(inname, isodoc_node, nil, outname) when :presentation IsoDoc::IHO::PresentationXMLConvert.new(options).convert(inname, isodoc_node, nil, outname) else super end end end end end