Class: Pslm::Outputter

Inherits:
Object
  • Object
show all
Defined in:
lib/pslm/outputter.rb

Overview

abstract superclass of all outputters

Direct Known Subclasses

ConsoleOutputter, LatexOutputter, PslmOutputter

Constant Summary collapse

DEFAULT_SETUP =
{
  :no_formatting => false, # TODO
  :title => {
    :template => :semantic,
  },
  :pointing => {
    :accents => [2,2],
    :preparatory => [0,0],
    :accent_style => :underline, # :underline|:bold|:semantic
  },
  :break_hints => true,
  :parts => {
    :marks_type => :semantic, # :simple|:semantic|:no
    :novydvur_newlines => false,
  },
  :verses => {
    :paragraphify => true
  },
  :skip_verses => 0,
  :strophes => {
    :end_marks => false,
    :paragraph_space => true,
    :mark_last_strophe => false,
  },
  :wrapper => {
    :environment_name => 'psalmus'
  },
  :lettrine => nil,
  :line_break_last_line => false, # TODO
  :quote => false, # :single|:double|:guillemets|:czech|:delete
  :mark_short_verses => false, # TODO
  :final_add_content => false,
}

Instance Method Summary collapse

Instance Method Details

#process(psalm, options = {}) ⇒ Object



42
43
44
# File 'lib/pslm/outputter.rb', line 42

def process(psalm, options={})
  raise RuntimeError.new "Abstract class. Method not implemented."
end