I've been searching for a solution to this for a while, and can't find
an answer.
I usually use durations in my lyrics so that I can easily modify timing
of the music versus the lyrics.
I want to underline individual words and phrases, using 'skip' where
appropriate.
I managed to underline a single word using the LilyPond '\underline',
but would like to underline phrases without spaces and durations appended.
I've tried using a melisma too but can't get the result that I want.
I want to be able to underline some of the lyrics and use the '\once'
directive as required.
Here's what I'm trying to achieve:
(1)
quavers (eighth notes) 2, and 4-8, to have a single underline;
(2)
a hyphen between 2 and 4;
(3)
a hyphen between 5 and 6;
(4)
no underline for 1, and 7-8.
Here's my tiny example:
\version "2.24.0"
EighthNotes = { \repeat unfold 8 { c'8 } }
Words = \lyricmode {
\skip 8 \markup { \underline { Two-4 Four8 Five- Six } } Seven8 Eight
}
<<
\new Voice = "one" {
\EighthNotes
}
\new Lyrics \lyricsto "one" {
\Words
}
>>
The output:
The output shows:
The 'skip' at the beginning appears to be ignored;
All of the separate words have spaces between them;
Two- and Four have durations appended;
Seven does not have the duration appended (good).
Questions:
(1)
How do I acheive my goal?
(2)
In lyricmode, there's an override for italic, e.g.:
\override Lyrics.LyricText.font-shape = #'italic
Is there something similar for underline?
(3)
I'd like to be able to underline using the '\once' directive, e.g.:
\once \override \underline { "This is underlined" }