Sha256: 1ab4ef20ea50a661f0e23f01234d36d8bee58e0c53245fd8b5abb0ce420114a4
Contents?: true
Size: 995 Bytes
Versions: 4
Compression:
Stored size: 995 Bytes
Contents
require "metanorma/processor" module Metanorma module BIPM class Processor < Metanorma::Generic::Processor def configuration Metanorma::BIPM.configuration end def output_formats super.merge( html: "html", pdf: "pdf", ).tap { |hs| hs.delete(:doc) } end def version "Metanorma::BIPM #{Metanorma::BIPM::VERSION}" end def output(isodoc_node, inname, outname, format, options = {}) options_preprocess(options) case format when :html IsoDoc::BIPM::HtmlConvert.new(options) .convert(inname, isodoc_node, nil, outname) when :presentation IsoDoc::BIPM::PresentationXMLConvert.new(options) .convert(inname, isodoc_node, nil, outname) when :pdf IsoDoc::BIPM::PdfConvert.new(options) .convert(inname, isodoc_node, nil, outname) else super end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems