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: Sat, 05 Jan 2013 16:33:45 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Noeck <address@hidden> writes:

> Hi,
>
> how can I write a function that returns a markup?
>
> In Python (using LilyPond syntax) I would write something like:
>
> def function(text):
>     url = "http://www.something"; + text.lower()
>     return \markup { \with-color #red \with-url #url text }

Have you tried looking into the "Extending LilyPond" manual?

<URL:http://lilypond.org/doc/v2.16/Documentation/extending/markup-functions>

-- 
David Kastrup




reply via email to

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