Re: API for getting various kinds of grobs

2013-04-04 Thread Janek Warchoł
Hi, 2013/3/14 Joe Neeman joenee...@gmail.com: On Wed, Mar 13, 2013 at 4:33 PM, Janek Warchoł janek.lilyp...@gmail.com wrote: [discussion about aligning grobs on other grobs] Is there any place with such information? I don't recall seeing anything like that. It would be useful. Grep for

Re: API for getting various kinds of grobs

2013-03-13 Thread Joe Neeman
What i would like: specify the reference grob in a property, for example \override LyricText #'align-to = #'Stem and then have one callback function that would be smart enough to find appropriate grob to use and feed it to the method calculating alignment. Hi Janek, I think this would be

Re: API for getting various kinds of grobs

2013-03-13 Thread Janek Warchoł
Hi Xavier, Joe, On Wed, Mar 13, 2013 at 12:05 AM, Xavier Scheuer x.sche...@gmail.com wrote: I'm not a developer, so my question might be stupid, but Can't you use existing break-alignable-interface, break-aligned-interface and break-alignment-interface and *expand* a property like

Re: API for getting various kinds of grobs

2013-03-13 Thread Joe Neeman
On Wed, Mar 13, 2013 at 4:33 PM, Janek Warchoł janek.lilyp...@gmail.comwrote: On Wed, Mar 13, 2013 at 12:27 AM, Joe Neeman joenee...@gmail.com wrote: The easiest way to define get_grob is to make 'align-to a list of symbols, which you interpret as a path from the current grob to the grob

Re: API for getting various kinds of grobs

2013-03-12 Thread Janek Warchoł
Hi, i began rewriting self_alignment code; first part is here - please review: http://codereview.appspot.com/7768043 To move forward i have to understand a few things: strange behaviour of relative_coordinate http://lists.gnu.org/archive/html/lilypond-devel/2013-03/msg00131.html and DynamicText

Re: API for getting various kinds of grobs

2013-03-12 Thread Xavier Scheuer
On 11 March 2013 01:23, Janek Warchoł janek.lilyp...@gmail.com wrote: Hi, (snip) What i would like: specify the reference grob in a property, for example \override LyricText #'align-to = #'Stem Hi, I'm not a developer, so my question might be stupid, but Can't you use existing

Re: API for getting various kinds of grobs

2013-03-11 Thread Werner LEMBERG
What i would like: specify the reference grob in a property, for example \override LyricText #'align-to = #'Stem and then have one callback function that would be smart enough to find appropriate grob to use and feed it to the method calculating alignment. From an API point of view,

API for getting various kinds of grobs

2013-03-10 Thread Janek Warchoł
Hi, since Mike is very busy i decided to post some of my questions to the list. I'm working on simplifying self_alignment_interface - i hope to unify different methods that are used now into one versatile and more powerful method. Currently virtually all grobs are aligned relative to their