lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: markup function


From: David Kastrup
Subject: Re: markup function
Date: Sun, 06 Jan 2013 00:40:43 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Noeck <address@hidden> writes:

>> It might make sense to look in the Guile manual for string operations.
>> Other than that, check out the notation manual for a description of
>> available markup commands (like \concat).
>
> I know concat, but it did not work here. For the \with-url command I
> need to replace the #"http" which is somehow different from the "text":
> \with-url #"http" "text"
> For the text part, \concat would work but for the http part I tried all
> combinations of # and $ but I always got scheme errors.
>
> How can I use scheme functions within lilypond code inside #{ #}?

# puts you into Scheme.

> I tried this:
>
> #(define-markup-command (myfunction layout props link text)
> (markup? markup?)
>   "Comment."
>   (interpret-markup layout props
>     #{\markup \with-url #(string-append #"http" #link) #text #}))

#"http" is nonsense since you _are_ already in Scheme.  Just write
"http" here (or more likely, "http://";).  Similarly with link rather
than #link.

-- 
David Kastrup




reply via email to

[Prev in Thread] Current Thread [Next in Thread]