2 lyric-engraver.cc -- implement Lyric_engraver
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 Jan Nieuwenhuizen <janneke@gnu.org>
10 #include "lyric-engraver.hh"
11 #include "musical-request.hh"
12 #include "text-item.hh"
13 #include "paper-def.hh"
16 ADD_THIS_TRANSLATOR (Lyric_engraver);
19 Lyric_engraver::Lyric_engraver()
26 Lyric_engraver::do_try_music (Music*r)
28 if (Lyric_req* l = dynamic_cast <Lyric_req *> (r))
39 Lyric_engraver::do_process_requests()
43 text_p_= new Text_item;
44 text_p_->text_str_ = req_l_->text_str_;
45 text_p_->text_str_ += " "; // ugh.
47 SCM style = get_property ("textStyle", 0);
48 if (gh_string_p(style))
49 text_p_->style_str_ = ly_scm2string (style);
51 text_p_->set_elt_property (non_rhythmic_scm_sym, SCM_BOOL_T);
53 announce_element (Score_element_info (text_p_, req_l_));
58 Lyric_engraver::do_pre_move_processing()
62 typeset_element (text_p_);
68 Lyric_engraver::do_post_move_processing ()