From e513b5f3c62ae54230164951a1bb6820d6fc4c44 Mon Sep 17 00:00:00 2001 From: fred Date: Sun, 24 Mar 2002 19:48:21 +0000 Subject: [PATCH] lilypond-0.0.76 --- lily/idealspacing.cc | 26 ++++++++++++++++---------- lily/include/word-wrap.hh | 21 +++++++++++++++++++++ 2 files changed, 37 insertions(+), 10 deletions(-) create mode 100644 lily/include/word-wrap.hh diff --git a/lily/idealspacing.cc b/lily/idealspacing.cc index f1ff3691d5..9713f255db 100644 --- a/lily/idealspacing.cc +++ b/lily/idealspacing.cc @@ -1,3 +1,11 @@ +/* + idealspacing.cc -- implement Idealspacing + + source file of the GNU LilyPond music typesetter + + (c) 1996,1997 Han-Wen Nienhuys +*/ + #include "idealspacing.hh" #include "p-col.hh" #include "p-score.hh" @@ -8,23 +16,21 @@ Idealspacing::print() const { #ifndef NPRINT mtor << "idealspacing {" ; - mtor << "distance "<rank_i() << " right " << right->rank_i() << "}\n"; + mtor << "distance "<= 0 && left && right); -#endif + assert(hooke_f_ >= 0); } diff --git a/lily/include/word-wrap.hh b/lily/include/word-wrap.hh new file mode 100644 index 0000000000..b7b7d42cfa --- /dev/null +++ b/lily/include/word-wrap.hh @@ -0,0 +1,21 @@ +/* + word-wrap.hh -- declare Word_wrap + + source file of the GNU LilyPond music typesetter + + (c) 1997 Han-Wen Nienhuys +*/ + + +#ifndef WORD_WRAP_HH +#define WORD_WRAP_HH + +#include "break.hh" + +/// wordwrap type algorithm: move to next line if current is optimal. +struct Word_wrap : Break_algorithm { + virtual Array do_solve()const; + Word_wrap(PScore&); +}; + +#endif // WORD_WRAP_HH -- 2.39.5