2015-12-30 14:34 GMT+01:00 Thomas Morley <[email protected]>:
> 2015-12-30 13:48 GMT+01:00 Kieren MacMillan <[email protected]>:
>> Hi Harm,
>>
>>> Of course you should use Staff.OttavaBracket
>>
>> Curiously,
>>
>> \once \override OttavaBracket.extra-offset …
>>
>> [without the Staff context] works fine. (??)
>>
>>> but in `octU_single’ OttavaBracket.stencil is set to ly:line-spanner::print
>>> which doesn’t support 'shorten-pair, as far as I know.
>>
>> Is there a better (e.g., more flexible, or more post-hoc-tweakable) way to
>> override the stencil?
>
> The whole reason for exchanging the stencil seems to be getting sort
> of superscript of "va" in "8va" and to have the spanning line starting
> at top right edge.
>
> If so, consider the code below.
> Not that nice to mess around with \with-dimensions, but
> `details.stencil-align-dir-y' had to be found manually before as well.
>
> \version "2.19.32"
>
> #(define eightva
> #{
> \markup
> %% messing around with \with-dimensions, because OttavaBracket has no
> %% possibility to set details.stencil-align-dir-y
> %% :((
> \with-dimensions #'(0 . 4) #'(0 . 2.8)
> \italic \concat { "8" \raise #0.5 { \hspace #0.25 "va" } \hspace #0.5 }
> #})
>
%% or simpler:
{
\once \override Staff.OttavaBracket.shorten-pair = #'(-10 . -10)
\set Staff.ottavation = #eightva
c''''1^"text changed, 'shorten-pair applied"
}
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user