lilypond-devel
[Top][All Lists]
Advanced

[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 init.ly. In particular, try adding the following to ly/init.ly 
just before the \maininput:

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


I always get the error messages:

address@hidden:~/lilypond/lilypond$ lilypond t1.ly 
GNU LilyPond 2.13.23
»t1.ly« wird verarbeitet
Analysieren...
/home/reinhold/lilypond/lilypond/out/share/lilypond/current/ly/init.ly:38:0: 
Fehler: Datei »<string>« kann nicht gefunden werden
(Suchpfad: [...])

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

\version "2.13.23"

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



No output pdf will be generated, either...

Cheers,
Reinhold

-- 
------------------------------------------------------------------
Reinhold Kainhofer, address@hidden, http://reinhold.kainhofer.com/
 * Financial & Actuarial Math., Vienna Univ. of Technology, Austria
 * http://www.fam.tuwien.ac.at/, DVR: 0005886
 * LilyPond, Music typesetting, http://www.lilypond.org

Attachment: include.ily
Description: Text document

Attachment: include2.ily
Description: Text document

Attachment: parser-include-implicit-scores-swapped.ly
Description: Text Data

Attachment: parser-include-markup-correct-order.ly
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]