X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=input%2Fregression%2Flyrics-bar.ly;h=d8a596b2e652e6c76b598f9da5d3a385972f1be8;hb=2533d976e5218f47bef6ae81fb51d6722f6dd895;hp=e530c0f790751afbb89b9d3ddcf494f3b3e4bd9c;hpb=1aeb5031376f96ee3407989e7696e5c106d27ee0;p=lilypond.git diff --git a/input/regression/lyrics-bar.ly b/input/regression/lyrics-bar.ly index e530c0f790..d8a596b2e6 100644 --- a/input/regression/lyrics-bar.ly +++ b/input/regression/lyrics-bar.ly @@ -1,39 +1,39 @@ -\version "2.1.19" +\version "2.13.51" \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 LyricsVoiceWithBars { -% thisContextHasBarEngraver1 added - ThisContextCertainlyHasBarEngraverAddedButThereHasBeenSomethingFunnyBefore1. Here. - } - \context LyricsVoice { - this4 one has no BarEngraverAddedToContext1 - } - >> - \notes \new Staff { b1 b1 } - >> - \paper { - raggedright = ##t - \translator { - \ScoreContext - \accepts "LyricsVoiceWithBars" - } - \translator { - \LyricsVoiceContext - \consists "Bar_engraver" - \name "LyricsVoiceWithBars" - } - } +\layout { + ragged-right = ##t +} + +\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 + \override LyricText #'Y-offset = #-0.7 + \override BarLine #'bar-extent = #'(-2 . 2) + } }