bug-lilypond
[Top][All Lists]
Advanced

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

Re: Hairpin with text inside


From: David Kastrup
Subject: Re: Hairpin with text inside
Date: Sat, 30 Jul 2016 21:05:24 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

Rutger Hofman <address@hidden> writes:

> On 07/28/2016 05:04 PM, David Kastrup wrote:

>> You actually explicitly and manually call the Scheme function
>>
>>                (ly:stencil-combine-at-edge
>>                  (ly:stencil-aligned-to stencil X RIGHT)
>>                  Y CENTER
>>                  ; Y DOWN
>>                  (ly:stencil-aligned-to (grob-interpret-markup grob text) X 
>> RIGHT))

[...]
>> This rather sounds like you want to use
>> ly:stencil-add on the stencils, just combining them on the same
>> reference point.
>>
>> I don't think there is _any_ point in letting ly:stencil-combine-at-edge
>> accept CENTER as the direction since I cannot think of anything useful
>> to do with the padding then: in which direction would one be supposed to
>> shift the second stencil when it overlapped the first one?
>>
>
> I must confess that I just took that LSR snippet and modified it a bit
> without really understanding it; well, it did what I wanted... I will
> study your remarks and try to fix things. Thanks.

Sorry if I had been assuming too much knowledge of Scheme here.  What
I suggested amounts to replacing the above cited lines with

(ly:stencil-add (ly:stencil-aligned-to stencil X RIGHT)
                (ly:stencil-aligned-to (grob-interpret-markup grob text)
                  X RIGHT))

here.  I haven't actually tested it or looked into what the code even
does so this should be taken with a grain of salt, but that's what
I consider likely to be akin to the previous behavior.

-- 
David Kastrup



reply via email to

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