On Thu, 14 Apr 2005 12:22:53 +0200 Han-Wen Nienhuys <[EMAIL PROTECTED]> wrote:
> > > On Wed, 2005-04-13 at 18:17 -0300, Jonatan Liljedahl wrote: > > > > I'm trying to make an arrowed line textspanner, I'm almost > > > > there... The problem is that the arrow is attached to the whole > > > > spanner including the text. I wish to attach it only to the > > > > line, which means that it is the Line_spanner::print function I > > > > should hook. But how do I do that? How do I get to the > > > > TextSpanners line print function? > > > > > > you can't. You have to modify the C++ code, or rewrite the C++ in > > > Scheme. Look in line-spanner.cc to see how it works. > > > > So there's no way in scheme to "decompose" the textspanner > > grob/stencil into the separate stencils for > > 1. left edge text, 2. the line, 3. right edge text? > > Correct. I'll take a look in line-spanner.cc and see if I can add a property "arrow-style" or something like that. I think it's a quite common thing to have a textspanner with text in both ends and an arrow in between. It's the last thing that is needed for me to typeset my last composition with Lilypond instead of Finale (which is what is available in school). But otherwise, would it be possible to replace the whole TextSpanner::print function and do both texts and arrow? What should I do in the end of the function, just return the stencil or call something? Another solution would be to put the arrow in the end edge text, and translate it to the left a bit... Is it possible to include markup (with \stencil code-to-draw-arrowhead) in the edge texts somehow? /Jonatan -=( http://kymatica.com )=- _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user