lilypond-devel
[Top][All Lists]
Advanced

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

Re: [patch] top level page breaking directives


From: Mats Bengtsson
Subject: Re: [patch] top level page breaking directives
Date: Sun, 06 May 2007 20:55:47 +0200
User-agent: Internet Messaging Program (IMP) H3 (4.0.5)

Great! Would it even be possible to use the same page breaking directives
everywhere, both at top-level and within scores? (I don't know anything
about the implementation, but it would be great if users didn't have to remember several different directives to use in different situations).

  /Mats

Quoting Nicolas Sceaux <address@hidden>:

Han-Wen, Joe,

Here is a patch which implements top-level page breaking directives, for
instance:

 %% these two markups must be on the same page
 \markup { ... }
 \forbidPageBreak
 \markup { ... }

 %% the markup and the score must be on the same new page
 %% that is, same as \header { breakbefore=##t } in the score block
 \forcePageBreak
 \markup { ... }
 \forbidPageBreak
 \score { ... }

Sketch:

- \forbidPageBreak and \forcePageBreak are music expressions with
  special properties, and are turned into Page_markers by
  collect-music-for-book;

- then, the Page_markers are added to the Book scores_ (together with
  the scores and markups);

- finally, when the Paper_book meet such an element when traversing the
  Book scores_, it sets the previous element page break and page turn
  permissions, according the Paper_marker settings.

I'd be grateful if you could review this patch.
(I'm working on regression tests and documentation).

nicolas









reply via email to

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