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