[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Feed list of strings into markup command expecting markuplist?
From: |
Lukas-Fabian Moser |
Subject: |
Feed list of strings into markup command expecting markuplist? |
Date: |
Mon, 30 Mar 2020 10:30:30 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 |
Hi all,
I just can't seem to get it right:
\version "2.19"
#(define-markup-command (function-A-taking-markup-list layout props
input-list) (markup-list?)
(interpret-markup layout props (markup (string-concatenate
input-list))))
#(define-markup-command (feed-split-string-into-A layout props str)
(string?)
(let* ((strings (string-split str #\,)))
(interpret-markup layout props
#{ \markup { \function-A-taking-markup-list #strings } #} ;
HERE: can this be done without #{ ... #} ?
)))
\markup {
\function-A-taking-markup-list { a b c }
\feed-split-string-into-A "d,e,f"
}
What is the scheme way to construct a markup list (out of a list of
strings, for example) that can be passed to a markup command?
In the line marked HERE, I would have expected something like (markup
#:function-A-taking-markup-list strings), but this did not work.
Probably it's because I never fully understood what a markup-list really
is. :-)
Best
Lukas
- Feed list of strings into markup command expecting markuplist?,
Lukas-Fabian Moser <=