]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/hyphen-engraver.hh
release: 1.1.62
[lilypond.git] / lily / include / hyphen-engraver.hh
index 6ab2eb59bc5957bbdf27e6a2b41ff571cbc14879..d8af602c1240e531c230dd0ccc57da38bb700c5f 100644 (file)
 
 
 /**
-  Generate an centred hyphen.  Should make a Hyphen_spanner that typesets
-  a nice centred hyphen of varying length depending on the gap between syllables.
-
-  We remember all Text_items that come across, and store their
-  termination times. When we get a request, we create the spanner, and
-  attach the left point to the finished lyrics, and the right point to
-  any lyrics we receive by then.
-*/
+  Generate an centred hyphen.  Should make a Hyphen_spanner that
+  typesets a nice centred hyphen of varying length depending on the
+  gap between syllables.
+
+  We remember the last Text_item that come across. When we get a
+  request, we create the spanner, and attach the left point to the
+  last lyrics, and the right point to any lyrics we receive by
+  then.  */
 class Hyphen_engraver : public Engraver
 {
-  PQueue<Text_lyric_tuple> past_lyrics_pq_;
-  Array<Text_lyric_tuple> now_lyrics_;
-  Array<Text_lyric_tuple> stopped_lyrics_;  
-  
+  Text_item *  last_lyric_l_;
+  Text_item * current_lyric_l_;
   Hyphen_req* req_l_;
   Hyphen_spanner* hyphen_spanner_p_;
-
-  
 public:
   Hyphen_engraver ();
   VIRTUAL_COPY_CONS (Translator);