Thanks for the tip, Valentin, great to know about this.
On Sat, May 4, 2024 at 3:22 AM Valentin Petzel wrote:
> Hello Alec,
>
> note that since 2.24 we have a neat markup function
> \with-string-transformer,
> which is called whenever a string is found, and does a lot of the logic
> for
> you (s
A-ha! That makes sense and works great, thanks David.
On Sat, May 4, 2024 at 1:54 AM David Kastrup wrote:
> Alec Bartsch writes:
>
> > I'm attempting to write a markup command that, in addition to other
> > formatting, strips a trailing # or b character off the end of the text
> > argument and
Hello Alec,
note that since 2.24 we have a neat markup function \with-string-transformer,
which is called whenever a string is found, and does a lot of the logic for
you (such as making sure this is called upon a string, not a complex markup:
\markup
\with-string-transformer
#(lambda (layou
Alec Bartsch writes:
> I'm attempting to write a markup command that, in addition to other
> formatting, strips a trailing # or b character off the end of the text
> argument and replaces it with the appropriate accidental markup. I think
> I'm super-close but stuck on the proper syntax for passi
I'm attempting to write a markup command that, in addition to other
formatting, strips a trailing # or b character off the end of the text
argument and replaces it with the appropriate accidental markup. I think
I'm super-close but stuck on the proper syntax for passing a markup list to
the concat.