Sha256: 42b291f1819dcba64cf05dd09a84e6e8be6ecdc0559482e039a596094f9a2e96
Contents?: true
Size: 1.05 KB
Versions: 2
Compression:
Stored size: 1.05 KB
Contents
require "metanorma/processor" module Metanorma module MPFA class Processor < Metanorma::Processor def initialize @short = [:mpfd, :mpfa] @input_format = :asciidoc @asciidoctor_backend = :mpfa end def output_formats super.merge( html: "html", doc: "doc", pdf: "pdf" ) end def version "Metanorma::MPFA #{Metanorma::MPFA::VERSION}" end def output(isodoc_node, inname, outname, format, options={}) case format when :html IsoDoc::MPFA::HtmlConvert.new(options).convert(inname, isodoc_node, nil, outname) when :doc IsoDoc::MPFA::WordConvert.new(options).convert(inname, isodoc_node, nil, outname) when :pdf IsoDoc::MPFA::PdfConvert.new(options).convert(inname, isodoc_node, nil, outname) when :presentation IsoDoc::MPFA::PresentationXMLConvert.new(options).convert(inname, isodoc_node, nil, outname) else super end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
metanorma-mpfa-0.5.9 | lib/metanorma/mpfa/processor.rb |
metanorma-mpfa-0.5.8 | lib/metanorma/mpfa/processor.rb |