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: reinh...@einstein:~/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, reinh...@kainhofer.com, 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
\header { title = "Test title 1" piece = "blah 1" } \relative c' { d4^"include.ily" e f g }
\header { title = "Test title 2" piece = "blah 2" } \relative c' { e2^"include2.ily" f }
\version "2.13.19" \include "include.ily" #(ly:parser-parse-string parser "\\include \"include2.ily\"")
\version "2.13.19" \include "include.ily" \markup "Dummy" #(ly:parser-parse-string parser "\\include \"include2.ily\"")
parser-include-implicit-scores-swapped.pdf
Description: Adobe PDF document
_______________________________________________ lilypond-devel mailing list lilypond-devel@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-devel