# File lib/rabbit/parser/wiki/output.rb, line 462 def LaTeX(source, props={}) args = [@output.canvas, source] Ext::Image.make_image_from_file(*args) do |src_file_path| props = Utils.stringify_hash_key(props) args = [src_file_path, props, @output.canvas] [Ext::TeX.make_image_by_LaTeX(*args), props] end end
# File lib/rabbit/parser/wiki/output.rb, line 482 def aafigure(source, props={}) args = [@output.canvas, source] Ext::Image.make_image_from_file(*args) do |src_file_path| props = Utils.stringify_hash_key(props) args = [src_file_path, props, @output.canvas] [Ext::AAFigure.make_image(*args), props] end end
# File lib/rabbit/parser/wiki/output.rb, line 491 def blockdiag(source, props={}) args = [@output.canvas, source] Ext::Image.make_image_from_file(*args) do |src_file_path| props = Utils.stringify_hash_key(props) args = [src_file_path, props, @output.canvas] [Ext::BlockDiag.make_image(*args), props] end end
# File lib/rabbit/parser/wiki/output.rb, line 500 def coderay(lang, source) logger = @output.canvas.logger Ext::CodeRay.highlight(lang, source, logger) end
# File lib/rabbit/parser/wiki/output.rb, line 505 def emacs(source, mode_line=nil) logger = @output.canvas.logger Ext::Emacs.highlight(source, logger, mode_line) end
# File lib/rabbit/parser/wiki/output.rb, line 453 def enscript(lang, source) logger = @output.canvas.logger if Ext::Enscript.check_availability(lang, logger) Ext::Enscript.highlight(lang, source, logger) else nil end end
# File lib/rabbit/parser/wiki/output.rb, line 432 def image(source, props={}) if props[:align].to_s == "right" body = @output.current_body if body["background-image"] raise ParseError, _("multiple {{image, 'XXX.png', :align => :right}} " + "isn't supported.") end body["background-image"] = source props.each do |name, value| name = name.to_s.gsub(/_/, '-') value = value.to_s if name == "align" body["background-image-#{name}"] = value end :no_element else Ext::Image.make_image(@output.canvas, source, props) end end
# File lib/rabbit/parser/wiki/output.rb, line 472 def mimeTeX(source, props={}) args = [@output.canvas, source] Ext::Image.make_image_from_file(*args) do |src_file_path| props = Utils.stringify_hash_key(props) args = [src_file_path, props, @output.canvas] [Ext::TeX.make_image_by_mimeTeX(*args), props] end end
Generated with the Darkfish Rdoc Generator 2.