Sha256: 0242a1bb2cb5a354ec40d6f61725fc55ba2096bb64194eadd5f650c87204e1f4
Contents?: true
Size: 1.58 KB
Versions: 9
Compression:
Stored size: 1.58 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, =begin "Noto Serif JP" => nil, "Noto Serif JP ExtraLight" => nil, "Noto Serif JP Medium" => nil, "Noto Serif JP Black" => nil, "Noto Sans JP Thin" => nil, "Noto Sans JP Medium" => nil, =end "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
9 entries across 9 versions & 1 rubygems