lib/metanorma/csand/processor.rb in metanorma-csand-1.0.6 vs lib/metanorma/csand/processor.rb in metanorma-csand-1.0.7
- old
+ new
@@ -10,25 +10,31 @@
@asciidoctor_backend = :csand
end
def output_formats
super.merge(
- html: "html"
+ html: "html",
+ # doc: "doc",
+ # pdf: "pdf"
)
end
def version
"Metanorma::Csand #{Metanorma::Csand::VERSION}"
end
- def input_to_isodoc(file)
- Metanorma::Input::Asciidoc.new.process(file, @asciidoctor_backend)
+ 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::Csand::HtmlConvert.new(options).convert(outname, isodoc_node)
+ # when :doc
+ # IsoDoc::Csand::WordConvert.new(options).convert(outname, isodoc_node)
+ # when :pdf
+ # IsoDoc::Csand::PdfConvert.new(options).convert(outname, isodoc_node)
else
super
end
end
end