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