]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/page-breaking-scheme.cc
Merge branch 'lilypond/translation'
[lilypond.git] / lily / page-breaking-scheme.cc
index 2241b503a760079d4a2ffc2776a00244d1379b7a..8b698942072ebf9ddc8459aa01360dd51dd52a2d 100644 (file)
@@ -10,6 +10,7 @@
 #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),
@@ -30,3 +31,13 @@ LY_DEFINE (ly_optimal_breaking, "ly:optimal-breaking",
   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 ();
+}