Forcing hyphens to be shown: Difference between revisions
Appearance
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series |
No edit summary |
||
| Line 20: | Line 20: | ||
[[Category:Included in the official documentation]] | [[Category:Included in the official documentation]] | ||
[[Category:Vocal music]] | [[Category:Vocal music]][[Category:Snippet]] | ||
Revision as of 22:53, 21 November 2025
If LilyPond does not think there is space for a hyphen, it will be omitted. The 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
}