*/
#include "engraver.hh"
-#include "item.hh"
#include "side-position-interface.hh"
class Stanza_number_engraver : public Engraver
{
SCM stanza = get_property ("stanza");
- if (ly_string_p (stanza) && stanza != last_stanza_)
+ if (scm_is_string (stanza) && stanza != last_stanza_)
{
last_stanza_ = stanza;
- text_ = make_item ("StanzaNumber");
+ text_ = make_item ("StanzaNumber", SCM_EOL);
text_->set_property ("text", stanza);
- announce_grob (text_, SCM_EOL);
+
}
}
void
Stanza_number_engraver::stop_translation_timestep ()
{
- if (text_)
- {
- typeset_grob (text_);
- text_ = 0;
- }
+ text_ = 0;
}
-ENTER_DESCRIPTION (Stanza_number_engraver,
+ADD_TRANSLATOR (Stanza_number_engraver,
/* descr */ "",
/* creats*/ "StanzaNumber",
/* accepts */ "",