]> git.donarmstrong.com Git - lilypond.git/blob - input/test/lyric-hyphen-retain.ly
(Lilypond_snippet.notice_include):
[lilypond.git] / input / test / lyric-hyphen-retain.ly
1
2
3 \header {
4
5 texidoc = "In tight situations, hyphens are removed, except at the
6 end of the line.  Normally, lyrics aren't set this tight, but by
7 tuning down @code{padding} of in @code{SeparationItem}, syllables are put closer together, and hyphens may disappear.
8
9 In some languages (eg. German and Hungarian).  hyphens should not
10 disappear, since spelling depends on hyphenation. In this case,
11 hyphens can be forced to remain by setting @code{minimum-length} on
12 the LyricHyphen grob.
13 "
14
15 }
16
17 \score {
18 <<    \notes \new Staff \relative c'' { \time 1/4 c16[ c c  c]
19 \time 1/4
20 c16[ c c c]
21 \time 1/4
22 c16[ c c c]
23
24 }
25     \lyrics \new LyricsVoice \with {
26         % Otherwise lyrics are so far apart that hyphens don't disappear
27         SeparationItem \set #'padding = #0.0
28         }{ bla -- bla -- bla -- bla --
29            bla -- bla -- bla -- bla --
30
31            \property LyricsVoice . LyricHyphen \set #'minimum-length = #0.7
32            \property LyricsVoice . LyricHyphen \set #'spacing-procedure =
33                   #Hyphen_spanner::set_spacing_rods
34
35            bla -- bla -- bla -- bla 
36        }>>
37     \paper   {
38         indent = 0.0 \cm
39         linewidth =  3.4 \cm
40
41         \translator {
42             \StaffContext \remove "Time_signature_engraver"
43         }
44         
45     }
46       
47 }
48
49