[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Variable assignment in music functions
From: |
Jean-Charles Malahieude |
Subject: |
Re: Variable assignment in music functions |
Date: |
Thu, 03 Nov 2011 21:00:00 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:7.0) Gecko/20110927 Thunderbird/7.0 |
Le 03/11/2011 20:02, David Kastrup disait :
\paper {
tocname = "Inhaltsverzeichnis"
}
#(define-markup-command (toc layout props) ()
(interpret-markup layout props (ly:output-def-lookup layout 'tocname "none")))
\markup \toc
But the list is a bit longer (cf. enclosure)
I first define in the language-fr.ily file
TocTitle = "Table des matières"
and in languege-de.ily
TocTitle = "Inhaltsverzeichnis"
and then in the master file
\paper {
%% Translate the toc title:
tocTitleMarkup = \markup \huge \column {
\fill-line { \null \ToCTitle \null }
\hspace #1
}
will produce the right wording, depending on the translation I wish.
Cheers,
Jean-Charles
ps: sorry, the phone ring just disturbed me...
Language-fr.ily
Description: Text document