Re: multiple TextSpanners per voice

2015-10-20 Thread Trevor Bača
This is excellent. The combination of the engraver and the ID labeling work perfectly. I think it would be wonderful to consider including David's engraver in a coming public release. On Tue, Oct 20, 2015 at 1:28 PM, David Nalesnik wrote: > > > On Tue, Oct 20, 2015 at 11:50 AM, David Kastrup

Re: multiple TextSpanners per voice

2015-10-20 Thread David Nalesnik
On Tue, Oct 20, 2015 at 11:50 AM, David Kastrup wrote: > Trevor Bača writes: > > > Hi, > > > > I'd like to add that I'm *incredibly* excited by this work. The ability > to > > have multiple text spanners in a voice -- and to tweak each independently > > -- is something I've wanted in LilyPond fo

Re: multiple TextSpanners per voice

2015-10-20 Thread David Kastrup
Trevor Bača writes: > Hi, > > I'd like to add that I'm *incredibly* excited by this work. The ability to > have multiple text spanners in a voice -- and to tweak each independently > -- is something I've wanted in LilyPond for many years. (I responded to a > different thread about this a touch to

Re: multiple TextSpanners per voice

2015-10-20 Thread Trevor Bača
Hi, I'd like to add that I'm *incredibly* excited by this work. The ability to have multiple text spanners in a voice -- and to tweak each independently -- is something I've wanted in LilyPond for many years. (I responded to a different thread about this a touch too early only moments ago; apologi

Re: multiple TextSpanners per voice

2015-10-05 Thread David Nalesnik
Ok, this should do it. The intention is to provide extra functionality to text spanners. By using this code, you have all the functionality of normal text spanners, but you are able to have multiple spanners per voice. You simply need to swap the regular engraver for this one in a layout block,

Re: multiple TextSpanners per voice

2015-10-03 Thread David Nalesnik
On Sat, Oct 3, 2015 at 12:02 PM, David Nalesnik wrote: > > > So here is a revised version of the TextSpanner code. > > Oh *drat* Attached the wrong file. Apologies... DN \version "2.19" %% Based on the rewrite of Text_spanner_engraver in %% input/regression/scheme-text-spanner.ly #(define (a

Re: multiple TextSpanners per voice

2015-10-03 Thread David Nalesnik
On Fri, Oct 2, 2015 at 5:59 PM, David Nalesnik wrote: > > > On Fri, Oct 2, 2015 at 5:49 PM, David Nalesnik > wrote: > >> >> Horizontal_bracket_engraver achieves correct ordering of nested brackets >> through the side-position-interface array 'side-position-elements. >> Brackets closer to the sta

Re: multiple TextSpanners per voice

2015-10-02 Thread David Nalesnik
On Fri, Oct 2, 2015 at 5:49 PM, David Nalesnik wrote: > > Horizontal_bracket_engraver achieves correct ordering of nested brackets > through the side-position-interface array 'side-position-elements. > Brackets closer to the staff are added to the support of brackets further > away. However, thi

Re: multiple TextSpanners per voice

2015-10-02 Thread David Nalesnik
On Fri, Oct 2, 2015 at 12:09 PM, David Nalesnik wrote: > David, > > On Fri, Oct 2, 2015 at 11:26 AM, David Kastrup wrote: > >> David Nalesnik writes: >> >> > Hi all, >> > >> > I'm experimenting with a way to support multiple text spanners in a >> single >> > voice, using the 'spanner-id propert

Re: multiple TextSpanners per voice

2015-10-02 Thread Michael Gerdau
> > The second example shows that tweaks can mess up this reversed ordering > > even further. > > > > Does anyone know what is happening here? I really have no idea :( > > Here's an image. > > (I'm running 2.19.27 with Windows 10, 64-bit, if that's has anything to do > with it.) Just for the r

Re: multiple TextSpanners per voice

2015-10-02 Thread David Nalesnik
Michael, On Fri, Oct 2, 2015 at 11:33 AM, Michael Gerdau wrote: > > > The second example shows that tweaks can mess up this reversed ordering > > > even further. > > > > > > Does anyone know what is happening here? I really have no idea :( > > > > Here's an image. > > > > (I'm running 2.19.27 w

Re: multiple TextSpanners per voice

2015-10-02 Thread David Nalesnik
David, On Fri, Oct 2, 2015 at 11:26 AM, David Kastrup wrote: > David Nalesnik writes: > > > Hi all, > > > > I'm experimenting with a way to support multiple text spanners in a > single > > voice, using the 'spanner-id property which already enables multiple > slurs > > and phrasing slurs. > > >

Re: multiple TextSpanners per voice

2015-10-02 Thread David Kastrup
David Nalesnik writes: > Hi all, > > I'm experimenting with a way to support multiple text spanners in a single > voice, using the 'spanner-id property which already enables multiple slurs > and phrasing slurs. > > The attached code works--until the spanners cross a line break. Then the > order

multiple TextSpanners per voice

2015-10-02 Thread David Nalesnik
Hi all, I'm experimenting with a way to support multiple text spanners in a single voice, using the 'spanner-id property which already enables multiple slurs and phrasing slurs. The attached code works--until the spanners cross a line break. Then the order of the spanners is reversed. I've expe

Re: multiple TextSpanners per voice

2015-10-02 Thread David Nalesnik
On Fri, Oct 2, 2015 at 10:00 AM, David Nalesnik wrote: > Hi all, > > I'm experimenting with a way to support multiple text spanners in a single > voice, using the 'spanner-id property which already enables multiple slurs > and phrasing slurs. > > The attached code works--until the spanners cross