@table @code
-@item blank-page-force
-@funindex blank-page-force
+@item blank-page-penalty
+@funindex blank-page-penalty
The penalty for having a blank page in the middle of a score. If
-@code{blank-page-force} is large and @code{ly:page-turn-breaking} is
+@code{blank-page-penalty} is large and @code{ly:page-turn-breaking} is
selected, then LilyPond will be less likely to insert a page in the
middle of a score. Instead, it will space out the music further to
fill the blank page and the following one. Default: 5.
-@item blank-last-page-force
-@funindex blank-last-page-force
+@item blank-last-page-penalty
+@funindex blank-last-page-penalty
The penalty for ending the score on an even-numbered page. If
-@code{blank-last-page-force} is large and
+@code{blank-last-page-penalty} is large and
@code{ly:page-turn-breaking} is selected, then LilyPond will be less
likely to produce a score in which the last page is even-numbered.
Instead, it will adjust the spacing in order to use one page more or
one page less. Default: 0.
-@item blank-after-score-page-force
-@funindex blank-after-score-page-force
+@item blank-after-score-page-penalty
+@funindex blank-after-score-page-penalty
The penalty for having a blank page after the end of one score and
before the next. By default, this is smaller than
-@code{blank-page-force}, so that blank pages after scores are
+@code{blank-page-penalty}, so that blank pages after scores are
inserted in preference to blank pages within a score. Default: 2.
@end table
SCM penalty_sym;
if (is_last ())
- penalty_sym = ly_symbol2scm ("blank-last-page-force");
+ penalty_sym = ly_symbol2scm ("blank-last-page-penalty");
else if (ends_score ())
- penalty_sym = ly_symbol2scm ("blank-after-score-page-force");
+ penalty_sym = ly_symbol2scm ("blank-after-score-page-penalty");
else
- penalty_sym = ly_symbol2scm ("blank-page-force");
+ penalty_sym = ly_symbol2scm ("blank-page-penalty");
Break_position const &pos = breaks_[current_end_breakpoint_];
if (Paper_score *ps = system_specs_[pos.system_spec_index_].pscore_)
str = re.sub ('\n"(' + wordsyntax + r')"(\s*=\s*\\stringTuning)', "\n\\1\\2", str)
return str
+@rule ((2, 17, 0), r"blank-*-force -> blank-*-penalty")
+def conv (str):
+ str = re.sub ('blank-page-force', 'blank-page-penalty', str)
+ str = re.sub ('blank-last-page-force', 'blank-last-page-penalty', str)
+ str = re.sub ('blank-after-score-page-force', 'blank-after-score-page-penalty', str)
+ return str
+
# Guidelines to write rules (please keep this at the end of this file)
#
# - keep at most one rule per version; if several conversions should be done,