]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/lyric-hyphen-retain.ly
*** empty log message ***
[lilypond.git] / input / regression / lyric-hyphen-retain.ly
1
2 \version "2.4.0"
3
4 \header {
5
6 texidoc = "In tightly engraved music, hyphens are removed, except at the
7 end of the line.  Normally, lyrics are not typeset so tightly, but by
8 tuning down @code{padding} of in @code{SeparationItem}, syllables are put 
9 closer together, and as a result hyphens may disappear.
10
11 In some languages (e.g. German and Hungarian), hyphens should not
12 disappear, since spelling depends on hyphenation. For that purpose,
13 hyphens can be forced to remain setting @code{spacing-procedure} to
14 @code{Hyphen_spanner::set_spacing_rods} of the @code{LyricHyphen}
15 grob.  The @code{minimum-length} property may be used to tune the
16 amount
17
18 "
19
20 }
21
22 \score {
23 <<     \new Staff \relative c'' { \time 1/4 c16[ c c  c]
24 \time 1/4
25 c16[ c c c]
26 \time 1/4
27 c16[ c c c]
28
29 }
30       \new Lyrics \with {
31         % Otherwise lyrics are so far apart that hyphens don't disappear
32           \override SeparationItem #'padding = #0.0
33       }
34       \lyricmode {
35           bla -- bla -- bla -- bla --
36           bla -- bla -- bla -- bla --
37
38           \override LyricHyphen  #'minimum-length = #0.7
39           \override LyricHyphen  #'spacing-procedure =
40           #Hyphen_spanner::set_spacing_rods
41
42            bla -- bla -- bla -- bla 
43        }>>
44     \layout   {
45         indent = 0.0 \cm
46         linewidth = 3.4 \cm
47
48         \context {
49             \Staff \remove "Time_signature_engraver"
50         }
51         
52     }
53       
54 }
55
56