Sha256: f991de6eaf155f9816f1f7f23ea83aae1368be116689523754c0f66a921b566d
Contents?: true
Size: 1.24 KB
Versions: 66
Compression:
Stored size: 1.24 KB
Contents
# frozen_string_literal: true require 'metanorma/processor' module Metanorma module Csa class Processor < Metanorma::Processor def initialize @short = :csa @input_format = :asciidoc @asciidoctor_backend = :csa end def output_formats super.merge( html: 'html', doc: 'doc', pdf: 'pdf' ) end def fonts_manifest { #"AzoSans" => nil, "Lato" => nil, "STIX Two Math" => nil, "Source Code Pro" => nil, } end def version "Metanorma::Csa #{Metanorma::Csa::VERSION}" end def output(isodoc_node, inname, outname, format, options={}) case format when :html IsoDoc::Csa::HtmlConvert.new(options).convert(inname, isodoc_node, nil, outname) when :doc IsoDoc::Csa::WordConvert.new(options).convert(inname, isodoc_node, nil, outname) when :pdf IsoDoc::Csa::PdfConvert.new(options).convert(inname, isodoc_node, nil, outname) when :presentation IsoDoc::Csa::PresentationXMLConvert.new(options).convert(inname, isodoc_node, nil, outname) else super end end end end end
Version data entries
66 entries across 66 versions & 1 rubygems