Sha256: dd0bd0844c827d6be7b706da6d4bb80ed414229b49548640e3f9e494ef581365
Contents?: true
Size: 1.43 KB
Versions: 9
Compression:
Stored size: 1.43 KB
Contents
require "metanorma/processor" module Metanorma module ITU def self.fonts_used { html: ["Arial", "Courier New", "Times New Roman"], doc: ["Arial", "Courier New", "Times New Roman"], pdf: ["Arial", "Courier New", "Times New Roman"] } end class Processor < Metanorma::Processor def initialize @short = :itu @input_format = :asciidoc @asciidoctor_backend = :itu end def output_formats super.merge( html: "html", doc: "doc", pdf: "pdf" ) end def version "Metanorma::ITU #{Metanorma::ITU::VERSION}" end def output(isodoc_node, inname, outname, format, options={}) case format when :html IsoDoc::ITU::HtmlConvert.new(options).convert(inname, isodoc_node, nil, outname) when :doc IsoDoc::ITU::WordConvert.new(options).convert(inname, isodoc_node, nil, outname) when :pdf IsoDoc::ITU::PdfConvert.new(options).convert(inname, isodoc_node, nil, outname) when :presentation IsoDoc::ITU::PresentationXMLConvert.new(options).convert( inname, isodoc_node, nil, outname) else super end end end end end
Version data entries
9 entries across 9 versions & 2 rubygems