Hi Gabriel,

>> Do you know the “magnetic lyric” snippet?
>> https://wiki.lilypond.community/wiki/Magnetic_lyrics:_snap_syllables_together_if_the_hyphen_inbetween_is_too_short
> 
> I think that this is exactly what I need.
> 
>> Not sure the state of it relative to the current dev version…
> It is working just fine in version 2.27.
> 
> And it works in concert with 
> https://wiki.lilypond.community/wiki/Aligning_lyrics_based_on_vowels without 
> any issues so far, which makes me happy!

Great!

For the sake of completeness, I figure I should probably try to answer your 
original question:

> Is there a way that I can modify the code of option (2) to get the exact same 
> kerning that we see in option (1)?


Here’s something that maybe suffices?

%%%  SNIPPET BEGINS
\version "2.27.0"

notes = \fixed c' { \*4 g }

\markup { \circle 1 Kerning when
  each \typewriter LyricText object
  is an entire word:
}
{
  \notes
  \addlyrics {
    \set lyricMelismaAlignment = #-0.6
    testing _
    \set lyricMelismaAlignment = #-0.8
    hyphens _
  }
}

\markup { \circle 2 Kerning when
  \typewriter -- is used
  between syllables in lyrics:
}

kernLyr = \tweak LyricText.extra-offset #'(0.075 . 0) \tweak 
LyricHyphen.X-extent #empty-interval \etc

\score {
  \notes
  \addlyrics {
    \kernLyr test -- ing
    \kernLyr hy -- phens
  }
}
%%%  SNIPPET ENDS

Hope that helps!
Kieren.

__________________________________________________

My work day may look different than your work day. Please do not feel obligated 
to read or respond to this email outside of your normal working hours.


Reply via email to