Hi Kieren,
Am 20.10.2018 um 21:22 schrieb Kieren MacMillan:
Hi Urs,
Is there a way to force text elements to a common *baseline* (as long as
collision avoidance doesn't force them farther away from the staff?
This is a long-standing irritation of mine, with respect to Lily’s text/markup
handling…
The only hack I’ve found so far is to force a common height, either with a
strut or a transparent combination which has both [maximum] ascenders and
[maximum] descenders:
{
\override TextScript.outside-staff-padding = 2
g' _\markup \combine \transparent "Tj" "g" ^\markup \combine \transparent "Tj"
"q"
g' _\markup \combine \transparent "Tj" "b" ^\markup \combine \transparent "Tj"
"b"
}
First I found that very nice, but then I realized that the padding isn't
against the StaffSymbol but against the next object in general, so I'm
afraid the outside-staff-padding doesn't work at all:
\version "2.19.82"
{
\override TextScript.outside-staff-padding = 2
\once \stemUp
c''2 _\markup \combine \transparent "Tj" "g" ^\markup \combine \transparent "Tj"
"q"
g' _\p _\markup \combine \transparent "Tj" "b" ^\markup \combine \transparent "Tj"
"b"
}
The first upper letter is pushed outside by the stem, the second lower
letter by the dynamics.
Urs
Hope that helps!
Kieren.
________________________________
Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user