TRANSLATOR_DECLARATIONS (Text_engraver);
protected:
virtual bool try_music (Music *m);
- PRECOMPUTED_VIRTUAL void stop_translation_timestep ();
- PRECOMPUTED_VIRTUAL void process_acknowledged ();
+ void stop_translation_timestep ();
+ void process_acknowledged ();
- DECLARE_ACKNOWLEDGER(stem);
- DECLARE_ACKNOWLEDGER(rhythmic_head);
+ DECLARE_ACKNOWLEDGER (stem);
+ DECLARE_ACKNOWLEDGER (rhythmic_head);
};
bool
Text_engraver::acknowledge_stem (Grob_info inf)
{
for (int i = 0; i < texts_.size (); i++)
- {
- Side_position_interface::add_support (texts_[i], inf.grob ());
- }
+ Side_position_interface::add_support (texts_[i], inf.grob ());
}
void
/* see script-engraver.cc */
priority += i;
- text->set_property ("script-priority", scm_int2num (priority));
+ text->set_property ("script-priority", scm_from_int (priority));
Direction dir = to_dir (r->get_property ("direction"));
if (dir)
#include "translator.icc"
-ADD_ACKNOWLEDGER(Text_engraver, stem);
-ADD_ACKNOWLEDGER(Text_engraver, rhythmic_head);
+ADD_ACKNOWLEDGER (Text_engraver, stem);
+ADD_ACKNOWLEDGER (Text_engraver, rhythmic_head);
ADD_TRANSLATOR (Text_engraver,
- /* descr */ "Create text-scripts",
- /* creats*/ "TextScript",
- /* accepts */ "text-script-event",
- /* reads */ "",
+ /* doc */ "Create text-scripts",
+ /* create */ "TextScript",
+ /* accept */ "text-script-event",
+ /* read */ "",
/* write */ "");