lilypond-devel
[Top][All Lists]
Advanced

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

Re: Language selection code


From: David Nalesnik
Subject: Re: Language selection code
Date: Fri, 27 Mar 2015 08:46:53 -0500

On Fri, Mar 27, 2015 at 8:38 AM, David Nalesnik <address@hidden>
wrote:


> I haven't gone through this thoroughly, but I did notice that an invalid
> statement like this
> \language general.deutsch.foo
> isn't gracefully dealt with.
>
> [...]


>
> If correct-input is #f, language will be undefined.  You could add
>
(else #f)
>

Yes, doing this:

    (language (cond ((= 1 (length arg)) (list-ref arg 0))
                     ((= 2 (length arg)) (list-ref arg 1))
                     (else #f)))


(and changing the German note-name in the example)
cleans up the output.

DN


reply via email to

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