Re: TextScript.outside-staff-padding and text's baseline

2018-10-21 Thread Urs Liska
Am 21.10.2018 um 11:03 schrieb David Kastrup: Torsten Hämmerle writes: David Kastrup wrote Anything wrong with using a callback? No, not at all, callbacks are fine and do solve the problem.. But given the fact that "aligning to the baseline" is specific to text so that different up/down st

Re: TextScript.outside-staff-padding and text's baseline

2018-10-21 Thread Torsten Hämmerle
David Kastrup wrote > Given how often this occurs, maybe we should create some function for > that purpose rather than putting pairs everywhere in peacemeal? > > The principal question is what to do when the event does not have an > explicit direction. Then one would have to refer to the grob cal

Re: TextScript.outside-staff-padding and text's baseline

2018-10-21 Thread David Kastrup
Torsten Hämmerle writes: > David Kastrup wrote >> Anything wrong with using a callback? > > No, not at all, callbacks are fine and do solve the problem.. > But given the fact that "aligning to the baseline" is specific to text so > that different up/down staff-padding values are rather the rule t

Re: TextScript.outside-staff-padding and text's baseline

2018-10-21 Thread Torsten Hämmerle
David Kastrup wrote > Anything wrong with using a callback? No, not at all, callbacks are fine and do solve the problem.. But given the fact that "aligning to the baseline" is specific to text so that different up/down staff-padding values are rather the rule than the exception, I thought it'd be

Re: TextScript.outside-staff-padding and text's baseline

2018-10-20 Thread Kieren MacMillan
Hi Aaron, > The baselines are aligned. It is just that "g" in the default font lies > above the baseline, so it looks odd. Change _"g" to _"gb" and you can see > that the b's align. Ah! Yes. Actually, changing it to 'q' makes more sense, so that the set above and below the staff are identica

Re: TextScript.outside-staff-padding and text's baseline

2018-10-20 Thread Aaron Hill
On 2018-10-20 5:49 pm, Aaron Hill wrote: On 2018-10-20 5:45 pm, Kieren MacMillan wrote: The baselines above the staff seem aligned, but not below the staff. Is that expected behaviour? Hi Kieren, The baselines are aligned. It is just that "g" in the default font lies above the baseline, so i

Re: TextScript.outside-staff-padding and text's baseline

2018-10-20 Thread Aaron Hill
On 2018-10-20 5:45 pm, Kieren MacMillan wrote: Hi Aaron, \version "2.19.82" { \override TextScript.staff-padding = #(lambda (grob) (let ((dir (ly:event-property (event-cause grob) 'direction))) (if (> dir 0) 2.5 3.5))) g' _"g" ^"q" g' _"b" ^"b" } The baselines above the s

Re: TextScript.outside-staff-padding and text's baseline

2018-10-20 Thread Kieren MacMillan
Hi Aaron, > > \version "2.19.82" > { > \override TextScript.staff-padding = #(lambda (grob) >(let ((dir (ly:event-property (event-cause grob) 'direction))) > (if (> dir 0) 2.5 3.5))) > g' _"g" ^"q" > g' _"b" ^"b" > } > The baselines above the staff seem aligned, but not belo

Re: TextScript.outside-staff-padding and text's baseline

2018-10-20 Thread Aaron Hill
On 2018-10-20 2:51 pm, David Kastrup wrote: Torsten Hämmerle writes: The only thing I do not like about staff-padding is that, strictly speaking, we'd need different values for up and down direction: Above the stave, just the descenders go between stave and text baseline, whereas below the s

Re: TextScript.outside-staff-padding and text's baseline

2018-10-20 Thread Urs Liska
Hi Kieren, Am 20.10.2018 um 21:22 schrieb Kieren MacMillan: Hi Urs, Is there a way to force text elements to a common *baseline* (as long as collision avoidance doesn't force them farther away from the staff? This is a long-standing irritation of mine, with respect to Lily’s text/markup ha

Re: TextScript.outside-staff-padding and text's baseline

2018-10-20 Thread David Kastrup
Torsten Hämmerle writes: > The only thing I do not like about staff-padding is that, strictly speaking, > we'd need different values for up and down direction: > Above the stave, just the descenders go between stave and text baseline, > whereas below the stave, the baseline has to be sufficiently

Re: TextScript.outside-staff-padding and text's baseline

2018-10-20 Thread Torsten Hämmerle
The only thing I do not like about staff-padding is that, strictly speaking, we'd need different values for up and down direction: Above the stave, just the descenders go between stave and text baseline, whereas below the stave, the baseline has to be sufficiently far away from the stave so that th

Re: TextScript.outside-staff-padding and text's baseline

2018-10-20 Thread David Kastrup
Urs Liska writes: > Hi, > > I'm trying to place a number of TextScript elements on a common > baseline (similar to how lyrics are typeset). > > Using outside-staff-padding on first sight seems to work but it > doesn't really do the job. > > \version "2.19.82" > > { > \override TextScript.outsid

Re: TextScript.outside-staff-padding and text's baseline

2018-10-20 Thread Kieren MacMillan
Hi Urs, > Is there a way to force text elements to a common *baseline* (as long as > collision avoidance doesn't force them farther away from the staff? This is a long-standing irritation of mine, with respect to Lily’s text/markup handling… The only hack I’ve found so far is to force a common

TextScript.outside-staff-padding and text's baseline

2018-10-20 Thread Urs Liska
Hi, I'm trying to place a number of TextScript elements on a common baseline (similar to how lyrics are typeset). Using outside-staff-padding on first sight seems to work but it doesn't really do the job. \version "2.19.82" { \override TextScript.outside-staff-padding = 2 g' _"g" ^"q"