bug-lilypond
[Top][All Lists]
Advanced

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

Re: Incorrect example in Vocal Music documentation


From: Greg Swinford
Subject: Re: Incorrect example in Vocal Music documentation
Date: Fri, 24 Oct 2014 14:42:00 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0

On 24/10/14 13:52, David Kastrup wrote:
Greg Swinford <address@hidden> writes:

There is an error in the example given on the following documentation page:
http://lilypond.org/doc/v2.18/Documentation/notation/opera-and-stage-musicals#dialogue-over-music

\override LyricText.self-alignment-X = #LEFT should read
\override LyricText #'self-alignment-X = #LEFT

otherwise the following error occurs:

error: syntax error, unexpected '.', expecting SCM_FUNCTION or
SCM_IDENTIFIER or SCM_TOKEN
           \with { \override LyricText
                                      .self-alignment-X = #LEFT }

I presume the same error would occur with the font-shape definition above
this too, but I haven't tested this.
You are presumably testing with version 2.16 or earlier.  If you take a
look at the corresponding documentation in
<URL:http://lilypond.org/doc/v2.16/Documentation/notation/opera-and-stage-musicals#dialogue-over-music>,
you'll find that it states

     \new Lyrics \with {
       \override LyricText #'font-shape = #'italic
       \override LyricText #'self-alignment-X = #LEFT
     }

here.  The change is intentional.  After considerable debate on the
mailing lists, it was implemented as issue
<URL:https://code.google.com/p/lilypond/issues/detail?id=2883>.  This
upward-compatible syntax change was committed to version 2.17.6 almost
exactly 2 years ago, and the documentation has been changed to reflect
it.

Version 2.18 has been around quite a while now: updating to it makes
good sense.  Particularly if you want to use its documentation...

Arguably, the new syntax is simpler to use.  It has also made it
possible to let user-defined music functions accept such property
paths.  So even while the old override syntax still works, there is
little point in using it in the documentation any more.


$ lilypond --version
GNU LilyPond 2.16.2

My apologies. I have 2.18 on another computer and had assumed I was using 2.18 on this machine, so I was looking at the 2.18 documentation, but it turns out that I'm still using 2.16. Sorry for the inconvenience.

Thanks,
Greg.



reply via email to

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