Re: wordwrap on argument of markup function

2024-06-03 Thread Simon Albrecht
Thanks for elaborating! I forgot to hit Reply All when I replied to Jean, excuse me. On 02.06.24 10:10, Ya Gloops wrote: #(define-markup-command (freely layout props width-param text) (number? markup-list?)    "Format text for one bar of 'width-param' quarter notes’ length"    (interpret-marku

Re: wordwrap on argument of markup function

2024-06-02 Thread Ya Gloops
#(define-markup-command (freely layout props width-param text) (number? markup-list?)   "Format text for one bar of 'width-param' quarter notes’ length"   (interpret-markup layout props                     #{\markup\box \line { \override #`(line-width . ,width-param) \wordwrap { #text }} #})) \

Re: wordwrap on argument of markup function

2024-06-01 Thread Jean Abou Samra
> (define-markup-command (freely layout props width-param text) (number? > markup?) ^^^ Make that `markup-list?`. Otherwise, your command is accepting only a single markup. In your example, \line inside the command is

wordwrap on argument of markup function

2024-06-01 Thread Simon Albrecht
Hello kind community folk, how do I make \wordwrap act correctly on the argument to this markup function? And why does \line not make \box act on the markup as a whole, as it is said to do? Best, Simon \version "2.25.14" #(define-markup-command (freely layout props width-param text) (numb