X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=input%2Fregression%2Flyrics-bar.ly;h=1a827522743b1c7bd8d59112494ee920555c3ba9;hb=0e42f1207ae89f4df3c6a21c986c1eaf06a028f0;hp=af147d719ab63b9a4d49a40610d16d0bdd8b667c;hpb=8083c316e4cdb818e5ca3a00281ea8a4c575e80e;p=lilypond.git diff --git a/input/regression/lyrics-bar.ly b/input/regression/lyrics-bar.ly index af147d719a..1a82752274 100644 --- a/input/regression/lyrics-bar.ly +++ b/input/regression/lyrics-bar.ly @@ -1,42 +1,39 @@ -\version "1.7.18" +\version "2.14.0" \header{ texidoc=" -Adding a @code{Bar_engraver} to the LyricsVoice context makes sure that -lyrics don't collide with barlines. +Adding a @code{Bar_engraver} to the Lyrics context makes sure that +lyrics do not collide with barlines. " } -\score { - \context StaffGroup < - \notes \context Staff { - b1 \bar "|:" b1 \bar ":|" - } - \lyrics\context Lyrics < - \context LyricsVoiceWithBars { -% thisContextHasBarEngraver1 added - ThisContextCertainlyHasBarEngraverAddedButThereHasBeenSomethingFunnyBefore1. Here. - } - \context LyricsVoice { - this4 one has no BarEngraverAddedToContext1 - } - > - \notes \context Staff = SB { b1 b1 } - > - \paper { - raggedright = ##t - \translator { - \LyricsContext - \accepts "LyricsVoiceWithBars" - } - \translator { - \LyricsVoiceContext - \consists "Bar_engraver" - \name "LyricsVoiceWithBars" - } - \translator { - \LyricsVoiceContext - } - } +\layout { + ragged-right = ##t } -%% new-chords-done %% + +\relative c'' << + \new Voice = "a"{ + b1 \bar "|:" b1 \bar ":|" b1 \bar "|." + } + \new Lyrics \with { + \consists "Bar_engraver" + \consists "Separating_line_group_engraver" + } \lyricsto "a" { + bars lengthened if + } + \new Lyrics \lyricsto "a" { + required for noncollision + } + \new Staff { + b1 b1 b1 + } +>> +\layout { + \context { + \Lyrics + \override VerticalAxisGroup #'nonstaff-nonstaff-spacing #'minimum-distance = #4.2 + \override LyricText #'Y-offset = #-0.7 + \override BarLine #'bar-extent = #'(-2 . 2) + } +} +