Sha256: 25de5be697d91d81690a962d14cef1b2b467bc0a2dca20fdbd509424aa2dfc75
Contents?: true
Size: 1.39 KB
Versions: 34
Compression:
Stored size: 1.39 KB
Contents
require "metanorma/processor" module Metanorma module IHO class Processor < Metanorma::Generic::Processor def configuration Metanorma::IHO.configuration end def output_formats super.merge( html: "html", doc: "doc", pdf: "pdf", ) end def fonts_manifest { "Arial" => nil, "Cambria Math" => nil, "Courier New" => nil, "Fira Code" => nil, "Source Sans Pro Light" => nil, "Source Serif Pro" => nil, "Source Code Pro Light" => nil, "Source Han Sans" => nil, "Source Han Sans Normal" => nil, "STIX Two Math" => nil, } end def version "Metanorma::IHO #{Metanorma::IHO::VERSION}" end def output(isodoc_node, inname, outname, format, options={}) case format when :html IsoDoc::IHO::HtmlConvert.new(options).convert(inname, isodoc_node, nil, outname) when :doc IsoDoc::IHO::WordConvert.new(options).convert(inname, isodoc_node, nil, outname) when :pdf IsoDoc::IHO::PdfConvert.new(options).convert(inname, isodoc_node, nil, outname) when :presentation IsoDoc::IHO::PresentationXMLConvert.new(options).convert(inname, isodoc_node, nil, outname) else super end end end end end
Version data entries
34 entries across 34 versions & 1 rubygems