From c5cda88f8464c8d94f18ead05131b53278af4f57 Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Sun, 15 Jun 2003 14:44:44 +0000 Subject: [PATCH] (process_lilypond_blocks): opps. --- ChangeLog | 6 +++++- input/regression/beam-chord.ly | 21 ++++++++------------- input/test/trills.ly | 4 ---- scm/define-grobs.scm | 8 +++++++- scripts/lilypond-book.py | 3 ++- 5 files changed, 22 insertions(+), 20 deletions(-) diff --git a/ChangeLog b/ChangeLog index f39f1899dd..9bf7b85e58 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,10 +1,14 @@ +2003-06-15 Han-Wen Nienhuys + + * scripts/lilypond-book.py (process_lilypond_blocks): opps. + 2003-06-15 Heikki Junes * README.mandrake: Change lilypond-extras to lilypond-documentation. 2003-06-14 Han-Wen Nienhuys - * input/test/dpncnt.ly,part-combine-score.ly: remove. + * input/test/dpncnt.ly,part-combine-score.ly: remove. * VERSION (PACKAGE_NAME): release 1.7.21 diff --git a/input/regression/beam-chord.ly b/input/regression/beam-chord.ly index f37883393e..bfbd0a7f12 100644 --- a/input/regression/beam-chord.ly +++ b/input/regression/beam-chord.ly @@ -8,24 +8,19 @@ the beam should be be horizontal. " \score{ \notes \transpose c' c'{ -% this property doesn't appear to change the output in 1.7.19. -\property Voice.Beam \set #'position-callbacks = - #`(,Beam::least_squares - ,Beam::check_concave - ,Beam::slope_damping - ,Beam::shift_region_to_valid - - ) a'8-[ <>] - c-[ <>] a'16-[ <>] - c-[ <>] a'32-[ <>] - c-[ <>] + a'8-[ <>] + a'16-[ <>] + a'32-[ <>] + a'16-[ <>] + c8-[ <>] + c16-[ <>] + c32-[ <>] } \paper{ - - linewidth = 66.0\mm + raggedright = ##t } } %% new-chords-done %% diff --git a/input/test/trills.ly b/input/test/trills.ly index e12b5eaffc..a88400fa6d 100644 --- a/input/test/trills.ly +++ b/input/test/trills.ly @@ -1,7 +1,3 @@ - -% Generated automatically by: lilypond-book.py -% options are filename=/var/fred/cvs/savannah/lilypond/input/test/trills.ly printfilename - \paper { linewidth = 433.619940\pt diff --git a/scm/define-grobs.scm b/scm/define-grobs.scm index c7ebdc2c4d..c4981cb439 100644 --- a/scm/define-grobs.scm +++ b/scm/define-grobs.scm @@ -132,6 +132,7 @@ (molecule-callback . ,Beam::brew_molecule) (concaveness-gap . 2.0) (concaveness-threshold . 0.08) + (positions . (#f . #f)) (position-callbacks . (,Beam::least_squares ,Beam::check_concave @@ -168,7 +169,10 @@ (flag-width-function . ,beam-flag-width-function) (damping . 1) (auto-knee-gap . 5.5) - (font-name . "cmr10") + + ;; only for debugging. +; (font-name . "cmr10") + (space-function . ,Beam::space_function) (meta . ((interfaces . (staff-symbol-referencer-interface beam-interface spanner-interface)))) )) @@ -894,6 +898,8 @@ (Stem . ( + + ;; this list is rather long. Trim --hwn (before-line-breaking-callback . ,Stem::before_line_breaking) (molecule-callback . ,Stem::brew_molecule) (thickness . 1.3) diff --git a/scripts/lilypond-book.py b/scripts/lilypond-book.py index bb0e447655..0a9c5c682d 100644 --- a/scripts/lilypond-book.py +++ b/scripts/lilypond-book.py @@ -1153,13 +1153,14 @@ def process_lilypond_blocks (chunks):#ugh rename newchunks = [] # Count sections/chapters. for c in chunks: - cs = [] + cs = [c] if c[0] == 'lilypond': cs = schedule_lilypond_block (c) elif c[0] == 'numcols': paperguru.m_num_cols = c[2] elif c[0] == 'multicols': paperguru.m_multicols = c[2] + newchunks += cs return newchunks -- 2.39.5