Hi Gabriel,

Am 24.01.26 um 14:23 schrieb Gabriel Ellsworth:

    > There's also parent-alignment-X
    I wonder if there will ever be a day when I don’t learn something
    new about Lilypond…  :)
    > with that, you can center the markup's center over the center of
    the note.

@Lukas, I think I figured out a solution. Does this look right/good to you?

{
*  \textMark "Proposed solution:"
*  g'
  % Commenting out either *or* both of the following lines
  % will cause the letters not to be centred over the note heads:
*  \override TextScript.self-alignment-X = #CENTER
  \override TextScript.parent-alignment-X = #CENTER
*  g'^\markup { Ṯ }
  g'^\markup { Ẕ }
}

Yes, that's what I had in mind (I was on my phone that day and couldn't write LilyPond code easily).

As you probably remarked, the \override is a permanent setting. So maybe it would be easier to do:

\version "2.25.23"

center =
\tweak self-alignment-X #CENTER
\tweak parent-alignment-X #CENTER
\etc

{
  \textMark "Proposed solution:"
  g'\center ^\markup { Ṯ }
  g'\center ^\markup { Ẕ }
}

But if you want your TextScripts center-aligned everywhere, I'd suggest to put your original \override commands in the \layout { ... } block.

Lukas

Reply via email to