Hello again,

a few more ideas:

My solution uses the TextSpanner which works for two or more notes. But for a single note (syllable), a function like your lyricsWithOption is more suitable. The following draws the separating line in the proper length.

%%---------------------------------------------------------

#(define-markup-command (stacked-lyric-single layout props one two)
  (string? string?)
  (let* ((lyric (interpret-markup layout props (make-stacked-lyric-markup one two)))
         (width (interval-length (ly:stencil-extent lyric X))))
    (ly:stencil-add
      lyric
      (make-line-stencil 0.1 0 0.8 width 0.8))))

%%---------------------------------------------------------

It can be used in the Lyrics context, e.g.

\markup \stacked-lyric-single "you" "God the Father"


For another line thickness, change the first argument of make-line-stencil (0.1) and include the following for the TextSpanner in the startStackedLyric function with a 10 times larger value:

\once \override TextSpanner.thickness = #1.0


For a proper layout in case of a TextSpanner line break, it could be necessary to set the properties of left-broken and right-broken in bound-details.


All the best,

Thomas

--

Thomas Richter
Vienna / Austria
thomas-rich...@aon.at

Reply via email to