]> git.donarmstrong.com Git - lilypond.git/blob - input/test/lyric-hyphen-retain.ly
*** empty log message ***
[lilypond.git] / input / test / lyric-hyphen-retain.ly
1
2 \version "2.1.28"
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 by overriding @code{minimum-length} of
14 the @code{LyricHyphen} grob.
15 "
16
17 }
18
19 \score {
20 <<    \notes \new Staff \relative c'' { \time 1/4 c16[ c c  c]
21 \time 1/4
22 c16[ c c c]
23 \time 1/4
24 c16[ c c c]
25
26 }
27     \lyrics \new Lyrics \with {
28         % Otherwise lyrics are so far apart that hyphens don't disappear
29         \override SeparationItem #'padding = #0.0
30         }{ bla -- bla -- bla -- bla --
31            bla -- bla -- bla -- bla --
32
33            \override LyricHyphen  #'minimum-length = #0.7
34            \override LyricHyphen  #'spacing-procedure =
35                   #Hyphen_spanner::set_spacing_rods
36
37            bla -- bla -- bla -- bla 
38        }>>
39     \paper   {
40         indent = 0.0 \cm
41         linewidth = 3.4 \cm
42
43         \translator {
44             \StaffContext \remove "Time_signature_engraver"
45         }
46         
47     }
48       
49 }
50
51