Sha256: 6b63b056d0899da8af192f14547d5d38e21adf64729ea2c6f2ca1d71b7c667b8
Contents?: true
Size: 1.21 KB
Versions: 3
Compression:
Stored size: 1.21 KB
Contents
require "metanorma/processor" module Metanorma module ITU def self.fonts_used { html: ["Arial", "Courier New", "Times New Roman"], doc: ["Arial", "Courier New", "Times New Roman"], pdf: ["Arial", "Courier New", "Times New Roman"] } end class Processor < Metanorma::Processor def initialize @short = :itu @input_format = :asciidoc @asciidoctor_backend = :itu end def output_formats super.merge( html: "html", doc: "doc", pdf: "pdf" ) end def version "Metanorma::ITU #{Metanorma::ITU::VERSION}" end def input_to_isodoc(file, filename) Metanorma::Input::Asciidoc.new.process(file, filename, @asciidoctor_backend) end def output(isodoc_node, outname, format, options={}) case format when :html IsoDoc::ITU::HtmlConvert.new(options).convert(outname, isodoc_node) when :doc IsoDoc::ITU::WordConvert.new(options).convert(outname, isodoc_node) when :pdf IsoDoc::ITU::PdfConvert.new(options).convert(outname, isodoc_node) else super end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
metanorma-itu-1.0.18 | lib/metanorma/itu/processor.rb |
metanorma-itu-1.0.17 | lib/metanorma/itu/processor.rb |
metanorma-itu-1.0.16 | lib/metanorma/itu/processor.rb |