/*
- break-align-engraver.cc -- implement Break_align_engraver
+ This file is part of LilyPond, the GNU music typesetter.
- source file of the GNU LilyPond music typesetter
+ Copyright (C) 1999--2011 Han-Wen Nienhuys <hanwen@xs4all.nl>
- (c) 1999--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ 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 "engraver.hh"
#include "protected-scm.hh"
void
Break_align_engraver::acknowledge_break_alignable (Grob_info inf)
{
+ /*
+ Special case for MetronomeMark: filter out items which will be aligned
+ on note heads rather than prefatory material
+ */
+ if (!Item::is_non_musical (inf.item ()))
+ return;
+
if (!align_)
create_alignment (inf);
SCM align_name = item->get_property ("break-align-symbol");
if (!scm_is_symbol (align_name))
return;
-
+
if (!align_)
create_alignment (inf);
ADD_ACKNOWLEDGER (Break_align_engraver, break_alignable);
ADD_TRANSLATOR (Break_align_engraver,
/* doc */
- "Align grobs with corresponding @code{break-align-symbols} "
- "into groups, and order the groups according to "
- "@code{breakAlignOrder}. The left edge of the alignment gets "
- "a separate group, with a symbol @code{left-edge}.",
+ "Align grobs with corresponding @code{break-align-symbols}"
+ " into groups, and order the groups according to"
+ " @code{breakAlignOrder}. The left edge of the alignment gets"
+ " a separate group, with a symbol @code{left-edge}.",
/* create */
"BreakAlignment "