]> git.donarmstrong.com Git - lilypond.git/commit
Lilypond-book: Factor out the formatting from lilypond-book into separate classes
authorReinhold Kainhofer <reinhold@kainhofer.com>
Tue, 11 May 2010 17:51:26 +0000 (19:51 +0200)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Fri, 11 Jun 2010 11:11:54 +0000 (13:11 +0200)
commitd4a36739fbf2b85e3a6c85fdf76b482b8c07b656
tree4d29c0129de16e9e3efb621c01abdb2e020defdb
parent4da9fc65cbf74f4cbbdb01add4d5f341a16f5065
Lilypond-book: Factor out the formatting from lilypond-book into separate classes

-) One base class BookOutputFormat for all output formats that contains most
   of the output logic
-) Each output format has its own BookOutputFormat-derived class with class-
   specific settings.
-) Each snippet type still has its own class, but calls appropriate hook
   functions of the format class to generate the actual output

This makes it much easier to add new formats in the future or use a
customized output format for special purposes (e.g. the MusicXML test
suite).

Also, got rid of the vars () idiom (which breaks when splitting up code
into separate functions/classes) and use a proper hash instead.
python/book_base.py [new file with mode: 0644]
python/book_docbook.py [new file with mode: 0644]
python/book_html.py [new file with mode: 0644]
python/book_latex.py [new file with mode: 0644]
python/book_snippets.py [new file with mode: 0644]
python/book_texinfo.py [new file with mode: 0644]
scripts/lilypond-book.py