]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/regression/lyric-hyphen-retain.ly
*** empty log message ***
[lilypond.git] / input / regression / lyric-hyphen-retain.ly
index f35342513e109d40fffdb2356af28396c599a739..0731b194111fceb9758c5942894578eed011531f 100644 (file)
@@ -1,53 +1,32 @@
-
-\version "2.3.16"
-
 \header {
 
-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 (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.
-"
+  texidoc = "The minimum distance between lyrics are determined by the
+@code{minimum-distance} of @code{LyricHyphen} and
+@code{LyricSpace}. The hyphen is omitted when it would be shorter than
+its @code{minimum-length} setting."
 
 }
 
-\score {
-<<     \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]
+\version "2.7.39"
 
+\layout {
+  ragged-right = ##t
 }
-      \new Lyrics \with {
-       % Otherwise lyrics are so far apart that hyphens don't disappear
-         \override SeparationItem #'padding = #0.0
-      }
-      \lyricmode {
-         bla -- bla -- bla -- bla --
-         bla -- bla -- bla -- bla --
 
-         \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
-
-       \context {
-           \Staff \remove "Time_signature_engraver"
-       }
-       
-    }
-      
+\relative c'' {
+  \time 2/4
+  c32 c c c 
+  c32 c c c 
+  c32 c c c 
+  c32 c c c 
+  c32 c c c 
+}
+\addlyrics
+{
+   syl -- lab word
+   \once \override LyricHyphen #'minimum-distance = #0.0
+   syl -- lab word
+   \override LyricSpace #'minimum-distance = #0.0
+   syl -- lab word
 }
-
-