else if (Moment (2) * meas_len == body_length_)
repeat_sign_type_ = DOUBLE_MEASURE;
else
- {
- warning (_f ("can't handle a percent repeat of length: %s",
- body_length_.to_string ()));
- return false;
- }
+ return false;
+
repeat_ = m;
Grob *col = unsmob_grob (get_property ("currentCommandColumn"));
percent_->set_bound (LEFT, col);
- if (total_count_ > 2)
+ if (total_count_ > 2
+ && to_boolean (get_property ("countPercentRepeats")))
{
percent_counter_
= make_spanner ("PercentRepeatCounter", repeat_->self_scm ());
{
double_percent_ = make_item ("DoublePercentRepeat", repeat_->self_scm ());
- if (total_count_ > 2)
+ if (total_count_ > 2
+ && to_boolean (get_property ("countPercentRepeats")))
{
double_percent_counter_
= make_item ("DoublePercentRepeatCounter",
}
ADD_TRANSLATOR (Percent_repeat_engraver,
- /* doc */ "Make whole bar and double bar repeats.",
+ /* doc */
+ "Make whole bar and double bar repeats.",
+
/* create */
- "PercentRepeat DoublePercentRepeat "
- "PercentRepeatCounter DoublePercentRepeatCounter",
- /* accept */ "repeated-music",
- /* read */ "measureLength currentCommandColumn",
+ "PercentRepeat "
+ "DoublePercentRepeat "
+ "PercentRepeatCounter "
+ "DoublePercentRepeatCounter",
+
+ /* accept */
+ "repeated-music",
+
+ /* read */
+ "measureLength "
+ "currentCommandColumn "
+ "countPercentRepeats",
+
/* write */ "");