lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: can InstrumentName padding centered according to the longestinstrume


From: Phil Holmes
Subject: Re: can InstrumentName padding centered according to the longestinstrument name?
Date: Mon, 11 May 2015 16:42:52 +0100


I would suggest tweaking the indents to take account of the instrument names, but setting a warning "Indent adjusted to xx to accommodate instrument name".

--
Phil Holmes
 
 
----- Original Message -----
To: tisimst
Sent: Monday, May 11, 2015 4:28 PM
Subject: Re: can InstrumentName padding centered according to the longestinstrument name?



On Mon, May 11, 2015 at 10:04 AM, tisimst <address@hidden> wrote:
Fantastic work, David!

Appreciate that!
 
Definitely more involved code than you would expect, but very thoroughly done, allowing for non-centered alignments even. This would make an excellent addition to the core code, IMHO. Perhaps called "centered-name-column"?

What bugs me about it is the fact that so many steps are required for every name and this amounts to a lot of repeated effort.  For every name, we need to calculate the ideal position of all names all over again.  If there were some way to cache the results of that calculation, do it once and then just look it up, that would be great.

I wonder if a grouping grob which contains all the individual InstrumentName grobs and handles their relative positioning would be a better way to go.

 

The only thing that I would further request (and this applies to instrumentName in general) is that the indent variable automatically adjust itself to be larger to compensate for names that run into the left margin (and sometimes off the page entirely!). It just seems like the kind of thing that should automatically happen, but maybe that's just me thinking out loud.

Yes, I've run into this--needing to tweak the indent to accommodate text that goes off the left edge.  Not sure what the best practice would be.  After all, you do want the numbers you set for indent and short-indent to exactly match what you specify.  Maybe there should simply be a warning? 

David


_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user

reply via email to

[Prev in Thread] Current Thread [Next in Thread]