[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [patch] top level page breaking directives
From: |
Nicolas Sceaux |
Subject: |
Re: [patch] top level page breaking directives |
Date: |
Wed, 09 May 2007 21:41:06 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) |
Joe Neeman <address@hidden> writes:
> On Monday 07 May 2007 18:54, Nicolas Sceaux wrote:
>> A new patch:
>>
>> - \pageBreak, \noPageBreak, etc, can be used at top-level or inside a
>> score, as Mats suggested;
>>
>> - the issue regarding the (sometimes) ineffectiveness of \pageBreak at
>> toplevel is fixed by specifying a line-break-permission='force, though
>> I don't understand why it is required;
>
> The line breaker ignores page-break-permission, so it will happily
> return a line configuration where a forced page-break occurs in the
> middle of the line. The page breaker only looks at the last column in
> a line, so the page-break can be missed altogether. It wouldn't be
> hard to change this behaviour in the backend but I think it's just as
> easy to deal with it in the input stage.
Ok, so if that's the way to do it according to you, that's fine.
>> - \pageTurn and \noPageTurn seem to be as effective at top-level as
>> they are inside a score.
>
> Does this mean they work?
Sort of. A small test with \pageTurn did what was expected (music on an
even page, then an empty odd page, then the following music on the next
even page). But I did not manage to make "\pageBreak \noPageTurn" to
work (whatever the context, toplevel or inside music). There does not
seem to be a regression test for \noPageTurn.
>> However, an issue is remaining: Composite_music is not allowed inside a
>> \book block, so the page breaking commands cannot be used between scores
>> inside a \book block. Side question: are regression tests containing
>> serveral \score blocks required to have a \book block?
>
> Would it break things to allow Composite_music inside a book?
> I think it would be nice to have the \pageBreak work everywhere.
Indeed, hence my question, and that's mostly what restrain me from
pulling the patch. I don't know if allowing Composite_music in \book
blocks had been tested before, but discarded for some reason; or if it
was never tested. If Han-Wen does not see this conversation before, I'll
do the test this week-end. At least music functions should be allowed
for \pageBreak and friends to work.
> As for the regression tests, I don't see why they would require a book
> block.
I asked because the regression tests using several score blocks that I
looked at also have a surrounding \book block. Anyway, this won't matter
as the Composite_music in \book blocks issue has to be sorted out.
Thanks for your answers, Joe.
nicolas
- [patch] top level page breaking directives, Nicolas Sceaux, 2007/05/05
- Re: [patch] top level page breaking directives, Joe Neeman, 2007/05/05
- Re: [patch] top level page breaking directives, Nicolas Sceaux, 2007/05/06
- Re: [patch] top level page breaking directives, Nicolas Sceaux, 2007/05/06
- Re: [patch] top level page breaking directives, Nicolas Sceaux, 2007/05/13
- [patch] top-level \pageBreak + composite_music in \book, Nicolas Sceaux, 2007/05/17
- Re: [patch] top-level \pageBreak + composite_music in \book, Han-Wen Nienhuys, 2007/05/17
Re: [patch] top level page breaking directives, Mats Bengtsson, 2007/05/06
Re: [patch] top level page breaking directives, Trevor Bača, 2007/05/08