Re: \uppercase function

2023-06-16 Thread Kieren MacMillan
Hi Jean, > \markup uppercase = > \markup \with-string-transformer > #(lambda (layout props str) (string-upcase str)) > \etc That’s what I’m talkin’ about! :) Thanks, Kieren. __ My work day may look different than your work day. Please do not feel

Re: \uppercase function

2023-06-16 Thread Jean Abou Samra
Le vendredi 16 juin 2023 à 15:13 +0100, Mark Knoop a écrit : > Wait, I see there is already a \fontCaps command - does that not work? That's small caps, not normal caps. signature.asc Description: This is a digitally signed message part

Re: \uppercase function

2023-06-16 Thread Jean Abou Samra
Le vendredi 16 juin 2023 à 09:41 -0400, Kieren MacMillan a écrit : > Hi all! > > Anyone have a good \uppercase function they could share? > > I tried to make one, and it doesn’t throw an error, but also doesn’t work: > > ``` > \version "2.25.2" > > #

Re: \uppercase function

2023-06-16 Thread Mark Knoop
>> Hi all! >> Anyone have a good \uppercase function they could share? >> I tried to make one, and it doesn’t throw an error, but also doesn’t >> work: >> \version "2.25.2" >> #(define-markup-command (uppercase layout props arg) (markup?) >>(int

Re: \uppercase function

2023-06-16 Thread Mark Knoop
Not offhand, but I'd start with make-small-caps in define-markup-commands.scm and strip out the is-lower logic. At 09:41 on 16 Jun 2023, Kieren MacMillan wrote: > Hi all! > Anyone have a good \uppercase function they could share? > I tried to make one, and it doesn’t throw an error,

\uppercase function

2023-06-16 Thread Kieren MacMillan
Hi all! Anyone have a good \uppercase function they could share? I tried to make one, and it doesn’t throw an error, but also doesn’t work: \version "2.25.2" #(define-markup-command (uppercase layout props arg) (markup?) (interpret-markup layout props (string-upcase (markup-&

Re: \uppercase function

2015-04-09 Thread David Nalesnik
Hi Kieren, On Thu, Apr 9, 2015 at 9:48 AM, Kieren MacMillan kieren_macmil...@sympatico.ca wrote: Hi all, I’m looking for an \uppercase function to use in Lilypond — this one (which I found somewhere, but can’t remember where now) doesn’t seem to work: \version 2.19 #(define-markup

Re: \uppercase function

2015-04-09 Thread David Nalesnik
On Thu, Apr 9, 2015 at 10:31 AM, David Nalesnik david.nales...@gmail.com wrote: Note that the following will work with your simple example, though \uppercase has to be directly before the markup: I meant in case you do something like: \markup \bold \italic \uppercase Test The \uppercase

Re: \uppercase function

2015-04-09 Thread Kieren MacMillan
Hi David, you could just as easily write the following: \header { myTitle = #myOtherTitle title = \markup { from \italic #(string-upcase myTitle) } } Yes, but at that point, why not just write \header { title = “MY OTHER TITLE } ?? ;) Here’s the concrete use-case: 1. I

Re: \uppercase function

2015-04-09 Thread David Nalesnik
Kieren, On Thu, Apr 9, 2015 at 10:37 AM, Kieren MacMillan kieren_macmil...@sympatico.ca wrote: Hi David, You are only using part of the code which I find here: http://www.autoindustry536.bllog.opensubscriber.com/message/lilypond-de...@gnu.org/12807136.html Yes! That was it. Thanks for

Re: \uppercase function

2015-04-09 Thread Kieren MacMillan
Hi David, you could just as easily write the following: \header { myTitle = #myOtherTitle title = \markup { from \italic #(string-upcase myTitle) } } Yes, but at that point, why not just write \header { title = “MY OTHER TITLE } ?? ;) Here’s the concrete use-case:

Re: \uppercase function

2015-04-09 Thread David Nalesnik
On Thu, Apr 9, 2015 at 11:48 AM, David Nalesnik david.nales...@gmail.com wrote: HTH Who knows what HTHm stands for. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user

Re: \uppercase function

2015-04-09 Thread Kieren MacMillan
Hi David, You are only using part of the code which I find here: http://www.autoindustry536.bllog.opensubscriber.com/message/lilypond-de...@gnu.org/12807136.html Yes! That was it. Thanks for the link. Note that the following will work with your simple example, though \uppercase has to be

Re: \uppercase function

2015-04-09 Thread David Nalesnik
On Thu, Apr 9, 2015 at 3:02 PM, Kieren MacMillan kieren_macmil...@sympatico.ca wrote: Hi David, you could just as easily write the following: \header { myTitle = #myOtherTitle title = \markup { from \italic #(string-upcase myTitle) } } Yes, but at that point, why not

\uppercase function

2015-04-09 Thread Kieren MacMillan
Hi all, I’m looking for an \uppercase function to use in Lilypond — this one (which I found somewhere, but can’t remember where now) doesn’t seem to work: \version 2.19 #(define-markup-command (uppercase paper props markup-argument) (markup?) (interpret-markup paper (prepend-alist-chain 'case