-\version "2.13.39"
+\version "2.13.42"
\header {
texidoc = "minimum-distance within a system is correctly accounted for in page breaking."
\context {
\Score
\override VerticalAxisGroup #'staff-staff-spacing =
- #'((space . 20)
+ #'((basic-distance . 20)
(stretchability . 0))
}
}
-\version "2.13.36"
+\version "2.13.42"
\header {
texidoc = "Non-staff lines between two systems don't confuse the
\paper {
ragged-right = ##t
- system-system-spacing = #'((space . 20) (minimum-distance . 30))
+ system-system-spacing = #'((basic-distance . 20) (minimum-distance . 30))
annotate-spacing = ##t
}
-\version "2.13.39"
+\version "2.13.42"
\header {
texidoc = "A non-staff line (such as @code{Lyrics}) at the
ragged-right = ##t
\context {
\Lyrics
- \override VerticalAxisGroup #'nonstaff-nonstaff-spacing #'space = #20
+ \override VerticalAxisGroup #'nonstaff-nonstaff-spacing #'basic-distance = #20
}
}
<<
-\version "2.13.36"
+\version "2.13.42"
\header {
texidoc = "Padding from the header and footer is measured to the
\book {
\paper {
- top-system-spacing = #'((space . 1) (padding . 10))
- last-bottom-spacing = #'((space . 1) (padding . 10))
+ top-system-spacing = #'((basic-distance . 1) (padding . 10))
+ last-bottom-spacing = #'((basic-distance . 1) (padding . 10))
annotate-spacing = ##t
ragged-last-bottom = ##f
}
-\version "2.13.39"
+\version "2.13.42"
\header {
texidoc = "StaffGrouper interacts correctly with \RemoveEmptyStaffContext.
\score {
<<
\new StaffGroup = "G1" \with {
- \override StaffGrouper #'staffgroup-staff-spacing #'space = #20
+ \override StaffGrouper #'staffgroup-staff-spacing #'basic-distance = #20
}
<<
\new Staff { c'1 \break c'1 \break R1 }
-\version "2.13.38"
+\version "2.13.42"
\header {
texidoc = "Setting individual nested paper properties does not
\book {
\paper {
annotate-spacing = ##t
- system-system-spacing = #'((space . 12) (minimum-distance . 8))
+ system-system-spacing = #'((basic-distance . 12) (minimum-distance . 8))
system-system-spacing #'padding = #1
}
\relative c' {
-\version "2.13.36"
+\version "2.13.42"
\header {
texidoc = "By setting the padding between systems to a negative
\book {
\paper {
ragged-bottom = ##t
- system-system-spacing = #'((space . 1) (padding . -10))
+ system-system-spacing = #'((basic-distance . 1) (padding . -10))
}
{
Page_layout_problem::read_spacing_spec (spacing_spec,
&system_system_space_,
- ly_symbol2scm ("space"));
+ ly_symbol2scm ("basic-distance"));
Page_layout_problem::read_spacing_spec (page_breaking_spacing_spec,
&system_system_space_,
- ly_symbol2scm ("space"));
+ ly_symbol2scm ("basic-distance"));
Page_layout_problem::read_spacing_spec (title_spec,
&system_markup_space_,
- ly_symbol2scm ("space"));
+ ly_symbol2scm ("basic-distance"));
Page_layout_problem::read_spacing_spec (spacing_spec,
&system_system_padding_,
title_min_distance_ = 0;
space_ = 0;
title_space_ = 0;
- Page_layout_problem::read_spacing_spec (spec, &space_, ly_symbol2scm ("space"));
- Page_layout_problem::read_spacing_spec (title_spec, &title_space_, ly_symbol2scm ("space"));
+ Page_layout_problem::read_spacing_spec (spec, &space_, ly_symbol2scm ("basic-distance"));
+ Page_layout_problem::read_spacing_spec (title_spec, &title_space_, ly_symbol2scm ("basic-distance"));
Page_layout_problem::read_spacing_spec (spec, &padding_, ly_symbol2scm ("padding"));
Page_layout_problem::read_spacing_spec (title_spec, &title_padding_, ly_symbol2scm ("padding"));
Page_layout_problem::read_spacing_spec (spec, &min_distance_, ly_symbol2scm ("minimum-distance"));
Real stretchability = 0;
if (Page_layout_problem::read_spacing_spec (spec, &stretchability, ly_symbol2scm ("stretchability"))
&& stretchability == 0)
- Page_layout_problem::read_spacing_spec (spec, &ret, ly_symbol2scm ("space"));
+ Page_layout_problem::read_spacing_spec (spec, &ret, ly_symbol2scm ("basic-distance"));
// If we're pure, then paper-columns have not had their systems set,
// and so elts[i]->get_system () is unreliable.
Real space;
Real stretch;
Real min_dist;
- if (read_spacing_spec (spec, &space, ly_symbol2scm ("space")))
+ if (read_spacing_spec (spec, &space, ly_symbol2scm ("basic-distance")))
spring->set_distance (space);
if (read_spacing_spec (spec, &min_dist, ly_symbol2scm ("minimum-distance")))
spring->set_min_distance (min_dist);
%%%% You should have received a copy of the GNU General Public License
%%%% along with LilyPond. If not, see <http://www.gnu.org/licenses/>.
-\version "2.13.39"
+\version "2.13.42"
\context {
\name "Global"
pedalUnaCordaStrings = #'("una corda" "" "tre corde")
\override VerticalAxisGroup #'staff-affinity = #CENTER
\override VerticalAxisGroup #'nonstaff-relatedstaff-spacing =
- #'((space . 5)
+ #'((basic-distance . 5)
(padding . 0.5))
\override TextScript #'font-shape = #'italic
\override DynamicLineSpanner #'Y-offset = #0
\override VerticalAxisGroup #'remove-empty = ##t
\override VerticalAxisGroup #'staff-affinity = #UP
\override VerticalAxisGroup #'nonstaff-relatedstaff-spacing =
- #'((space . 5.5)
- (stretchability . 1)
- (padding . 0.5))
+ #'((basic-distance . 5.5)
+ (padding . 0.5)
+ (stretchability . 1))
\override VerticalAxisGroup #'nonstaff-nonstaff-spacing =
- #'((space . 0)
- (stretchability . 0)
+ #'((basic-distance . 0)
+ (minimum-distance . 2.8)
(padding . 0.2)
- (minimum-distance . 2.8))
+ (stretchability . 0))
\override VerticalAxisGroup #'nonstaff-unrelatedstaff-spacing #'padding = #1.5
\override InstrumentName #'self-alignment-Y = ##f
%%%% You should have received a copy of the GNU General Public License
%%%% along with LilyPond. If not, see <http://www.gnu.org/licenses/>.
-\version "2.12.0"
+\version "2.13.42"
\paper {
#(set-paper-dimension-variables (current-module))
%% Flexible vertical spacing
%%
%% Note: these are not scaled; they are in staff-spaces.
- system-system-spacing = #'((space . 12) (minimum-distance . 8) (padding . 1) (stretchability . 60))
- score-system-spacing = #'((space . 14) (minimum-distance . 8) (padding . 1) (stretchability . 120))
- markup-system-spacing = #'((space . 5) (padding . 0.5) (stretchability . 30))
- score-markup-spacing = #'((space . 12) (padding . 0.5) (stretchability . 60))
- markup-markup-spacing = #'((space . 1) (padding . 0.5))
- top-system-spacing = #'((space . 1) (padding . 1) (minimum-distance . 0))
- top-markup-spacing = #'((space . 0) (padding . 1) (minimum-distance . 0))
- last-bottom-spacing = #'((space . 1) (padding . 1) (minimum-distance . 0) (stretchability . 30))
+ system-system-spacing = #'((basic-distance . 12) (minimum-distance . 8) (padding . 1) (stretchability . 60))
+ score-system-spacing = #'((basic-distance . 14) (minimum-distance . 8) (padding . 1) (stretchability . 120))
+ markup-system-spacing = #'((basic-distance . 5) (padding . 0.5) (stretchability . 30))
+ score-markup-spacing = #'((basic-distance . 12) (padding . 0.5) (stretchability . 60))
+ markup-markup-spacing = #'((basic-distance . 1) (padding . 0.5))
+ top-system-spacing = #'((basic-distance . 1) (padding . 1) (minimum-distance . 0))
+ top-markup-spacing = #'((basic-distance . 0) (padding . 1) (minimum-distance . 0))
+ last-bottom-spacing = #'((basic-distance . 1) (padding . 1) (minimum-distance . 0) (stretchability . 30))
%%
return str
+@rule ((2, 13, 42),
+ _ ("Rename space to basic-distance in various spacing alists."))
+def conv(str):
+ str = re.sub (r'\(space\s+\.\s+([0-9]*\.?[0-9]*)\)', r'(basic-distance . \1)', str)
+ str = re.sub (r"#'space\s+=\s+#?([0-9]*\.?[0-9]*)", r"#'basic-distance = #\1", str)
+ return str
+
# Guidelines to write rules (please keep this at the end of this file)
#
@item @code{padding} -- the minimum required amount of
unobstructed vertical whitespace between the two items, measured
in staff-spaces.
-@item @code{space} -- the vertical distance, measured in
+@item @code{basic-distance} -- the vertical distance, measured in
staff-spaces, between the reference points of the two items when
no collisions would result, and no stretching or compressing is in
effect.
(StaffGrouper
. (
- (staff-staff-spacing . ((space . 9)
- (stretchability . 5)
+ (staff-staff-spacing . ((basic-distance . 9)
(minimum-distance . 7)
- (padding . 1)))
- (staffgroup-staff-spacing . ((space . 10.5)
- (stretchability . 9)
+ (padding . 1)
+ (stretchability . 5)))
+ (staffgroup-staff-spacing . ((basic-distance . 10.5)
(minimum-distance . 8)
- (padding . 1)))
+ (padding . 1)
+ (stretchability . 9)))
(meta . ((class . Spanner)
(interfaces . (staff-grouper-interface))))))
. (
(adjacent-pure-heights . ,ly:axis-group-interface::adjacent-pure-heights)
(axes . (,Y))
- (default-staff-staff-spacing . ((space . 9)
+ (default-staff-staff-spacing . ((basic-distance . 9)
(minimum-distance . 8)
(padding . 1)))
(nonstaff-unrelatedstaff-spacing . ((padding . 0.5)))