Re: alternate spanner-id-aware spanner does not work in 2.39.48

2016-10-16 Thread Rutger Hofman

Yes, this helps! Thanks a lot!

Rutger

On 10/16/2016 08:15 PM, David Kastrup wrote:

Rutger Hofman  writes:

Hm, I suspect


((or
  (and
   (string? sp-id)
   (string? es-id)
   (string=? sp-id es-id))
  ;; deal with \startTextSpan, \stopTextSpan
  (and
   (null? sp-id)
   (null? es-id)))


That would be more succinctly be expressed as

  ((equal? sp-id es-id)

In which case it should work equally well in the old and the new
LilyPond versions.  Assuming I counted the parens right.




___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: alternate spanner-id-aware spanner does not work in 2.39.48

2016-10-16 Thread David Kastrup
Rutger Hofman  writes:

Hm, I suspect

> ((or
>   (and
>(string? sp-id)
>(string? es-id)
>(string=? sp-id es-id))
>   ;; deal with \startTextSpan, \stopTextSpan
>   (and
>(null? sp-id)
>(null? es-id)))

That would be more succinctly be expressed as

  ((equal? sp-id es-id)

In which case it should work equally well in the old and the new
LilyPond versions.  Assuming I counted the parens right.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: alternate spanner-id-aware spanner does not work in 2.39.48

2016-10-16 Thread Rutger Hofman

Finish my sentence at the end of the paragraph:

... No spanners are drawn at all in this example.

On 10/16/2016 07:53 PM, Rutger Hofman wrote:

Hello list,

to my grief I noticed that David Nalesnik's id-aware spanner
implementation in scheme no longer works in 2.39.48. It gives me errors
like "warning: No spanner to end!!" and "warning: incomplete spanner
removed!" if there are overlapping spanners. No

For reference, I again attach David N's (most recent) textspanner
implementation. The \score block is a minimal example.

Note: this worked fine with 2.19.39, and fails with 2.19.48. I didn't
look at intermediate versions.

Rutger




___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user