Am 13.03.2017 um 13:07 schrieb David Kastrup: > Urs Liska <u...@openlilylib.org> writes: > >> when writing a callback function to override a stencil, how can I attach >> the original point-and-click link to the resulting graphics? > Isn't it attached automatically? I don't think the usual stencil > callbacks bother with point-and-click info themselves.
It seems not, they are not clickable. I'm calling the function with \override Tie.stencil = #arced-curve-stencil which is defined as #(define (arced-curve-stencil grob) ... and returns the result of a (ly:stencil-translate (ly:make-stencil call. > >> Is that even possible, as I'm not actually dealing with the grob >> anymore (isn't it)? >> >> I know how to get the location from inside the ties and slurs I'm >> dealing with, but I don't know how I can get this information back >> into the resulting element in the PDF. > With stencils, you should not need to do anything. When calling > ly:engraver-make-grob yourself, be sure to specify a good cause. Then > the originating event's point-and-click info will be automatically > attached. As usual the information about ly:engraver-make-grob on the Scheme-functions page doesn't help me very much. All I would be able to figure out is the cause, but what kind of "engraver instance" should I be referring to here? -- u...@openlilylib.org https://openlilylib.org http://lilypondblog.org _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user