Sha256: 746ac1fcaef52721964e163629aaa8087e57e8a151320cc9aab6566a11cda929
Contents?: true
Size: 1018 Bytes
Versions: 4
Compression:
Stored size: 1018 Bytes
Contents
require "metanorma/processor" module Metanorma module Vsd class Processor < Metanorma::Processor def initialize @short = :vsd @input_format = :asciidoc @asciidoctor_backend = :vsd end def output_formats super.merge( html: "html", doc: "doc", pdf: "pdf" ) end def version "Metanorma::Vsd #{Metanorma::Vsd::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::Vsd::HtmlConvert.new(options).convert(outname, isodoc_node) when :doc IsoDoc::Vsd::WordConvert.new(options).convert(outname, isodoc_node) when :pdf IsoDoc::Acme::PdfConvert.new(options).convert(outname, isodoc_node) else super end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems