]> git.donarmstrong.com Git - lilypond.git/commit
* lily/page-turn-page-breaking.cc (calc_demerits): now that we allow
authorJoe Neeman <joeneeman@gmail.com>
Sat, 30 Sep 2006 10:30:47 +0000 (10:30 +0000)
committerJoe Neeman <joeneeman@gmail.com>
Sat, 30 Sep 2006 10:30:47 +0000 (10:30 +0000)
commit0e0aa554eb6f3cd6004904746c54f8f95d6ccebf
tree61bafb583b3b409d98fce797f90242ce74c729e7
parent970e8c7877fd9cb3197a04a611943e2b96a0d303
* lily/page-turn-page-breaking.cc (calc_demerits): now that we allow
put_systems_on_pages to return an empty result, we need to assign
demerits properly in that case.
(put_systems_on_pages): Make the number of pages depend on the
evenness of page_number. Add auto-first-page-number.
(calc_subproblem): ensure that the page-number is even for the
left-hand page. Warn if the first page-turn doesn't fit onto the
first (right-hand) page.

* lily/page-spacing.cc (solve): bug: demerits_ would always be inf
(min_page_count): make this publicly accessible
(min_page_count): fix a bug when there are forced page breaks that
was introduced when I made this loop run backwards
(space_systems_on_n_pages, space_systems_on_n_or_one_more_pages):
replace space_systems_on_min_pages with these two. The logic in
space_systems_on_min_pages was getting too convoluted and is better
contained in page-turn-page-breaking.
ChangeLog
input/regression/page-turn-page-breaking-badturns.ly
input/regression/page-turn-page-breaking.ly
lily/include/page-spacing.hh
lily/include/page-turn-page-breaking.hh
lily/page-spacing.cc
lily/page-turn-page-breaking.cc