Sha256: bfd50d110bb6d018818d3086c35c481fac4c2f06e954a9ef873481533084b569
Contents?: true
Size: 1.04 KB
Versions: 2
Compression:
Stored size: 1.04 KB
Contents
require "metanorma/processor" module Metanorma module NIST class Processor < Metanorma::Processor def initialize @short = :nist @input_format = :asciidoc @asciidoctor_backend = :nist end def output_formats super.merge( html: "html", doc: "doc", pdf: "pdf" ) end def version "Metanorma::NIST #{Metanorma::NIST::VERSION}" end def output(isodoc_node, inname, outname, format, options={}) case format when :html IsoDoc::NIST::HtmlConvert.new(options).convert(inname, isodoc_node, nil, outname) when :doc IsoDoc::NIST::WordConvert.new(options).convert(inname, isodoc_node, nil, outname) when :pdf IsoDoc::NIST::PdfConvert.new(options).convert(inname, isodoc_node, nil, outname) when :presentation IsoDoc::NIST::PresentationXMLConvert.new(options).convert(inname, isodoc_node, nil, outname) else super end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
metanorma-nist-1.2.9 | lib/metanorma/nist/processor.rb |
metanorma-nist-1.2.8 | lib/metanorma/nist/processor.rb |