]> git.donarmstrong.com Git - lilypond.git/commitdiff
*** empty log message ***
authorhanwen <hanwen>
Thu, 5 Feb 2004 17:18:58 +0000 (17:18 +0000)
committerhanwen <hanwen>
Thu, 5 Feb 2004 17:18:58 +0000 (17:18 +0000)
ChangeLog
buildscripts/lilypond.words.py
buildscripts/wiki-slurp.py [deleted file]
lily/include/lily-guile.hh
lily/pitch-squash-engraver.cc
scm/lily.scm

index c1996c1aae83432af7f28b25f743d944ba9ab9af..6fa94cc7d1321c60fec8613c667f8c47106b5395 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2004-02-05  Han-Wen Nienhuys   <hanwen@xs4all.nl>
+
+       * VERSION (PACKAGE_NAME): release 2.1.19.
+       
 2004-02-05  Jan Nieuwenhuizen  <janneke@gnu.org>
 
        * scripts/filter-lilypond-book.py
@@ -5,6 +9,8 @@
 
 2004-02-05  Han-Wen Nienhuys   <hanwen@xs4all.nl>
 
+       * buildscripts/lilypond.words.py (F): remove drums.scm reference.
+
        * Grand 2003 -> 2004 search replace. 
 
        * lily/parser.yy (chord_body_element): add DRUM_PITCH to chords
