X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fpage-breaking-scheme.cc;h=d9f9df152a878f2e1e2c09d7e15fba58c54376e9;hb=cdee4995970e45545eb0926b9666b7c60ca22f0d;hp=2c28da917e1f579b94e7e5d2d743d5f015cd5359;hpb=ba420bc05855eeca5fb937939261baffd614c2ef;p=lilypond.git diff --git a/lily/page-breaking-scheme.cc b/lily/page-breaking-scheme.cc index 2c28da917e..d9f9df152a 100644 --- a/lily/page-breaking-scheme.cc +++ b/lily/page-breaking-scheme.cc @@ -4,17 +4,19 @@ source file of the GNU LilyPond music typesetter - (c) 2006 Joe Neeman + (c) 2006--2007 Joe Neeman */ #include "paper-book.hh" #include "page-turn-page-breaking.hh" #include "optimal-page-breaking.hh" +#include "minimal-page-breaking.hh" LY_DEFINE (ly_page_turn_breaking, "ly:page-turn-breaking", 1, 0, 0, (SCM pb), - "Optimally break (pages and lines) the Paper_book PB such that page turns " - "only happen in specified places, returning its pages.") + "Optimally break (pages and lines) the @code{Paper_book} object" + " @var{pb} such that page turns only happen in specified places," + " returning its pages.") { Page_turn_page_breaking b (unsmob_paper_book (pb)); return b.solve (); @@ -22,9 +24,20 @@ LY_DEFINE (ly_page_turn_breaking, "ly:page-turn-breaking", LY_DEFINE (ly_optimal_breaking, "ly:optimal-breaking", 1, 0, 0, (SCM pb), - "Optimally break (pages and lines) the Paper_book PB to minimise badness in " - "bother vertical and horizontal spacing.") + "Optimally break (pages and lines) the @code{Paper_book} object" + " @var{pb} to minimize badness in bother vertical and horizontal" + " spacing.") { Optimal_page_breaking b (unsmob_paper_book (pb)); return b.solve (); } + +LY_DEFINE (ly_minimal_breaking, "ly:minimal-breaking", + 1, 0, 0, (SCM pb), + "Break (pages and lines) the @code{Paper_book} object @var{pb}" + "without looking for optimal spacing: stack as many lines on" + "a page before moving to the next one.") +{ + Minimal_page_breaking b (unsmob_paper_book (pb)); + return b.solve (); +}