|
From: | David Nalesnik |
Subject: | Re: Lyric word engraver bug |
Date: | Sat, 6 Sep 2014 17:37:04 -0500 |
Here's an unrelated suggestion.When you use \wordcompress with a value which triggers the warning, the music function doesn't return music, so you end up with a fatal error (rather defeating the gentle purpose of a simple warning!)Why not something like:wordcompress =#(define-music-function (parser location num) (number?)(cond((> num 0.5)(and (ly:warning "Attention: 0.4 is a rather large value for \\wordcompress already!")(make-music 'Music)))((< num 0)(ly:error "\\wordcompress should get a non-negative value."))(else #{\override LyricWord.after-line-breaking = #(lyric-word-compressor num)\override LyricHyphen.minimum-distance = #0\override LyricSpace.minimum-distance = #1#})))
[Prev in Thread] | Current Thread | [Next in Thread] |