Re: centering of instrument names

2009-07-15 Thread Joe Neeman
On Wed, 2009-07-15 at 22:07 +0100, Neil Puttock wrote: > 2009/5/30 Joe Neeman : > > > The sanest behaviour IMO is the behaviour of your current patch, but > > with a different meaning for 'padding. I can see two ways to do this: > > the quick&dirty way to get this is to replace > > instrument-name

Re: centering of instrument names

2009-07-15 Thread Neil Puttock
2009/5/30 Joe Neeman : > The sanest behaviour IMO is the behaviour of your current patch, but > with a different meaning for 'padding. I can see two ways to do this: > the quick&dirty way to get this is to replace > instrument-name::calc-combined-delimiters-offset with > instrument-name::calc-min-

Re: centering of instrument names

2009-05-29 Thread Joe Neeman
On Wed, 2009-05-27 at 21:35 +0100, Neil Puttock wrote: > 2009/5/24 Joe Neeman : > > > Fair enough, but I don't think 'padding has the right meaning here. > > Ideally, 'padding should be the smallest distance between an > > InstrumentName and the SystemStartXXX to its right. Here, it's the > > dist

Re: centering of instrument names

2009-05-27 Thread Neil Puttock
2009/5/24 Joe Neeman : > Fair enough, but I don't think 'padding has the right meaning here. > Ideally, 'padding should be the smallest distance between an > InstrumentName and the SystemStartXXX to its right. Here, it's the > distance between the rightmost InstrumentName and the leftmost > System

Re: centering of instrument names

