lilypond-devel
[Top][All Lists]
Advanced

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

Re: stencil-flip function


From: Carl Sorensen
Subject: Re: stencil-flip function
Date: Sat, 2 May 2015 21:46:44 +0000
User-agent: Microsoft-MacOutlook/14.4.8.150116


On 5/2/15 2:45 PM, "Paul Morris" <address@hidden> wrote:

>Hello dev list,
>
>Recently while working on Jianpu notation (see user list) I needed a
>function to flip a stencil.  LilyPond doesn¹t have one, so I thought it
>would be worth adding the one I wrote (see below).
>
>Any thoughts on this before I submit the code for review?
>
>(The other option would be to just revise the ly:stencil-scale function¹s
>doc string so that it mentions that it can be used to flip a stencil, but
>that this "may result in collisions unless the scaled stencil is
>[manually] realigned".)

I think you should submit this code as a patch to scm/stencil.scm.  Also,
the regtests should be fixed to show the new behavior.

Using a scale of -1 is the appropriate thing to do when you want to have
the *origin* stay in the same location.  Using stencil-flip is the
appropriate thing to do when you want the *bounding box* to stay in the
same location.

Both behaviors could be desired.

Thanks,

Carl




reply via email to

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