Sha256: 295fe77db5b5c83483d9499cccf50836df8cdd34fac9a636c694664f2085a204
Contents?: true
Size: 1.3 KB
Versions: 10
Compression:
Stored size: 1.3 KB
Contents
require "metanorma/processor" module Metanorma module JIS class Processor < Metanorma::Processor def initialize # rubocop:disable Lint/MissingSuper @short = :jis @input_format = :asciidoc @asciidoctor_backend = :jis end def output_formats super.merge( html: "html", pdf: "pdf", doc: "doc", ) end def fonts_manifest { "STIX Two Math" => nil, "IPAexGothic" => nil, "IPAexMincho" => nil, "Courier New" => nil, "Cambria Math" => nil, "Times New Roman" => nil, "Arial" => nil, } end def version "Metanorma::JIS #{Metanorma::JIS::VERSION}" end def output(xml, inname, outname, format, options = {}) case format when :html IsoDoc::JIS::HtmlConvert.new(options).convert(inname, xml, nil, outname) when :doc IsoDoc::JIS::WordConvert.new(options).convert(inname, xml, nil, outname) when :pdf IsoDoc::JIS::PdfConvert.new(options).convert(inname, xml, nil, outname) when :presentation IsoDoc::JIS::PresentationXMLConvert.new(options).convert(inname, xml, nil, outname) else super end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems