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