bug-lilypond
[Top][All Lists]
Advanced

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

Re: Enhancement: automatically translate tagline


From: David Kastrup
Subject: Re: Enhancement: automatically translate tagline
Date: Mon, 16 Mar 2015 10:22:44 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Simon Albrecht <address@hidden> writes:

> Thanks for elaborating, Harm. That’s some elegant coding with which I
> couldn’t have come up :-)
>
> Am 15.03.2015 um 19:22 schrieb Thomas Morley:
>
> [snip]
>>
>> \version "2.19.16"
>>
>> %% Please note, \language has to be declared before 'used-language'
>> %% is done or included, (if stored elsewhere)
>> \language "deutsch"
>> %\language "english"
>> %% if no tagline for a language is defined, default-english will be
>> printed
>> %\language "catalan"
>>
>> %% TODO: find better method to detect which language is actually used
>> #(define used-language
>>   (car
>>     (find
>>       (lambda (e) (eq? (cdr e) (ly:parser-lookup parser 'pitchnames)))
>>       language-pitch-names)))
> I imagine that a generic solution worth being included in the code
> base would require this definition to be made through the \language
> command itself.

I don't think it is a tenable solution to equate notename language with
document language.

-- 
David Kastrup



reply via email to

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