/*
- part-combine-engraver.cc -- implement PC-engraver
+ This file is part of LilyPond, the GNU music typesetter.
- source file of the GNU LilyPond music typesetter
-
- (c) 2000--2006 Jan Nieuwenhuizen <janneke@gnu.org>
+ Copyright (C) 2000--2010 Jan Nieuwenhuizen <janneke@gnu.org>
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 "stem.hh"
#include "stream-event.hh"
#include "text-interface.hh"
+#include "item.hh"
#include "translator.icc"
void
Part_combine_engraver::listen_part_combine (Stream_event *ev)
{
- event_ = ev;
+ ASSIGN_EVENT_ONCE (event_, ev);
}
Part_combine_engraver::Part_combine_engraver ()
{
SCM what = event_->get_property ("class");
SCM text = SCM_EOL;
- if (what == ly_symbol2scm ("solo1-event"))
+ if (what == ly_symbol2scm ("solo-one-event"))
text = get_property ("soloText");
- else if (what == ly_symbol2scm ("solo2-event"))
+ else if (what == ly_symbol2scm ("solo-two-event"))
text = get_property ("soloIIText");
else if (what == ly_symbol2scm ("unisono-event"))
text = get_property ("aDueText");
ADD_ACKNOWLEDGER (Part_combine_engraver, note_head);
ADD_ACKNOWLEDGER (Part_combine_engraver, stem);
ADD_TRANSLATOR (Part_combine_engraver,
- /* doc */ "Part combine engraver for orchestral scores: "
- "Print markings a2, Solo, Solo II, and unisono ",
- /* create */ "CombineTextScript",
- /* accept */ "part-combine-event",
- /* read */ "printPartCombineTexts soloText soloIIText "
- "aDueText",
- /* write */ "");
+ /* doc */
+ "Part combine engraver for orchestral scores: Print markings"
+ " @q{a2}, @q{Solo}, @q{Solo II}, and @q{unisono}.",
+
+ /* create */
+ "CombineTextScript ",
+
+ /* read */
+ "printPartCombineTexts "
+ "soloText "
+ "soloIIText "
+ "aDueText ",
+
+ /* write */
+ ""
+ );