Re: Trouble with concat in a markup command

2024-05-04 Thread Alec Bartsch
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

Re: Trouble with concat in a markup command

2024-05-04 Thread Alec Bartsch
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

Re: Trouble with concat in a markup command

2024-05-04 Thread Valentin Petzel
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

Re: Trouble with concat in a markup command

2024-05-04 Thread David Kastrup
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

Trouble with concat in a markup command

2024-05-04 Thread Alec Bartsch
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.