\dimHairpin,
\sustainUp -> \sustainOff, \sustainDown -> \sustainOn
\sostenutoDown -> \sostenutoOn, \sostenutoUp -> \sostenutoOff
+2.11.53: infinite-spacing-height -> extra-spacing-height
@end example
@item
/* properties */
"break-visibility "
+ "extra-spacing-height "
"extra-spacing-width "
- "infinite-spacing-height "
"non-musical "
);
Interval y (il->pure_height (ycommon, 0, very_large));
Interval x (il->extent (pc, X_AXIS));
- Interval extra = robust_scm2interval (elts[i]->get_property ("extra-spacing-width"),
- Interval (-0.1, 0.1));
- x[LEFT] += extra[LEFT];
- x[RIGHT] += extra[RIGHT];
- if (to_boolean (elts[i]->get_property ("infinite-spacing-height")))
- y = Interval (-infinity_f, infinity_f);
+ Interval extra_width = robust_scm2interval (elts[i]->get_property ("extra-spacing-width"),
+ Interval (-0.1, 0.1));
+ Interval extra_height = robust_scm2interval (elts[i]->get_property ("extra-spacing-height"),
+ Interval (-0.1, 0.1));
+
+ x[LEFT] += extra_width[LEFT];
+ x[RIGHT] += extra_width[RIGHT];
+ y[DOWN] += extra_height[DOWN];
+ y[UP] += extra_height[UP];
if (!x.is_empty () && !y.is_empty ())
out.push_back (Box (x, y));
% property-init.ly
-\version "2.11.52"
+\version "2.11.53"
stemUp = \override Stem #'direction = #UP
stemDown = \override Stem #'direction = #DOWN
textLengthOn = {
\override TextScript #'extra-spacing-width = #'(0 . 0)
- \override TextScript #'infinite-spacing-height = ##t
+ \override TextScript #'extra-spacing-height = #'(-inf.0 . +inf.0)
}
textLengthOff = {
\override TextScript #'extra-spacing-width = #'(+inf.0 . -inf.0)
- \override TextScript #'infinite-spacing-height = ##f
+ \override TextScript #'extra-spacing-height = #'(0 . 0)
}
balloonLengthOn = {
\override BalloonTextItem #'extra-spacing-width = #'(0 . 0)
- \override BalloonTextItem #'infinite-spacing-height = ##t
+ \override BalloonTextItem #'extra-spacing-height = #'(-inf.0 . +inf.0)
}
balloonLengthOff = {
\override BalloonTextItem #'extra-spacing-width = #'(+inf.0 . -inf.0)
- \override BalloonTextItem #'infinite-spacing-height = ##f
+ \override BalloonTextItem #'extra-spacing-height = #'(0 . 0)
}
str = str.replace ("setHairpinDim", "dimHairpin")
return str
+@rule ((2, 11, 53), "infinite-spacing-height -> extra-spacing-height")
+def conv (str):
+ str = re.sub (r"infinite-spacing-height\s+=\s+##t", r"extra-spacing-height = #'(-inf.0 . +inf.0)", str)
+ str = re.sub (r"infinite-spacing-height\s+=\s+##f", r"extra-spacing-height = #'(0 . 0)", 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,
offset is added just before outputting the symbol, so the typesetting
engine is completely oblivious to it. The values are measured in
@code{staff-space} units of the staff's @code{StaffSymbol}.")
+ (extra-spacing-height ,number-pair? "In the horizontal spacing
+problem, we increase the height of each item by this amount (by adding
+the @q{car} to the bottom of the item and adding the @q{cdr} to the top
+of the item. In order to make a grob infinitely high (to prevent the
+horizontal spacing problem from placing any other grobs above or below
+this grob), set this to @code{(-inf.0 . +inf.0)}.")
(extra-spacing-width ,number-pair? "In the horizontal spacing
problem, we pad each item by this amount (by adding the @q{car} on the
left side of the item and adding the @q{cdr} on the right side of the
(ignore-collision ,boolean? "If set, don't do note collision
resolution on this @code{NoteColumn}.")
(implicit ,boolean? "Is this an implicit bass figure?")
- (infinite-spacing-height ,boolean? "If true, then for the
-purposes of horizontal spacing, treat this item as though it were
-infinitely tall. That is, no object from another column is allowed to
-stick above or below this item.")
(inspect-index ,integer? "If debugging is set, set beam and slur
configuration to this index, and print the respective scores.")
(inspect-quants ,number-pair? "If debugging is set,
. ,ly:break-aligned-interface::calc-extent-aligned-anchor)
(break-visibility . ,all-visible)
(avoid-slur . inside)
+ (extra-spacing-height . (-1.0 . 1.0))
(space-alist . (
(first-note . (fixed-space . 2.0))
(right-edge . (extra-space . 0.5))