/*
- 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"
}
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;
{
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);