[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Issue 884 in lilypond: pageBreak resets page-count property

From: lilypond
Subject: Re: Issue 884 in lilypond: pageBreak resets page-count property
Date: Wed, 16 Jun 2010 16:33:21 +0000

        Status: Started

Comment #9 on issue 884 by joeneeman: pageBreak resets page-count property

Wow, I didn't realize this would be so controversial. The reason that it's non-trivial to go back to the old behaviour is that it didn't interact well with min-systems-per-page. The short version is this: in order for min-systems-per-page to interact properly with \pageBreak, we need[1] to deal with every \pageBreak-delimited region separately. Otherwise, you could have something like
.... \pageBreak c'1 c'1 \pageBreak ....
with min-systems-per-page = 2 and the algorithm wouldn't find a solution because the line breaker would (sensibly) always put the whole notes on the same line and the page breaker would only know that there aren't enough systems for min-systems-per-page to be happy, but it wouldn't see exactly where the extra systems needed to be. So I broke the page-breaking algorithm into one piece for each page break, but then, of course, it isn't possible to support some property that needs to see the whole book at once.

Anyway, perhaps it's possible to go back to the old version, with a different way of supporting min-systems-per-page.

[1] It's possible we don't actually need to, but it was certainly the simplest solution.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]