source file of the GNU LilyPond music typesetter
- (c) 2006--2007 Han-Wen Nienhuys <hanwen@lilypond.org>
+ (c) 2006--2009 Han-Wen Nienhuys <hanwen@lilypond.org>
*/
#include "engraver.hh"
#include "item.hh"
+#include "text-interface.hh"
#include "translator.icc"
if (!scm_is_eq (cue_name_, cue_text))
{
- text_ = make_item ("InstrumentSwitch", SCM_EOL);
- text_->set_property ("text", cue_text);
+ if (Text_interface::is_markup (cue_text))
+ {
+ text_ = make_item ("InstrumentSwitch", SCM_EOL);
+ text_->set_property ("text", cue_text);
+ }
cue_name_ = cue_text;
}
}
}
ADD_TRANSLATOR (Instrument_switch_engraver,
- "Create a cue text for taking instrument.",
+ /* doc */
+ "Create a cue text for taking instrument.",
- "InstrumentSwitch ",
+ /* create */
+ "InstrumentSwitch ",
- "instrumentCueName",
+ /* read */
+ "instrumentCueName ",
- "");
+ /* write */
+ ""
+ );