Re: Modifying Stencil for Clef

2019-02-23 Thread Richard Shann
On Sat, 2019-02-23 at 10:16 +0100, Pierre Perol-Schneider wrote: > Hi Richard, > How about: > > \version "2.18.2" > > { >   c' >   %\once \override Staff.ClefModifier.stencil = #ly:text- > interface::print >   %\once \override Staff.ClefModifier.text = \markup \normal-text "T" >   \once \override

Re: Modifying Stencil for Clef

2019-02-23 Thread Pierre Perol-Schneider
Hi Richard, How about: \version "2.18.2" { c' %\once \override Staff.ClefModifier.stencil = #ly:text-interface::print %\once \override Staff.ClefModifier.text = \markup \normal-text "T" \once \override Staff.ClefModifier.stencil = #(lambda (grob) (grob-interpret-markup grob #{ \markup

Re: Modifying Stencil for Clef

2019-02-22 Thread David Kastrup
Richard Shann writes: > On Fri, 2019-02-22 at 18:03 +0100, David Kastrup wrote: >> Richard Shann writes: >> >> > Thank you very much for this explanation - I can now go from the >> > entry >> > > [...] >> > which I was expecting to find the italic 8 replaced by the >> > character T >> > [...]

Re: Modifying Stencil for Clef

2019-02-22 Thread Richard Shann
On Fri, 2019-02-22 at 18:03 +0100, David Kastrup wrote: > Richard Shann writes: > > > Thank you very much for this explanation - I can now go from the > > entry > > [...] > > which I was expecting to find the italic 8 replaced by the > > character T > > [...] > > A markup is not a finished sten

Re: Modifying Stencil for Clef

2019-02-22 Thread David Kastrup
Richard Shann writes: > Thank you very much for this explanation - I can now go from the entry > in the list of layout objects (via the links at the top of the entry) > back to the engravers that create them and then from there (via the > link at the end) to the context that the engraver is part

Re: Modifying Stencil for Clef

2019-02-22 Thread Richard Shann
On Fri, 2019-02-22 at 13:35 +0100, David Kastrup wrote: > Richard Shann writes: > > > On Fri, 2019-02-22 at 23:00 +1100, Andrew Bernard wrote: > > > Hi Richard, > > > This came up in relation to something I was doing only a week or > > > so > > > ago. Have a look here: > > > > > > https://lists.

Re: Modifying Stencil for Clef

2019-02-22 Thread David Kastrup
Richard Shann writes: > On Fri, 2019-02-22 at 23:00 +1100, Andrew Bernard wrote: >> Hi Richard, >> This came up in relation to something I was doing only a week or so >> ago. Have a look here: >> >> https://lists.gnu.org/archive/html/lilypond-user/2019-02/msg00297.htm > Thank you! > It seems I h

Re: Modifying Stencil for Clef

2019-02-22 Thread Richard Shann
On Fri, 2019-02-22 at 13:04 +0100, Lukas-Fabian Moser wrote: > Am 22.02.19 um 12:49 schrieb Richard Shann: > > I've been following up the idea of using markup as stencils: > > > > http://lilypond.org/doc/v2.18/Documentation/notation/modifying-sten > > cils > > > > and have got it working for Note

Re: Modifying Stencil for Clef

2019-02-22 Thread Richard Shann
On Fri, 2019-02-22 at 23:00 +1100, Andrew Bernard wrote: > Hi Richard, > This came up in relation to something I was doing only a week or so > ago. Have a look here: > > https://lists.gnu.org/archive/html/lilypond-user/2019-02/msg00297.htm Thank you! It seems I have to prefix the layout object Cle

Re: Modifying Stencil for Clef

2019-02-22 Thread Lukas-Fabian Moser
Am 22.02.19 um 12:49 schrieb Richard Shann: I've been following up the idea of using markup as stencils: http://lilypond.org/doc/v2.18/Documentation/notation/modifying-stencils and have got it working for NoteHead and for Dots (which was my use- case). But trying to generalize to more layout o

Re: Modifying Stencil for Clef

2019-02-22 Thread Richard Shann
On Fri, 2019-02-22 at 11:49 +, Richard Shann wrote: > I've been following up the idea of using markup as stencils: > > http://lilypond.org/doc/v2.18/Documentation/notation/modifying-stenci > ls > > and have got it working for NoteHead and for Dots (which was my use- > case). But trying to gen

Re: Modifying Stencil for Clef

2019-02-22 Thread Andrew Bernard
Hi Richard, This came up in relation to something I was doing only a week or so ago. Have a look here: https://lists.gnu.org/archive/html/lilypond-user/2019-02/msg00297.html Andrew ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.o

Modifying Stencil for Clef

2019-02-22 Thread Richard Shann
I've been following up the idea of using markup as stencils: http://lilypond.org/doc/v2.18/Documentation/notation/modifying-stencils and have got it working for NoteHead and for Dots (which was my use- case). But trying to generalize to more layout objects I ran into trouble. This I expected woul