Forcing hyphens to be shown: Difference between revisions
Appearance
No edit summary |
mNo edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
If LilyPond does not think there is space for a hyphen, it will be omitted. | If LilyPond does not think there is space for a hyphen, it will be omitted. This behaviour can be overridden with the <code>minimum-distance</code> property of <code>LyricHyphen</code>. | ||
<lilypond version="2.24"> | <lilypond version="2.24"> | ||
| Line 19: | Line 19: | ||
</lilypond> | </lilypond> | ||
[[Category:Vocal music]] | |||
[[Category:Included in the official documentation]] | [[Category:Included in the official documentation]] | ||
[[Category:Snippet]] | |||
Latest revision as of 05:16, 13 December 2025
If LilyPond does not think there is space for a hyphen, it will be omitted. This behaviour can be overridden with the minimum-distance property of LyricHyphen.
\version "2.24"
\relative c'' {
c32 c c c
c32 c c c
c32 c c c
c32 c c c
}
\addlyrics {
syl -- lab word word
\override LyricHyphen.minimum-distance = #1.0
syl -- lab word word
\override LyricHyphen.minimum-distance = #2.0
syl -- lab word word
\revert LyricHyphen.minimum-distance
syl -- lab word word
}