X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=input%2Fregression%2Flyrics-bar.ly;h=633e041bb6fb1e14404a847fdb2d8b0a6b59e638;hb=9a9b94b7305e415bc519393d57dd6c5830661a97;hp=ba619808fbcee94846d98d92dcb61c276624229e;hpb=7b22eeeee2505be517e58c3f922ddc53f1b7b0bd;p=lilypond.git diff --git a/input/regression/lyrics-bar.ly b/input/regression/lyrics-bar.ly index ba619808fb..633e041bb6 100644 --- a/input/regression/lyrics-bar.ly +++ b/input/regression/lyrics-bar.ly @@ -1,39 +1,39 @@ -\version "2.1.21" +\version "2.17.6" \header{ texidoc=" Adding a @code{Bar_engraver} to the Lyrics context makes sure that -lyrics don't collide with barlines. +lyrics do not collide with barlines. " } -\score { - \context StaffGroup << - \notes \context Staff { - b1 \bar "|:" b1 \bar ":|" - } - \lyrics << - \context LyricsWithBars { -% thisContextHasBarEngraver1 added - ThisContextCertainlyHasBarEngraverAddedButThereHasBeenSomethingFunnyBefore1. Here. - } - \context Lyrics { - this4 one has no BarEngraverAddedToContext1 - } - >> - \notes \new Staff { b1 b1 } - >> - \paper { - raggedright = ##t - \translator { - \ScoreContext - \accepts "LyricsWithBars" - } - \translator { - \LyricsContext - \consists "Bar_engraver" - \name "LyricsWithBars" - } - } +\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.2 + \override LyricText.Y-offset = #-0.7 + \override BarLine.bar-extent = #'(-2 . 2) + } }