Sha256: ddd11745f9d11f42e76246ddbc4d47447ab0917c636e2546f50b6b5a12a13028
Contents?: true
Size: 1.37 KB
Versions: 1
Compression:
Stored size: 1.37 KB
Contents
require "metanorma/processor" module Metanorma module Ogc def self.fonts_used { doc: ["Arial", "Courier New", "Times New Roman"], pdf: ["Arial", "Courier New", "Times New Roman"], html: ["Overpass", "Space Mono"] } end 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, inname, outname, format, options={}) case format when :html IsoDoc::Ogc::HtmlConvert.new(options).convert(inname, isodoc_node, nil, outname) when :doc IsoDoc::Ogc::WordConvert.new(options).convert(inname, isodoc_node, nil, outname) when :pdf IsoDoc::Ogc::PdfConvert.new(options).convert(inname, isodoc_node, nil, outname) when :presentation IsoDoc::Ogc::PresentationXMLConvert.new(options).convert(inname, isodoc_node, nil, outname) else super end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
metanorma-ogc-1.1.0 | lib/metanorma/ogc/processor.rb |