Class: OdtFormatter

Inherits:
Formatter show all
Defined in:
lib/notroff/formatter.rb

Instance Method Summary collapse

Methods inherited from CompositeProcessor

#add_processor, #dump, #prepend_processor, #process

Constructor Details

#initialize(input, output) ⇒ OdtFormatter

Returns a new instance of OdtFormatter.



39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/notroff/formatter.rb', line 39

def initialize(input, output)
 super()
 prepend_processor RegularExpressionExcludeFilter.new(/^--.*$/)
 prepend_processor FileReader.new(input)

 add_processor BodyTypeRefiner.new
 add_processor CodeTypeRefiner.new
 add_processor CodeTypeRefiner.new(:listing, :first_listing, :middle_listing, :end_listing)
 add_processor Grouper.new(:bullet)
 add_processor Grouper.new(:list)
 add_processor Grouper.new(:quote)
 add_processor Grouper.new(:attribution)
 add_processor OdtRenderer.new
 add_processor TemplateExpander.new
 add_processor OdtReplacer.new(output)
end