Forcing hyphens to be shown: Difference between revisions
Appearance
Import snippet from LSR |
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 |
||
| Line 1: | Line 1: | ||
If LilyPond does not think there is space for a hyphen, it will be omitted. The behaviour can be overridden with the <code>minimum-distance</code> property of <code>LyricHyphen</code>. | If LilyPond does not think there is space for a hyphen, it will be omitted. The behaviour can be overridden with the <code>minimum-distance</code> property of <code>LyricHyphen</code>. | ||
<lilypond version="2.24 | <lilypond version="2.24"> | ||
\relative c'' { | \relative c'' { | ||
c32 c c c | c32 c c c | ||
Revision as of 18:48, 16 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
}