[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lilypond-book problem
From: |
Jan Nieuwenhuizen |
Subject: |
Re: lilypond-book problem |
Date: |
Mon, 22 Apr 2002 17:12:49 +0200 |
User-agent: |
Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2 (i386-debian-linux-gnu) |
Laura Conrad <address@hidden> 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 <address@hidden> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien | http://www.lilypond.org