Sha256: 701afa75219ed000e165fc76c99d9d96a1742a352ac38de59899166e3b9a930b
Contents?: true
Size: 1.64 KB
Versions: 24
Compression:
Stored size: 1.64 KB
Contents
require "metanorma/processor" module Metanorma module IEEE class Processor < Metanorma::Processor def initialize @short = :ieee @input_format = :asciidoc @asciidoctor_backend = :ieee end def output_formats super.merge( html: "html", doc: "doc", pdf: "pdf", ieee: "ieee.xml", ) end def fonts_manifest { "Arial" => nil, "Courier New" => nil, "Times New Roman" => nil, "Source Han Sans" => nil, "Source Han Sans Normal" => nil, "STIX Two Math" => nil, } end def version "Metanorma::IEEE #{Metanorma::IEEE::VERSION}" end def output(isodoc_node, inname, outname, format, options = {}) case format when :html IsoDoc::IEEE::HtmlConvert.new(options).convert(inname, isodoc_node, nil, outname) when :doc IsoDoc::IEEE::WordConvert.new(options).convert(inname, isodoc_node, nil, outname) when :pdf IsoDoc::IEEE::PdfConvert.new(options).convert(inname, isodoc_node, nil, outname) when :presentation IsoDoc::IEEE::PresentationXMLConvert.new(options).convert( inname, isodoc_node, nil, outname ) when :ieee IsoDoc::IEEE::IEEEXMLConvert.new(options) .convert(inname, isodoc_node, nil, outname) else super end end end end end
Version data entries
24 entries across 24 versions & 1 rubygems