Sha256: ad62c1eb7fadaf5c93bbcaf236a2237cc5ceca3ea4f6e6ccf40edcfd0db9ab13
Contents?: true
Size: 1010 Bytes
Versions: 6
Compression:
Stored size: 1010 Bytes
Contents
require "metanorma/processor" module Metanorma module Mpfd class Processor < Metanorma::Processor def initialize @short = :mpfd @input_format = :asciidoc @asciidoctor_backend = :mpfd end def output_formats super.merge( html: "html", doc: "doc", pdf: "pdf" ) end def version "Asciidoctor::Mpfd #{Asciidoctor::Mpfd::VERSION}" end def input_to_isodoc(file) Metanorma::Input::Asciidoc.new.process(file, @asciidoctor_backend) end def output(isodoc_node, outname, format, options={}) case format when :html IsoDoc::Mpfd::HtmlConvert.new(options).convert(outname, isodoc_node) when :doc IsoDoc::Mpfd::WordConvert.new(options).convert(outname, isodoc_node) when :pdf IsoDoc::Mpfd::PdfConvert.new(options).convert(outname, isodoc_node) else super end end end end end
Version data entries
6 entries across 6 versions & 2 rubygems