Sha256: 856c14e6a4766b06b2f6edb1e9bf2ab2f824386e7d0757d52719171986fd7f78
Contents?: true
Size: 1.32 KB
Versions: 1
Compression:
Stored size: 1.32 KB
Contents
require "metanorma/processor" module Metanorma module M3AAWG def self.fonts_used { html: ["Overpass", "Space Mono"], doc: ["Garamond", "Courier New"], pdf: ["Garamond", "Courier New"] } end class Processor < Metanorma::Generic::Processor def configuration Metanorma::Ribose.configuration end def initialize @short = [:m3d, :m3aawg] @input_format = :asciidoc @asciidoctor_backend = :m3aawg end def output_formats super.merge( html: "html", doc: "doc", pdf: "pdf" ) end def version "Metanorma::M3AAWG #{Metanorma::M3AAWG::VERSION}" end def output(isodoc_node, inname, outname, format, options={}) case format when :html IsoDoc::M3AAWG::HtmlConvert.new(options).convert(inname, isodoc_node, nil, outname) when :doc IsoDoc::M3AAWG::WordConvert.new(options).convert(inname, isodoc_node, nil, outname) when :pdf IsoDoc::M3AAWG::PdfConvert.new(options).convert(inname, isodoc_node, nil, outname) when :presentation IsoDoc::M3AAWG::PresentationXMLConvert.new(options).convert(inname, isodoc_node, nil, outname) else super end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
metanorma-m3aawg-1.6.0 | lib/metanorma/m3aawg/processor.rb |