]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/test/lyric-hyphen-retain.ly
(class New_slur): new file. Score based slur
[lilypond.git] / input / test / lyric-hyphen-retain.ly
index 6a8f110b4dd8c3543fb6063578d52626bd9561d4..960ad8672a383b8043d78e56e175541ad1549c7f 100644 (file)
@@ -1,37 +1,40 @@
 
-\version "2.1.23"
+\version "2.3.4"
 
 \header {
 
-texidoc = "In tight situations, hyphens are removed, except at the
-end of the line.  Normally, lyrics aren't set this tight, but by
-tuning down @code{padding} of in @code{SeparationItem}, syllables are put closer together, and hyphens may disappear.
+texidoc = "In tightly engraved music, hyphens are removed, except at the
+end of the line.  Normally, lyrics are not typeset so tightly, but by
+tuning down @code{padding} of in @code{SeparationItem}, syllables are put 
+closer together, and as a result hyphens may disappear.
 
-In some languages (eg. German and Hungarian).  hyphens should not
-disappear, since spelling depends on hyphenation. In this case,
-hyphens can be forced to remain by setting @code{minimum-length} on
-the LyricHyphen grob.
+In some languages (e.g. German and Hungarian),  hyphens should not
+disappear, since spelling depends on hyphenation. For that purpose,
+hyphens can be forced to remain by overriding @code{minimum-length} of
+the @code{LyricHyphen} grob.
 "
 
 }
 
 \score {
-<<    \notes \new Staff \relative c'' { \time 1/4 c16[ c c  c]
+<<     \new Staff \relative c'' { \time 1/4 c16[ c c  c]
 \time 1/4
 c16[ c c c]
 \time 1/4
 c16[ c c c]
 
 }
-    \lyrics \new Lyrics \with {
+      \new Lyrics \with {
        % Otherwise lyrics are so far apart that hyphens don't disappear
-       \override SeparationItem #'padding = #0.0
-       }{ bla -- bla -- bla -- bla --
-          bla -- bla -- bla -- bla --
+         \override SeparationItem #'padding = #0.0
+      }
+      \lyrics {
+         bla -- bla -- bla -- bla --
+         bla -- bla -- bla -- bla --
 
-          \override LyricHyphen  #'minimum-length = #0.7
-          \override LyricHyphen  #'spacing-procedure =
-                  #Hyphen_spanner::set_spacing_rods
+         \override LyricHyphen  #'minimum-length = #0.7
+         \override LyricHyphen  #'spacing-procedure =
+         #Hyphen_spanner::set_spacing_rods
 
           bla -- bla -- bla -- bla 
        }>>
@@ -39,8 +42,8 @@ c16[ c c c]
        indent = 0.0 \cm
        linewidth = 3.4 \cm
 
-       \translator {
-           \StaffContext \remove "Time_signature_engraver"
+       \context {
+           \Staff \remove "Time_signature_engraver"
        }
        
     }