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-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!
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;
#include "real.hh"
-template<class T> struct Link_list;
template<class T> struct Interval_t;
template<class T> struct PQueue;
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];
}
}
('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:
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)
"\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")))
(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))