lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unicode accidentals vs. Markup accidentals,Re: Unicode accidentals v


From: Werner LEMBERG
Subject: Re: Unicode accidentals vs. Markup accidentals,Re: Unicode accidentals vs. Markup accidentals
Date: Mon, 16 Jan 2023 12:51:53 +0000 (UTC)

> I quite like this, but incorporating this into my previous code I
> found going down TWO steps to be optically more pleasing.

OK :-)

> \new Staff {
>   \override TextScript.before-line-breaking =
>   #(lambda (grob)
>      (ly:grob-set-property! grob 'text
>                             (markup #:replace
>                                     `(("♭" . ,#{ \markup{ \tflat} #})
>                                       ("♯" . ,#{ \markup{ \tsharp} #})
>                                       ("♮" . ,#{ \markup{ \tnatural} #}))
>                                     (ly:grob-property grob 'text))))
>   c'1^"B♭"
>   c'1^"C♯"
>   c'1^"D♮"
> }

*This* is nice!  It sort-of corresponds to 'active characters' in TeX.
Is there a possibility to register this or a similar function globally
so that all markup strings can use it?

In any case, please submit this to the LSR!


    Werner

reply via email to

[Prev in Thread] Current Thread [Next in Thread]