lilypond-user
[Top][All Lists]
Advanced

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

Determine width of a markup


From: Urs Liska
Subject: Determine width of a markup
Date: Thu, 8 Sep 2016 16:27:59 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

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




reply via email to

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