- (UGH UGH, pulled amount of space out of thin air)
- */
-
- text_p_->translate_axis (paper_l()->get_var ("staffspace")*0.66, X_AXIS);
-
- announce_element (text_p_, req_l_);
+Context*
+get_voice_to_lyrics (Context *lyrics)
+{
+ SCM avc = lyrics->get_property ("associatedVoiceContext");
+ if (Context *c = unsmob_context (avc))
+ return c;
+
+ SCM voice_name = lyrics->get_property ("associatedVoice");
+ String nm = lyrics->id_string ();
+
+ if (scm_is_string (voice_name))
+ nm = ly_scm2string (voice_name);
+ else
+ {
+ int idx = nm.index_last ('-');
+ if (idx >= 0)
+ nm = nm.left_string (idx);