]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/test/lyrics-bar.ly
patch::: 1.3.121.jcn2
[lilypond.git] / input / test / lyrics-bar.ly
index 0e714c34f607c1184584d61766f8e71a397fb05a..ec0309b3221556affad21dda2e0a2252dc9aef45 100644 (file)
@@ -1,27 +1,36 @@
+\header{
+texidoc="
+Adding a @code{Bar_engraver} to the LyricsVoice context makes sure that
+lyrics don't collide with barlines.
+";
+}
 
 \score {
-
        \context StaffGroup <
-        \notes \context Staff { b1 b1 \bar "|."; }
-        \lyrics\context Lyrics <
-               \context BarLV  { thisContextHasBarEngraver1 added }
-                \context LyricVoice { this4 one has no barEngraverAddedToContext1 }
-               >
-        \notes \context Staff = SB { b1 b1 }
-
-               >
-
+       \notes \context Staff {
+               b1 b1 \bar "|.";
+       }
+       \lyrics\context Lyrics <
+               \context LyricsVoiceWithBars {
+%                      thisContextHasSpanBarEngraver1  added
+                       ThisContextCertainlyHasSpanBarEngraverAddedButTheresSomethingFunny1.  Here.
+               }
+               \context LyricsVoice {
+                       this4 one has no SpanBarEngraverAddedToContext1
+               }
+       >
+       \notes \context Staff = SB { b1 b1 }
+       >
        \paper {
                linewidth = -1.0\cm;
                \translator {
                        \LyricsContext
-                       \consists "Bar_engraver";
-                       \accepts "BarLV";
+                       \consists "Span_bar_engraver";
+                       \accepts "LyricsVoiceWithBars";
                }
                \translator {
                        \LyricsVoiceContext
-                       \consists "Bar_engraver";
-                       \name "BarLV";
+                       \name "LyricsVoiceWithBars";
                }
                \translator {
                        \LyricsVoiceContext