bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Some small patches


From: Mats Bengtsson
Subject: Some small patches
Date: Thu, 11 Apr 2002 00:16:06 +0200

Enjoy!
  
   /Mats

Generated by (address unknown),
>From = lilypond-1.5.51, To = lilypond-1.5.51.mb1

usage 

    cd lilypond-source-dir; patch -E -p1 < lilypond-1.5.51.mb1.diff

Patches do not contain automatically generated files 
or (urg) empty directories, 
i.e., you should rerun autoconf, configure

diff -purN ../lilypond-1.5.51/ChangeLog ./ChangeLog
--- ../lilypond-1.5.51/ChangeLog        Mon Apr  8 00:23:41 2002
+++ ./ChangeLog Thu Apr 11 00:07:12 2002
@@ -1,3 +1,11 @@
+2002-04-10  Mats Bengtsson  <address@hidden>
+
+        * scm/grob-description.scm (MultiMeasureRest): number-threshold=1
+        by default: avoid "1" over single bar rests.
+
+       * scripts/lilypond-book.py (LatexPaper.set_geo_option): Simplify
+       and correct the handling of geometry options.
+
 2002-04-08  Han-Wen  <address@hidden>
 
        * VERSION (MY_PATCH_LEVEL): Release 1.5.51.
@@ -17,7 +25,7 @@
        * Documentation/windows/gsview-profile.sh: Remove.  Functionality
        moved to gs/gsview windows packages.
 
-2002-04-06  Mats Bengtsson  <address@hidden@s3.kth.se>
+2002-04-06  Mats Bengtsson  <address@hidden>
 
        * lily/stem-engraver.cc (acknowledge_grob): Revert to old way of
        finding out the duration. Fixes chord tremolo bug. 
@@ -959,7 +967,7 @@
        * lily/system-start-delimiter.cc (after_line_breaking): Bugfix:
        glyph is string.
 
-2002-02-28  Mats Bengtsson  <address@hidden@s3.kth.se>
+2002-02-28  Mats Bengtsson  <address@hidden>
 
        * scm/tex.scm, scm/ps.scm (or): Bugfix, ps output with Guile 3.4
 
@@ -1333,7 +1341,7 @@
        * scm/font.scm (make-style-sheet): Fixes to make staff-sizes work
        again.
 
-2001-12-22  Mats Bengtsson  <address@hidden@s3.kth.se>
+2001-12-22  Mats Bengtsson  <address@hidden>
 
        * tex/lilyponddefs.tex: Make sure interscorelinefill=1 doesn't
        spread the last few lines all over the last page of a score.
diff -purN ../lilypond-1.5.51/VERSION ./VERSION
--- ../lilypond-1.5.51/VERSION  Mon Apr  8 00:20:35 2002
+++ ./VERSION   Thu Apr 11 00:03:25 2002
@@ -2,7 +2,7 @@ PACKAGE_NAME=LilyPond
 MAJOR_VERSION=1
 MINOR_VERSION=5
 PATCH_LEVEL=51
-MY_PATCH_LEVEL=
+MY_PATCH_LEVEL=mb1
 
 
 # use the above to send patches: MY_PATCH_LEVEL is always empty for a
diff -purN ../lilypond-1.5.51/scm/grob-description.scm 
./scm/grob-description.scm
--- ../lilypond-1.5.51/scm/grob-description.scm Sun Apr  7 21:17:35 2002
+++ ./scm/grob-description.scm  Thu Apr 11 00:06:10 2002
@@ -429,7 +429,7 @@
        (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
        (staff-position . 0)
        (expand-limit . 10)
-       (number-threshold . 0)
+       (number-threshold . 1)
        (padding . 1)
        (thickness . 6.6)
        (font-family . number)
diff -purN ../lilypond-1.5.51/scripts/lilypond-book.py 
./scripts/lilypond-book.py
--- ../lilypond-1.5.51/scripts/lilypond-book.py Fri Mar 22 01:28:43 2002
+++ ./scripts/lilypond-book.py  Thu Apr 11 00:04:03 2002
@@ -161,12 +161,14 @@ class LatexPaper:
                                conv =  dimension_conversion_dict[m.group(2)]
 
                                value = conv(num)
-
-               if name == 'body' or name == 'text':
-                       if type(value) == type(""):
-                               self.m_geo_textwidth =  value
+                               
                        else:
-                               self.m_geo_textwidth =  value[0]
+                               m = re.match ("^[0-9.]+$",value)
+                               if m:
+                                       value = float(value)
+                               
+               if name == 'body' or name == 'text':
+                       self.m_geo_textwidth =  value
                        self.__body = 1
                elif name == 'portrait':
                        self.m_geo_landscape = 0
@@ -180,12 +182,9 @@ class LatexPaper:
                        self.m_geo_x_marginparsep =  value
                        self.m_geo_includemp = 1
                elif name == 'scale':
-                       if type(value) == type(""):
-                               self.m_geo_width = self.get_paperwidth() * 
float(value)
-                       else:
-                               self.m_geo_width = self.get_paperwidth() * 
float(value[0])
+                       self.m_geo_width = self.get_paperwidth() * value
                elif name == 'hscale':
-                       self.m_geo_width = self.get_paperwidth() * float(value)
+                       self.m_geo_width = self.get_paperwidth() * value
                elif name == 'left' or name == 'lmargin':
                        self.m_geo_lmargin =  value
                elif name == 'right' or name == 'rmargin':
@@ -198,25 +197,14 @@ class LatexPaper:
                        if value[2] not in ('*', ''):
                                self.m_geo_rmargin =  value[2]
                elif name == 'hmargin':
-                       if type(value) == type(""):
-                               self.m_geo_lmargin =  value
-                               self.m_geo_rmargin =  value
-                       else:
-                               self.m_geo_lmargin =  value[0]
-                               self.m_geo_rmargin =  value[1]
+                       self.m_geo_lmargin =  value
+                       self.m_geo_rmargin =  value
                elif name == 'margin':#ugh there is a bug about this option in
                                        # the geometry documentation
-                       if type(value) == type(""):
-                               self.m_geo_lmargin =  value
-                               self.m_geo_rmargin =  value
-                       else:
-                               self.m_geo_lmargin =  value[0]
-                               self.m_geo_rmargin =  value[0]
+                       self.m_geo_lmargin =  value
+                       self.m_geo_rmargin =  value
                elif name == 'total':
-                       if type(value) == type(""):
-                               self.m_geo_width =  value
-                       else:
-                               self.m_geo_width =  value[0]
+                       self.m_geo_width =  value
                elif name == 'width' or name == 'totalwidth':
                        self.m_geo_width =  value
                elif name == 'paper' or name == 'papername':

reply via email to

[Prev in Thread] Current Thread [Next in Thread]