Sha256: 1af886448af7eb90e021e04fab127e4e39e6720a847a3918ed79469a0d1b201f
Contents?: true
Size: 1.05 KB
Versions: 6
Compression:
Stored size: 1.05 KB
Contents
require "metanorma/processor" module Metanorma module MPFA def self.fonts_used { html: ["Titillium Web", "Space Mono"], doc: ["Arial", "Courier New"], } end 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" ) 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 :presentation IsoDoc::MPFA::PresentationXMLConvert.new(options).convert(inname, isodoc_node, nil, outname) else super end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems