lilypond-user
[Top][All Lists]
Advanced

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

Re: Function for rendering key textually in 3 languages


From: Thomas Morley
Subject: Re: Function for rendering key textually in 3 languages
Date: Sun, 4 Nov 2012 17:06:38 +0100

2012/11/4 Thomas Morley <address@hidden>:
> Hi Olivier,
>
> a)
> If you define a new `scoreTitleMarkup´, you have to _use_ it. :)
>
>     \paper {
>             scoreTitleMarkup = \myScoreTitleMarkup
>     }
>
>
> b)
> \fromproperty #'header:piece-tonality will return a stencil not a string.
> So every markup-command or scheme-function requiering a
> string-argument (or tries to deal with the   argument as a string)
> will fail.
> P.e: \markup \simple { \fromproperty #'header:piece-tonality }
>
> Workaround:
> Use the markup-command/scheme-function _in_ the \header:
>
>     \header {
>       piece-tonality = \markup \simple "cis-major"
>     }
>
>
> c)
> My own approach attached, converting `piece-tonality´ into german,
> french and english.
> Please note: I don't know how double-flat/sharp is called in french,
> so I used "double-bémol" and "double-dièse". Should be easy to alter.
>
>
> HTH,
>   Harm

Hi again,

forgot two things:
(1)
Please change the second line of the markup-command to:

  (let* ((arg (string-downcase (markup->string text)))

(2)
For testing I added a (commented) scheme-function. It does not work
with 2.16.0, but needs 17.6.


Regards,
  Harm



reply via email to

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