lilypond-devel
[Top][All Lists]
Advanced

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

Re: penalty -> permission patch


From: Joe Neeman
Subject: Re: penalty -> permission patch
Date: Sun, 7 May 2006 18:19:01 +1000
User-agent: KMail/1.8.3

On Sun, 7 May 2006 12:49, Han-Wen Nienhuys wrote:
> Joe Neeman wrote:
> > I'm not entirely sure what you mean by this. Are you thinking of having
> > multiple Events? With a BreakEvent, PageBreakEvent and PageTurnEvent we
> > could tweak break-permission, page-break-permission and
> > page-turn-permission individually. Is this any nicer than having an
> > explicit 'forbid symbol, though?
>
> Yes, I think this is clearer.  I'd rename break-permission to
> line-break-permission, though.
>
> We could figure out a way to combine these events in the input side in
> single identifier, but let's keep them seperate for now, and worry about
> the syntax later.

OK, here's another try.

2006-05-07  Joe Neeman  <address@hidden>

        * scm/define-context-properties.scm:
        * scm/define-grob-properties.scm:
        * scm/define-grobs.scm:
        * scm/define-music-display-methods.scm:
        * scm/define-music-properties.scm:
        * scm/define-music-types.scm:
        * scm/music-functions.scm:
        * ly/declarations-init.ly:
        * lily/include/constrained-breaking.hh:
        * lily/system.cc:
        * lily/spaceable-grob.cc:
        * lily/simple-spacer.cc:
        * lily/paper-score.cc:
        * lily/paper-column.cc:
        * lily/paper-column-engraver.cc:
        * lily/item.cc:
        * lily/gourlay-breaking.cc:
        * lily/constrained-breaking.cc:
        * python/convertrules.py:
        Change "penalty", "page-penalty" and "breakable" to 
"line-break-penalty",
        "page-break-penalty" and "line-break-permission".
        Add "page-break-permission", "page-turn-permission" and 
"page-turn-penalty".
        Replace BreakEvent with LineBreakEvent, PageBreakEvent and 
PageTurnEvent.

        * lily/bar-engraver.cc:
        * lily/beam-engraver.cc:
        * lily/forbid-break-engraver.cc:
        * lily/ligature-engraver.cc:
        * lily/paper-column-engraver.cc:
        * lily/percent-repeat-engraver.cc:
        * lily/score-engraver.cc:
        * lily/score-engraver.hh:
        * lily/paper-column-engraver.hh:
        Inter-engraver communication regarding line breaks is done through 
context
        properties (Score.forbidBreak) instead of function calls.

Attachment: penalty_permission_20060507.patch
Description: Text Data


reply via email to

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