]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/optimal-page-breaking.cc
Web-es: add missing '@end ifset'
[lilypond.git] / lily / optimal-page-breaking.cc
index e23bad23519e22c9f10d750f3d436a3da4be85a6..0a7989df338c50a2a9ea696639b798e67817e136 100644 (file)
@@ -1,11 +1,20 @@
 /*
-  optimal-page-breaking.cc -- implement a page-breaker that
-  will break pages in such a way that both horizontal and
-  vertical spacing will be acceptable
+  This file is part of LilyPond, the GNU music typesetter.
 
-  source file of the GNU LilyPond music typesetter
+  Copyright (C) 2006--2009 Joe Neeman <joeneeman@gmail.com>
 
-  (c) 2006--2009 Joe Neeman <joeneeman@gmail.com>
+  LilyPond is free software: you can redistribute it and/or modify
+  it under the terms of the GNU General Public License as published by
+  the Free Software Foundation, either version 3 of the License, or
+  (at your option) any later version.
+
+  LilyPond is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with LilyPond.  If not, see <http://www.gnu.org/licenses/>.
 */
 
 #include "international.hh"
@@ -78,9 +87,9 @@ Optimal_page_breaking::solve_chunk (vsize end)
     }
 
   if (page_count == 1 || scm_is_integer (forced_page_count))
-    progress_indication (_f ("[%d, %d pages]", (int) end, (int) page_count));
+    progress_indication (_f ("[%d: %d pages]", (int) end, (int) page_count));
   else
-    progress_indication (_f ("[%d, %d or %d pages]", (int) end, (int) page_count-1, (int)page_count));
+    progress_indication (_f ("[%d: %d or %d pages]", (int) end, (int) page_count-1, (int)page_count));
 
   /* try a smaller number of systems than the ideal number for line breaking */
   Line_division bound = ideal_line_division;
@@ -174,7 +183,7 @@ Optimal_page_breaking::solve ()
 {
   vector<vsize> systems_per_page;
 
-  message (_f ("Solving %d page-breaking chunks...", last_break_position ()-1));
+  message (_f ("Solving %d page-breaking chunks...", last_break_position ()));
   for (vsize end = 1; end <= last_break_position (); ++end)
     {
       vector<vsize> chunk_systems = solve_chunk (end);