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