Sha256: bcc946ca369a856226ab2b8c12cc8ecd3123b44a055a323a2a25ac007135ea89
Contents?: true
Size: 1.34 KB
Versions: 22
Compression:
Stored size: 1.34 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 = {}) options_preprocess(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
22 entries across 22 versions & 1 rubygems