]> 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 199210d31b0e25b6d8272cb59d03ea6a375dc671..960ad8672a383b8043d78e56e175541ad1549c7f 100644 (file)
@@ -1,46 +1,49 @@
 
-\version "2.1.22"
+\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
-       SeparationItem \set #'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 
        }>>
     \paper   {
        indent = 0.0 \cm
-       linewidth =  3.4 \cm
+       linewidth = 3.4 \cm
 
-       \translator {
-           \StaffContext \remove "Time_signature_engraver"
+       \context {
+           \Staff \remove "Time_signature_engraver"
        }
        
     }