]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/regression/lyrics-bar.ly
Merge branch 'translation' into staging
[lilypond.git] / input / regression / lyrics-bar.ly
index 28601d76ae0f2c2b64d46770da86b274a706b083..1f41177f9b1e8368b01d2044572c083aec0dfd3e 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.3.22"
+\version "2.17.5"
 
 \header{
 texidoc="
@@ -7,31 +7,33 @@ lyrics do not collide with barlines.
 "
 }
 
-\score {
-       \context StaffGroup <<
-        \context Staff=foo {
-               b1 \bar "|:" b1 \bar ":|"
-       }
-               \context LyricsWithBars \lyricmode {
-%                      thisContextHasBarEngraver1  added
-                       ThisContextCertainlyHasBarEngraverAddedButThereHasBeenSomethingFunnyBefore1.  HereThereWhere.
-               }
-               \context Lyrics \lyricmode {
-                       this4 one has no BarEngraverAddedToContext1
-               }
-        \context Staff=bar { b1 b1 }
-       >>
-       \layout {
-               raggedright = ##t
-               \context {
-                       \StaffGroup
-                       \accepts "LyricsWithBars"
-               }
-               \context {
-                       \Lyrics
-                       \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)
+  }
 }