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
#(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 }} #}))
\
> (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
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