Hello David,

many thanks for the proposed solution. For what I can see now, it works fine. And sorry for wrongly attributing authorship – no idea how I came to do that. Anyway, I corrected it now.
Best regards,
Simon

Am 06.09.2014 um 23:32 schrieb David Nalesnik:
Hi,


On Sat, Sep 6, 2014 at 4:04 PM, David Nalesnik <[email protected] <mailto:[email protected]>> wrote:


    I don't yet know what is causing the problem...


OK, I think I may have solved it.  Fingers crossed.

The problem occurs when the callback which creates a stencil for the hyphen creates nothing. Now why that would be the case I couldn't say. After all, a hyphen does appear! (I wonder if that is a bug.)

Anyway, your example and mine compiles nicely with a simple change from the > operator to >= in a function from your file lyric-word.ily (as I've done below)

#(define (compress-pair syl-a hyphen syl-b threshold)
   (let* ((hyphen-sten (ly:lyric-hyphen::print hyphen))
          (hyphen-ex
           (if (ly:stencil? hyphen-sten)
               (ly:stencil-extent hyphen-sten X)
               (cons (/ threshold -2) (/ threshold 2)))))
(if (>= (interval-length hyphen-ex) threshold) ;; now greater-than-or-equal-to
         '() ; no compression--DO NOTHING!

Let me know if you run into any problems with this change.

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to