[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: markup function
From: |
Noeck |
Subject: |
Re: markup function |
Date: |
Sat, 05 Jan 2013 17:10:35 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Thunderbird/17.0 |
> Have you tried looking into the "Extending LilyPond" manual?
>
> <URL:http://lilypond.org/doc/v2.16/Documentation/extending/markup-functions>
I did not reach it, because I did not understand the sections 2.1 and
2.2 and then I gave up. Examples would help me a lot in these sections.
I played around, but I could not figure out how functions are defined
and how scheme works. My test is below, just to show on which basic
level I am stuck.
\version "2.17.9"
function = % does not work
#(define-scheme-function
(parser location text)
(markup?)
\markup{ \with-url #"http" #text} )
\function "Hallo"
Section 2.5.3 finally has an example and using that, I could finally
write the following function. But I only understand the part in #{ #}.
The words "layout props" and the "interpret-markup" are still cryptic to
me. Is there a documentation where this is described for noobs like me?
#(define-markup-command (myfunction layout props text) (markup?)
"Draw a double box around text."
(interpret-markup layout props
#{\markup \with-url #"http" { #text }#}))
How can I combine two strings? The #"http" and the #text in this example?
How can I change a string to lower case?
Cheers,
Joram
- markup function, Noeck, 2013/01/05
- Re: markup function, David Kastrup, 2013/01/05
- Re: markup function,
Noeck <=
- Re: markup function, Noeck, 2013/01/05
- Re: markup function, David Kastrup, 2013/01/05
- Re: markup function, Noeck, 2013/01/05
- Re: markup function, David Kastrup, 2013/01/05
- Re: markup function, Noeck, 2013/01/05
- Re: markup function, Thomas Morley, 2013/01/06