lilypond-user
[Top][All Lists]
Advanced

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

Re: aligning text in text spanner


From: Jean Abou Samra
Subject: Re: aligning text in text spanner
Date: Wed, 16 Nov 2022 22:41:36 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1

Actually, I see now that line spanners also support absolute
shifts (I didn't remember that, in spite of having worked on
that code ...). So, just do

\version "2.23.81"

{
  f'1
  ~
  - \tweak style #'line
  - \tweak bound-details.left.stencil-offset #'(0 . -0.4)
  - \tweak bound-details.right.arrow ##t
  - \tweak bound-details.right.stencil-offset #'(0 . -0.4)
  - \tweak bound-details.left.text \markup \normal-text "ord."
  - \tweak bound-details.right.text \markup \normal-text "s.p."
  \startTextSpan
  f'1
  :32
  \stopTextSpan
}




Le 16/11/2022 à 21:59, Martín Rincón Botero a écrit :
Thank you! I would've never been able to figure that out by myself! By the way, shouldn't \with-dimension(-from) be documented here https://lilypond.org/doc/v2.23/Documentation/notation/dimensions.html ?


Possibly, yes.


This is a good snippet for the repository, I think (I actually wonder why this is not the default behavior...).


I think it would be more sensible to make it the default
than to add it as a snippet. Maybe start by opening an
issue?

Jean


Attachment: OpenPGP_signature
Description: OpenPGP digital signature


reply via email to

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