[Top][All Lists]

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

Re: [PATCH]: Fix issue 1096

From: Reinhold Kainhofer
Subject: Re: [PATCH]: Fix issue 1096
Date: Sat, 29 May 2010 22:10:50 +0200

Am Donnerstag, 27. Mai 2010, um 15:39:46 schrieb Carl Sorensen:
> Benjamin Peterson prepared a patch to fix this issue.
> It's in the lexer, and I'm not at all comfortable with the lexer.  However,
> the patch has been demonstrated to work and to not break the regtests.

Actually, while it does not break any current regtests, it does not work in 
all cases. 

1) In particular:

\version "2.13.19"
\include "include.ily"
#(ly:parser-parse-string parser "\\include \"include2.ily\"")

In this case, the implicit scores (i.e. only a \relative, no explicit \score) 
from include.ily are inserted AFTER all scores from include2.ily, but all 
settings are correctly taken from include2.ily...

If there is a markup between the two commands, the includes work correctly:

\version "2.13.19"
\include "include.ily"
\markup "Dummy"
#(ly:parser-parse-string parser "\\include \"include2.ily\"")

Sample files are attached.

If I add an explicit \score around the \relative expressions in the two 
included files, the order is also correct...

Is this a general lilypond problem (due to the implicit creation of a Score 
context) or due to that patch?

2) The other problem I'm encountering is that ly:parser-parse-string does not 
work at all in In particular, try adding the following to ly/ 
just before the \maininput:

#(ly:parser-parse-string parser "\\header { title=\"TITLE\"}")

I always get the error messages:

address@hidden:~/lilypond/lilypond$ lilypond 
GNU LilyPond 2.13.23
»« wird verarbeitet
Fehler: Datei »<string>« kann nicht gefunden werden
(Suchpfad: [...])

<string>:0: warning: keine \version-Anweisung gefunden, 

\version "2.13.23"

 für zukünftige Kompatibilität hinzufügen
Fehler: gescheiterte Dateien: ""

No output pdf will be generated, either...


Reinhold Kainhofer, address@hidden,
 * Financial & Actuarial Math., Vienna Univ. of Technology, Austria
 *, DVR: 0005886
 * LilyPond, Music typesetting,

Attachment: include.ily
Description: Text document

Attachment: include2.ily
Description: Text document

Description: Text Data

Description: Text Data

Attachment: parser-include-implicit-scores-swapped.pdf
Description: Adobe PDF document

reply via email to

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