Laura Conrad <[EMAIL PROTECTED]> writes:

> The attached file works if I run ly2dvi, but not if I use it  with
> lilypond-file and the attached lytex file.  The error message I get
> from lilypond-book is:

Me too.  Try this patch (although I'm not sure why this fails, python
> 1.5.2 has all kinds of pickynesses wrt regexps).

Jan.

--- lilypond-book.py.~1.39.~    Thu Apr 11 11:14:31 2002
+++ lilypond-book.py    Mon Apr 22 17:09:54 2002
@@ -476,7 +476,7 @@ re_dict = {
                  'preamble-end': r'(?P<code>\\begin{document})',
                  'verbatim': r"(?s)(?P<code>\\begin{verbatim}.*?\\end{verbatim})",
                  'verb': r"(?P<code>\\verb(?P<del>.).*?(?P=del))",
-                 'lilypond-file': 
r'(?m)^[^%\n]*?(?P<match>\\lilypondfile\s*(\[(?P<options>.*?)\])?\s*\{(?P<filename>.+)})',
+                 'lilypond-file': 
+r'(?m)^[^%\n]*?(?P<match>\\lilypondfile\s*(\[(?P<options>.*?)\])?\s*{(P<filename>[^}]+)})',
                  'lilypond' : 
r'(?m)^[^%\n]*?(?P<match>\\lilypond\s*(\[(?P<options>.*?)\])?\s*{(?P<code>.*?)})',
                  'lilypond-block': 
r"(?sm)^[^%\n]*?(?P<match>\\begin\s*(\[(?P<options>.*?)\])?\s*{lilypond}(?P<code>.*?)\\end{lilypond})",
                  'def-post-re': r"\\def\\postLilypondExample",



-- 
Jan Nieuwenhuizen <[EMAIL PROTECTED]> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien       | http://www.lilypond.org


_______________________________________________
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user

Reply via email to