[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
defining an \uppercase markup function
From: |
Kieren MacMillan |
Subject: |
defining an \uppercase markup function |
Date: |
Wed, 9 Sep 2009 09:58:39 -0400 |
Hello all,
I'm trying to define an \uppercase markup function... so far, I've
got [modelled on an existing snippet]
#(define-markup-command
(uppercase paper props str)
(string?)
"Return the string characters in UPPERCASE. Syntax: \\uppercase #
\"string\""
(interpret-markup paper props
(make-simple-markup
(string-upcase str))))
The problem is, something like
\markup \uppercase \fromproperty #'header:title
fails. In general, I'd rather have the syntax be
\markup \uppercase { "test }
instead of
\markup \uppercase #"test"
What do I have to do to my function to make this happen?
Thanks,
Kieren.
- defining an \uppercase markup function,
Kieren MacMillan <=