Is there a way to determine the width of a markup?

The question is about a way to center lyric syllables while ignoring
trailing punctuation. My idea is to calculate the width of the
punctuation as compared to the whole syllable and calculate an alignment
offset from that result. So you'd either enter a syllable as
\punctAlignSyl #'("no" . "...") or have an engraver that automatically
parses all syllables and performs that splitting automatically. If I had
the widths of the "no" and the "..." in that example I could calculate
the offset from it.

Or is there a ready-made solution to ignore punctuation in lyrics alignment?

Best
Urs


_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to