index 21b936dfb10520724c5952fd842a7078e1037600..0de3329c8080c42059be9607eb98f2adab32cd27 100755 (executable)
@@ -84,16 +84,7 @@ for name in [
            notes = notes + ['' + m.group(2)]
     F.close()
 
-# (short) drum names
-for name in [
-'scm/drums.scm'
-]:
-    F = open(name, 'r')
-    for line in F.readlines():
-       m = re.search(r"^(\s*\([a-z]+\s*)([a-z]+)(\s*,\(ly:make-pitch)",line)
-       if m:
-           notes = notes + ['' + m.group(2)]
-    F.close()
+
     
 # reserved words
 for name in [
diff --git a/buildscripts/wiki-slurp.py b/buildscripts/wiki-slurp.py
deleted file mode 100644 (file)
index efed0c7..0000000
+++ /dev/null
@@ -1,156 +0,0 @@
-#!@PYTHON@
-
-#
-# translate an entire Wiki site into local html.
-#
-
-import re
-import urllib
-import sys
-import getopt
-import os
-program_version = '@TOPLEVEL_VERSION@'
-if program_version == '@' + 'TOPLEVEL_VERSION' + '@':
-       program_version = '1.5.69'
-
-
-def help ():
-       print """Usage: wiki-slurp.py [OPTIONS]... ENTRY-PATTERN...
-
-Download a WikiWiki site and convert to local html.
-
-Example: wiki-slurp.py -d /tmp/output 'http://c2.com/cgi-bin/wiki?'
-
-Options:
-  -h, --help         show this help
-  -m, --mangle       mangle file names to be shorter 
-  -d, --outdir=DIR   set output directory to DIR
-  -v, --version      show version information
-
-Warning: downloading an entire Wiki site generates a huge amount of
-traffic and server load.  Consider asking for a copy of the database.
-See also http://c2.com/cgi-bin/wiki?WikiSlurp.
-
-Report bugs to bug-lilypond@gnu.org.
-
-Written by Han-Wen Nienhuys <hanwen@cs.uu.nl>.
-
-"""
-
-def print_version ():
-       print r"""wiki-slurp.py %s
-
-This is free software.  It is covered by the GNU General Public License,
-and you are welcome to change it and/or distribute copies of it under
-certain conditions.  Invoke as `midi2ly --warranty' for more information.
-
-Copyright (c) 2000--2004 by Han-Wen Nienhuys <hanwen@cs.uu.nl>
-""" % program_version
-
-(options, files) = getopt.getopt (sys.argv[1:], 'vd:hm', ['help','mangle','version', 'outdir='])
-
-
-def identity (name):
-       return name
-
-def mangle (name):
-       return '%d' % hash (name)
-
-mangler = identity
-
-outdir = '/tmp/'
-
-for opt in options:
-       o = opt[0]
-       a = opt[1]
-       if o== '--help' or o == '-h':
-               help ()
-               sys.exit (0)
-       elif o == '--version' or o == '-v':
-               print_version ()
-               sys.exit(0)
-       elif  o == '--mangle' or o == '-m':
-               mangler = mangle
-       elif o == '--outdir' or o == '-d':
-               outdir = a
-       else:
-               print o
-               raise getopt.error
-
-
-patterns = files
-
-if not patterns:
-       help ()
-       sys.stderr.write ("\n")
-       sys.exit (2)
-
-re_patterns = []
-for pattern in patterns:
-       re_patterns.append (re.sub ('([?.])', '\\\\\\1', pattern))
-
-todo = ["FrontPage"]
-
-print 'here!'
-done = {
-       'EditText': 1,  
-       }
-
-def unwiki (str, pat, mangler):
-       local = '<a href="%s([A-Za-z]+)">([A-Za-z]+)</a>' % pat
-
-       newurls = []
-       def do_replace (match, us = newurls, mangler = mangler):
-               newurl = match.group (1)
-               local = mangler (newurl)
-               
-               replacement = '<a href="%s.html">%s</a>' % (local,newurl)
-               us.append (newurl)
-               return replacement
-
-       str = re.sub (local, do_replace, str)
-       otherurl = '<a href="%s[^>]*">([?A-Za-z]+)</a>' % pat
-       str = re.sub (otherurl, '\\1', str)
-
-       imagesrc = '<a href="%s[^>]*">(<img[^>]*>)</a>' % pat
-       str = re.sub (imagesrc, '\\1', str)
-       
-       return (str, newurls)
-
-
-while todo:
-       f = todo[-1]
-       todo = todo[:-1]
-
-       if done.has_key (f):
-               continue
-       done [f] = 1
-
-       mangled = mangler (f)
-       
-       sys.stderr.write ("reading `%s' ... " % f)
-       sys.stderr.flush ()
-
-       page = urllib.urlopen (patterns[0] + f).read ()
-       sys.stderr.write ('done. ')
-       sys.stderr.flush ()
-
-       for re_pattern in re_patterns:
-               (page, nus) = unwiki (page, re_pattern, mangler)
-               todo.extend (nus)
-       
-       outname = os.path.join (outdir, mangled) + '.html'
-       fo = open (outname, 'w')
-
-       sys.stderr.write ("Writing `%s'\n" % outname)
-       fo.write (page)
-       fo.close ()
-
-
-# test
-if 0:
-       page = open ('/tmp/FrontPage.html').read()
-       (str, us)=unwiki (page, re_patterns)
-       print str
-       print us
-
index c56177af8b6b80acf3e0363641adb62da82d8dad..443713b6b63055156f5147d5730f622da04c225e 100644 (file)
@@ -82,7 +82,7 @@ inline SCM scm_c_make_vector  (int k, SCM val) {
 #define scm_gc_unregister_collectable_memory(a,b,c) scm_done_free(b)
 #define scm_gc_register_collectable_memory(a,b,c) scm_done_malloc(b)
 #define SCM_VECTOR_REF(v,i) (SCM_VELTS((v))[(i)])
-
+#define scm_hash_table_p scm_vector_p 
 
 #endif
 
index ef5f33580393c8bc81abb9382daf46d09cd4c598..197b589fa4a665cddb284170c1750a12d14315c3 100644 (file)
@@ -36,10 +36,13 @@ Pitch_squash_engraver::Pitch_squash_engraver()
 }
 
 ENTER_DESCRIPTION(Pitch_squash_engraver,
-/* descr */       "Treat all pitches as middle C.  Note that the notes move, but "
-"the locations of accidentals stay the same. "
-"Set the position field of all note heads to zero. This useful for "
-"making a single line staff that demonstrates the rhythm of a melody.",
+/* descr */       
+                 "Set the vertical position of noteheads to "
+                 "@code{squashedPosition}, if that "
+                 "property is set. "
+                 "This can be used to make  a single line staff "
+                 "demonstrating the rhythm of a melody.",
+
 /* creats*/       "",
 /* accepts */     "",
 /* acks  */      "note-head-interface",
index 882445dae340a1cad09e36e4342554d37e635c5c..c10fe8241cb09a0eb92061a158db0f7177aa7cd4 100644 (file)
            (map-alist-keys func (cdr list)))
       ))
  
+;;;;;;;;;;;;;;;;
+;; hash
+
+
+
+(if (not (defined? 'hash-table?))      ; guile 1.6 compat
+    (define hash-table? vector?))
 
 (define-public (hash-table->alist t)
   "Convert table t to list"