]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/lyric-hyphen-retain.ly
The grand \paper -> \layout, \bookpaper -> \paper renaming.
[lilypond.git] / input / regression / lyric-hyphen-retain.ly
1
2 \version "2.3.22"
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 <<     \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       \new Lyrics \with {
28         % Otherwise lyrics are so far apart that hyphens don't disappear
29           \override SeparationItem #'padding = #0.0
30       }
31       \lyricmode {
32           bla -- bla -- bla -- bla --
33           bla -- bla -- bla -- bla --
34
35           \override LyricHyphen  #'minimum-length = #0.7
36           \override LyricHyphen  #'spacing-procedure =
37           #Hyphen_spanner::set_spacing_rods
38
39            bla -- bla -- bla -- bla 
40        }>>
41     \layout   {
42         indent = 0.0 \cm
43         linewidth = 3.4 \cm
44
45         \context {
46             \Staff \remove "Time_signature_engraver"
47         }
48         
49     }
50       
51 }
52
53