]> git.donarmstrong.com Git - lilypond.git/commitdiff
patch::: 1.3.93.tca1
authorTom Cato Amundsen <tca@gnu.org>
Sat, 7 Oct 2000 22:02:52 +0000 (00:02 +0200)
committerTom Cato Amundsen <tca@gnu.org>
Sat, 7 Oct 2000 22:02:52 +0000 (00:02 +0200)
Documentation/topdocs/AUTHORS.texi
VERSION
scripts/mudela-book.py

index d10bc35310f967614d6a3150e3f17fc81b32386e..32b03ca22a6752f550b0d98723f0f11c1b4252e6 100644 (file)
@@ -16,7 +16,7 @@ This file lists authors of GNU LilyPond, and what they wrote.  This
 list is alphabetically ordered.
 
 @itemize @bullet
-@item @email{tomcato@@xoommail.com, Tom Cato Amundsen},
+@item @email{tca@@gnu.org, Tom Cato Amundsen},
     cembalo-partita in mudela, accordion symbols, some mudela-book.py
 @item @email{matsb@@s3.kth.se, Mats Bengtsson},
     @uref{http://www.s3.kth.se/~matsb/}
diff --git a/VERSION b/VERSION
index 331315a9d68d0cbda14be4ae491424181da5e95c..a8eaf561a5fe2b873f91b2bbb1f56912cdd9675e 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -2,7 +2,7 @@ PACKAGE_NAME=LilyPond
 MAJOR_VERSION=1
 MINOR_VERSION=3
 PATCH_LEVEL=93
-MY_PATCH_LEVEL=jcn1
+MY_PATCH_LEVEL=tca1
 
 # use the above to send patches: MY_PATCH_LEVEL is always empty for a
 # released version.
index 8a334b40b68ff142b668fe101fd8e10404020a14..ec3366a9d225897f3f14e82ff3d9661f10ccc3c6 100644 (file)
@@ -412,8 +412,8 @@ re_dict = {
                  'option-sep' : ', *',
                  'intertext': r',?\s*intertext=\".*?\"',
                  #ugh fix
-                 'multiline-comment': r"(?s)(?P<code>@ignore\s.*?@end ignore)\s",
-                 'singleline-comment': r"(?m)(?P<code>^@c.*$\n+)",
+                 'multiline-comment': r"(?sm)^\s*(?!@c\s+)(?P<code>@ignore\s.*?@end ignore)\s",
+                 'singleline-comment': r"(?m)^.*?(?P<match>(?P<code>@c.*$\n+))",
                  'numcols': no_match,
                 }
        }
@@ -688,7 +688,7 @@ def do_columns(m):
        if m.group('num') == 'two':
                return [('numcols', m.group('code'), 2)]
        
-def new_chop_chunks(chunks, re_name, func):
+def chop_chunks(chunks, re_name, func, use_match=0):
     newchunks = []
     for c in chunks:
         if c[0] == 'input':
@@ -699,27 +699,10 @@ def new_chop_chunks(chunks, re_name, func):
                     newchunks.append (('input', str))
                     str = ''
                 else:
-                    newchunks.append (('input', str[:m.start ('match')]))
-                    #newchunks.extend(func(m))
-                   # python 1.5 compatible:
-                   newchunks = newchunks + func(m)
-                    str = str [m.end(0):]
-        else:
-            newchunks.append(c)
-    return newchunks
-
-def chop_chunks(chunks, re_name, func):
-    newchunks = []
-    for c in chunks:
-        if c[0] == 'input':
-            str = c[1]
-            while str:
-                m = get_re (re_name).search (str)
-                if m == None:
-                    newchunks.append (('input', str))
-                    str = ''
-                else:
-                    newchunks.append (('input', str[:m.start (0)]))
+                   if use_match:
+                        newchunks.append (('input', str[:m.start ('match')]))
+                   else:
+                        newchunks.append (('input', str[:m.start (0)]))
                     #newchunks.extend(func(m))
                    # python 1.5 compatible:
                    newchunks = newchunks + func(m)
@@ -755,8 +738,8 @@ def read_doc_file (filename):
        chunks = chop_chunks(chunks, 'verb', make_verb)
        chunks = chop_chunks(chunks, 'multiline-comment', do_ignore)
        #ugh fix input
-       chunks = new_chop_chunks(chunks, 'include', do_include_file)
-       chunks = new_chop_chunks(chunks, 'input', do_input_file)
+       chunks = chop_chunks(chunks, 'include', do_include_file, 1)
+       chunks = chop_chunks(chunks, 'input', do_input_file, 1)
        return chunks
 
 
@@ -1016,10 +999,10 @@ def do_file(input_filename):
        my_depname = my_outname + '.dep'                
 
        chunks = read_doc_file(input_filename)
-       chunks = new_chop_chunks(chunks, 'mudela', make_mudela)
-       chunks = new_chop_chunks(chunks, 'mudela-file', make_mudela_file)
-       chunks = new_chop_chunks(chunks, 'mudela-block', make_mudela_block)
-       chunks = chop_chunks(chunks, 'singleline-comment', do_ignore)
+       chunks = chop_chunks(chunks, 'mudela', make_mudela, 1)
+       chunks = chop_chunks(chunks, 'mudela-file', make_mudela_file, 1)
+       chunks = chop_chunks(chunks, 'mudela-block', make_mudela_block, 1)
+       chunks = chop_chunks(chunks, 'singleline-comment', do_ignore, 1)
        chunks = chop_chunks(chunks, 'preamble-end', do_preamble_end)
        chunks = chop_chunks(chunks, 'numcols', do_columns)
        #print "-" * 50