Sha256: d7b65b5c7a8230c7a26515009f137ab61133b0b3b27dab8936b81fdf59fa7d92
Contents?: true
Size: 1.01 KB
Versions: 1
Compression:
Stored size: 1.01 KB
Contents
require "metanorma/processor" module Metanorma module M3d def self.fonts_used { html: ["Overpass", "Space Mono"], doc: ["Garamond", "Courier New"] } end class Processor < Metanorma::Processor def initialize @short = :m3d @input_format = :asciidoc @asciidoctor_backend = :m3d end def output_formats super.merge( html: "html", doc: "doc" ) end def version "Metanorma::M3d #{Metanorma::M3d::VERSION}" end def input_to_isodoc(file, filename) Metanorma::Input::Asciidoc.new.process(file, filename, @asciidoctor_backend) end def output(isodoc_node, outname, format, options={}) case format when :html IsoDoc::M3d::HtmlConvert.new(options).convert(outname, isodoc_node) when :doc IsoDoc::M3d::WordConvert.new(options).convert(outname, isodoc_node) else super end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
metanorma-m3d-1.3.20 | lib/metanorma/m3d/processor.rb |