+\version "2.10.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 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 "Span_bar_engraver";
- \accepts "LyricsVoiceWithBars";
- }
- \translator {
- \LyricsVoiceContext
- \name "LyricsVoiceWithBars";
- }
- \translator {
- \LyricsVoiceContext
- }
- }
+\layout {
+ ragged-right = ##t
}
+
+<<
+ \new Staff \with
+ {
+% \remove "Bar_engraver"
+ }
+ {
+ b1 \bar "|:" b1 \bar ":|"
+ }
+ \context Lyrics \with {
+ \consists "Bar_engraver"
+ \consists "Separating_line_group_engraver"
+ \override BarLine #'bar-size = #4
+ } \lyricmode {
+ looooooooooooooooooooooooooooooooooong1 syllable
+ }
+ \lyrics {
+ no Bar_Engraver_Bar_Engraver_Bar_Engraver
+ }
+ \new Staff \with {
+% \remove "Bar_engraver"
+ } { b1 b1 }
+>>
+
+