2009-05-24 Thread Francisco Vila
2009/5/24 Joe Neeman : > On Sun, 2009-05-24 at 02:32 +, Kieren MacMillan wrote: >> Hi Neil (et al), >> >> I'm definitely talkin' out the back of my head here, but...  =\ >> >> Can the instrument name blob take advantage of a "vertical skyline" >> ("profile"?) the way the rest of the notation (

Re: centering of instrument names

2009-05-24 Thread Kieren MacMillan
Hi Joe, We can (and do) use sideways pointing skylines (although they're called "horizontal skylines" in the source). I think the problem here is that the InstrumentNames currently are capable of positioning themselves (ie. they don't have to know about the other InstrumentNames), and it re

RE: centering of instrument names

2009-05-24 Thread Joe Neeman
On Sun, 2009-05-24 at 02:32 +, Kieren MacMillan wrote: > Hi Neil (et al), > > I'm definitely talkin' out the back of my head here, but... =\ > > Can the instrument name blob take advantage of a "vertical skyline" > ("profile"?) the way the rest of the notation (notes, etc.) take advantage o

Re: centering of instrument names

2009-05-24 Thread Francisco Vila
2009/5/24 Kieren MacMillan : > Can the instrument name blob take advantage of a "vertical skyline" > ("profile"?) the way the rest of the notation (notes, etc.) take advantage of > a "horizontal skyline"? That would certainly solve the problem precisely, > without having to manually adjust #'pad

RE: centering of instrument names

2009-05-23 Thread Kieren MacMillan
Hi Neil (et al), I'm definitely talkin' out the back of my head here, but... =\ Can the instrument name blob take advantage of a "vertical skyline" ("profile"?) the way the rest of the notation (notes, etc.) take advantage of a "horizontal skyline"? That would certainly solve the problem prec

Re: centering of instrument names

2009-05-23 Thread Joe Neeman
On Sat, 2009-05-23 at 18:57 -0600, Carl D. Sorensen wrote: > > > On 5/23/09 6:48 PM, "Joe Neeman" wrote: > > > On Sat, 2009-05-23 at 23:38 +0100, Neil Puttock wrote: > >> A similar effect could be achieved by setting a negative value for > >> 'padding (see attached image), > > > > Fair enough,

Re: centering of instrument names

2009-05-23 Thread Carl D. Sorensen
On 5/23/09 6:48 PM, "Joe Neeman" wrote: > On Sat, 2009-05-23 at 23:38 +0100, Neil Puttock wrote: >> 2009/5/23 Joe Neeman : >> >>> If I understand this correctly, you're suggesting that we pad each >>> instrument name according to the largest (wrt X-extent) SystemStartXXX. >> >> That's basica

Re: centering of instrument names

2009-05-23 Thread Joe Neeman
On Sat, 2009-05-23 at 23:38 +0100, Neil Puttock wrote: > 2009/5/23 Joe Neeman : > > > If I understand this correctly, you're suggesting that we pad each > > instrument name according to the largest (wrt X-extent) SystemStartXXX. > > That's basically it, though the extent would be that of the grea

Re: centering of instrument names

2009-05-23 Thread Neil Puttock
2009/5/23 Joe Neeman : > If I understand this correctly, you're suggesting that we pad each > instrument name according to the largest (wrt X-extent) SystemStartXXX. That's basically it, though the extent would be that of the greatest number of stacked delimiters: for example, in the Haydn snippe

Re: centering of instrument names

2009-05-23 Thread Joe Neeman
On Fri, 2009-05-22 at 23:46 +0100, Neil Puttock wrote: > 2009/5/20 Francisco Vila : > > 2009/5/20 Francisco Vila : > >> The key code is this. Given a (big) amount of time I could figure out > >> how it works and try to improve it. > >> > >> http://git.savannah.gnu.org/gitweb/?p=lilypond.git;a=blobd

Re: centering of instrument names

2009-05-23 Thread Valentin Villenave
2009/5/20 Francisco Vila : > Maybe it's not that easy. If the right padding is intended to put the > stencil to the rightmost side, the problem is that the extent of the > brace (if any) is unknown at this moment. And let's not forget that braces can have different sizes from one system to another

Re: centering of instrument names

2009-05-22 Thread Carl D. Sorensen
On 5/22/09 4:46 PM, "Neil Puttock" wrote: > 2009/5/20 Francisco Vila : >> 2009/5/20 Francisco Vila : >>> The key code is this. Given a (big) amount of time I could figure out >>> how it works and try to improve it. >>> >>> http://git.savannah.gnu.org/gitweb/?p=lilypond.git;a=blobdiff;f=lily/s

Re: centering of instrument names

2009-05-22 Thread Neil Puttock
2009/5/20 Francisco Vila : > 2009/5/20 Francisco Vila : >> The key code is this. Given a (big) amount of time I could figure out >> how it works and try to improve it. >> >> http://git.savannah.gnu.org/gitweb/?p=lilypond.git;a=blobdiff;f=lily/system-start-text.cc;h=c99f150fed;hp=494ab1;hb=b12cf254;

Re: centering of instrument names

2009-05-20 Thread Francisco Vila
2009/5/20 Francisco Vila : > The key code is this. Given a (big) amount of time I could figure out > how it works and try to improve it. > > http://git.savannah.gnu.org/gitweb/?p=lilypond.git;a=blobdiff;f=lily/system-start-text.cc;h=c99f150fed;hp=494ab1;hb=b12cf254;hpb=4d0abb92 Maybe it's not that

Re: centering of instrument names

2009-05-19 Thread Francisco Vila
2009/5/20 Patrick McCarty : > On Tue, May 19, 2009 at 10:09 AM, Francisco Vila > wrote: >> Hello, >> >> I think instrument names were recently implemented in a centered >> column by default. I would like to help improving this because the >> exact location of every name is at first well computed

Re: centering of instrument names

2009-05-19 Thread Patrick McCarty
On Tue, May 19, 2009 at 10:09 AM, Francisco Vila wrote: > Hello, > > I think instrument names were recently implemented in a centered > column by default. I would like to help improving this because the > exact location of every name is at first well computed but finally > wrongly typeset, as the

Re: centering of instrument names

2009-05-19 Thread Francisco Vila
2009/5/20 Valentin Villenave : > Are you referring to > http://git.savannah.gnu.org/gitweb/?p=lilypond.git;a=commit;h=b12cf25401fa3007c58593fdf1e05acf7e8aaeb6 > ? Yes, thank you. It is a perfect starting point. Do you agree it needs a slight retouch? -- Francisco Vila. Badajoz (Spain) www.pacone

Re: centering of instrument names

2009-05-19 Thread Valentin Villenave
2009/5/19 Francisco Vila : > I think instrument names were recently implemented in a centered > column by default. I would like to help improving this because the > exact location of every name is at first well computed but finally > wrongly typeset, as the braces are not taken into account. Curren

centering of instrument names

2009-05-19 Thread Francisco Vila
Hello, I think instrument names were recently implemented in a centered column by default. I would like to help improving this because the exact location of every name is at first well computed but finally wrongly typeset, as the braces are not taken into account. Currently, names of staves or gro