On 11/13/10 3:18 AM, "Marc Hohl"<address@hidden> wrote:
Am 13.11.2010 06:21, schrieb address@hidden:
I can think of no way to simplify this code further. If you have any
ideas I'd be happy to hear them.
There was the idea to include this into the Tab_note_heads_engraver, and
if it were
possible to include the parenthesize stuff into that engraver as well,
it would
a) simplify the callbacks
b) solve the problem about the harmonic brackets
Is it possible to detect the tie/slur/glissando cases within the
engraver and call a
routine to parenthesize the fret number? Then the resulting grob is a
compound object that
gets its angle brackets displayed correctly without fiddling with
padding and stuff.
It may be possible to include the tie/slur/glissando in the
tab_note_heads_engraver, but I haven't yet been able to get it to work
properly.
However, we can't do the whole display-cautionary thing in the engraver,
because the engraver doesn't know about such things as split ties. That has
to be dealt with in the tab note head callback.