]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/lyric-hyphen-retain.ly
Issue 5167/6: Changes: show \markup xxx = ... \etc assignments
[lilypond.git] / input / regression / lyric-hyphen-retain.ly
1 \header {
2
3   texidoc = "The minimum distance between lyrics is determined by the
4 @code{minimum-distance} of @code{LyricHyphen} and
5 @code{LyricSpace}.
6
7 The ideal length of a hyphen is determined by its @code{length}
8 property, but it may be shortened down to @code{minimum-length} in
9 tight situations. If in this it still does not fit, the hyphen will be
10 omitted.
11
12 Like all overrides within @code{\\lyricsto} and @code{\\addlyrics}, the
13 effect of a setting is delayed is one syllable."
14
15 }
16
17 \version "2.19.21"
18
19 \layout {
20   ragged-right = ##t
21 }
22
23
24 \relative {
25   \time 2/4
26   c''32 c c c 
27   c32 c c c 
28   c32 c c c 
29   c32 c c c 
30   c32 c c c 
31 }
32 \addlyrics
33 {
34   %% tight spacing: hyphen disappears 
35   syl -- lab word
36
37   %% increase minimum-distance: forces more space, so hyphen reappears
38   \override LyricHyphen.minimum-distance = #1.0
39   syl -- lab word
40
41   %% minimum-distance 0 for LyricSpace: this places words next to each other. 
42   \override LyricSpace.minimum-distance = #0.0
43   syl -- lab word
44 }