On Jun 26, 2011, at 4:57 PM, Neil Puttock wrote: > On 13 June 2011 12:03, <m...@apollinemike.com> wrote: > >> My goal is to bypass the default calculation and replace it with this one, >> and it is easier to harvest the information about Y placement relative to >> the staff before line breaking happens. Currently, there is no mechanism in >> Line_spanner::calc_bound_info that can outsource the Y calculation to >> another function, and I wouldn't want to code dup all of the parts of >> Line_spanner::calc_bound_info that are worth keeping into a glissando >> specific function. Taking that into account, does that seem like the right >> approach? > > Now I've thought about it a bit more, it seems to be the only approach > that will work since the original grob no longer exists if you defer > the calculation (I did say my question might be silly. :) > > BTW, I notice there's another (undocumented) key in bound-details > which you're ignoring when the before-line-breaking callback is > called: 'default > > Cheers, > Neil >
Thanks Neil! New patch uploaded that looks for 'default and factors it into the bound details. Cheers, MS _______________________________________________ lilypond-devel mailing list lilypond-devel@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-devel