]> git.donarmstrong.com Git - lilypond.git/commitdiff
* scm/layout-page-layout.scm (optimal-page-breaks): only consider
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Thu, 16 Feb 2006 02:17:51 +0000 (02:17 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Thu, 16 Feb 2006 02:17:51 +0000 (02:17 +0000)
the force=10000 case if we don't have a current-best.

* lily/tuplet-bracket.cc (get_bounds): don't do (size() - 1) for
vsize

* flower/include/flower-proto.hh: remove outdated templates.

* scm/page.scm: use annotate-spacing

ChangeLog
flower/include/flower-proto.hh
lily/tuplet-bracket.cc
python/convertrules.py
scm/layout-page-layout.scm
scm/page.scm

index c5ac748e002b435779b5294f05b6e88a60b37980..bf63a5424fe222e2919d115d5eaa5ae607ee40bb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2006-02-16  Han-Wen Nienhuys  <hanwen@xs4all.nl>
+
+       * scm/layout-page-layout.scm (optimal-page-breaks): only consider
+       the force=10000 case if we don't have a current-best. 
+
+       * lily/tuplet-bracket.cc (get_bounds): don't do (size() - 1) for
+       vsize 
+
+       * flower/include/flower-proto.hh: remove outdated templates.
+
+       * scm/page.scm: use annotate-spacing
+
 2006-02-15  Graham Percival  <gpermus@gmail.com>
 
        * scm/translation-functions.scm: circle patch from Erlend, thanks!
index 1e14a5b10c5dbf3f3860d969ff62e1d567ae6497..cb8cb71bae8c61c01b25db395e91ba8ecf33a790 100644 (file)
@@ -9,10 +9,6 @@
 
 char const *flower_version_str0 ();
 
-template<class T, class K> struct Assoc;
-template<class K, class V> struct Hash_table;
-template<class K, class V> struct Hash_table_iter;
-
 typedef unsigned char Byte;
 struct String_convert;
 
@@ -22,7 +18,6 @@ using namespace std;
 
 #include "real.hh"
 
-template<class T> struct Link_list;
 template<class T> struct Interval_t;
 template<class T> struct PQueue;
 
index 8246f400f9400ef2a13a0e76505b7b0036e423ce..a0f6ab8588df43b8e0026cf4ffda619eea35a9b5 100644 (file)
@@ -438,16 +438,16 @@ Tuplet_bracket::get_bounds (Grob *me, Grob **left, Grob **right)
   while (l < columns.size () && Note_column::has_rests (columns[l]))
     l++;
 
-  vsize r = columns.size () - 1;
-  while (r >= l && Note_column::has_rests (columns[r]))
+  vsize r = columns.size ();
+  while (r > l && Note_column::has_rests (columns[r-1]))
     r--;
 
   *left = *right = 0;
 
-  if (l <= r)
+  if (l < r)
     {
       *left = columns[l];
-      *right = columns[r];
+      *right = columns[r-1];
     }
 }
 
index 4f27a3c3537b810653a99128fcd46eda1dcdf885..ad4ab9ae1db92d3665d7f47666a2f40ec14842fc 100644 (file)
@@ -2726,7 +2726,8 @@ def conv (str):
                ('ledgerlinethickness', 'ledger-line-thickness'),
                ('blotdiameter', 'blot-diameter'),
                ('staffheight', 'staff-height'),
-               ('linewidth', 'line-width')
+               ('linewidth', 'line-width'),
+               ('annotatespacing', 'annotate-spacing')
                ]
        
        for (a,b)  in identifier_subs:
index 8970bc1e3b092b894eb56d9fbca9bfd64330b653..8370ea8a403aaa425039f6d0bff8cc75a99a7184 100644 (file)
@@ -359,10 +359,12 @@ CURRENT-BEST is the best result sofar, or #f."
                            force user-penalty
                           best-paths))
 
-           (better? (or
-                     (not current-best)
-                     (< total-penalty (page-penalty current-best))))
-           (new-best (if better?
+           (is-better (or
+                      (not current-best)
+                      (and
+                       satisfied-constraints
+                       (< total-penalty (page-penalty current-best)))))
+           (new-best (if is-better
                         (begin
                           (map
                            (lambda (x)
@@ -387,7 +389,7 @@ CURRENT-BEST is the best result sofar, or #f."
             "\nuser pen " user-penalty
            "\nsatisfied-constraints" satisfied-constraints
            "\nlast? " last? "ragged?" ragged?
-            "\nbetter? " better? " total-penalty " total-penalty "\n"
+            "\nis-better " is-better " total-penalty " total-penalty "\n"
            "\nconfig " positions
             "\nforce " force
            "\nlines: " current-lines "\n")))
index 653c373085c376d6bb253e8d8de46ce8081553dd..9274eef3fd0d67410e79c2bce959d2e0fd90a91e 100644 (file)
@@ -32,7 +32,7 @@
 
 
 (define (annotate? layout)
-  (eq? #t (ly:output-def-lookup layout 'annotatespacing)))
+  (eq? #t (ly:output-def-lookup layout 'annotate-spacing)))
 
 
 (define page-module (current-module))