1 Commits

Author SHA1 Message Date
tux
78ed5a046b new engraver for spacing in chordlyrics 2025-11-16 22:08:11 +01:00

View File

@@ -317,8 +317,7 @@ Chord_lyrics_spacing_engraver =
((chord-name-interface this-engraver grob source-engraver)
(if (not (and
(boolean? (ly:grob-property grob 'begin-of-line-visible))
(ly:grob-property grob 'begin-of-line-visible)
lyrics-seen-since-break))
(ly:grob-property grob 'begin-of-line-visible)))
(let* ((last-printed-chord-width (if last-printed-chord (interval-length (ly:grob-extent last-printed-chord last-printed-chord X)) 0))
(chord-overwidth (- last-printed-chord-width lyric-width-since-last-chord))
(chord-gap 0.5))
@@ -340,7 +339,6 @@ Chord_lyrics_spacing_engraver =
(set! last-printed-chord grob)
(set! last-lyric-syllable #f)
)
(ly:grob-set-property! grob 'X-extent '(+inf.0 . -inf.0))
)
)
((stanza-number-interface this-engraver grob source-engraver)