LEFT | RIGHT |
1 /* | 1 /* |
2 This file is part of LilyPond, the GNU music typesetter. | 2 This file is part of LilyPond, the GNU music typesetter. |
3 | 3 |
4 Copyright (C) 1999--2020 Glen Prideaux <glenprideaux@iname.com>, | 4 Copyright (C) 1999--2020 Glen Prideaux <glenprideaux@iname.com>, |
5 Han-Wen Nienhuys <hanwen@xs4all.nl>, | 5 Han-Wen Nienhuys <hanwen@xs4all.nl>, |
6 Jan Nieuwenhuizen <janneke@gnu.org> | 6 Jan Nieuwenhuizen <janneke@gnu.org> |
7 | 7 |
8 LilyPond is free software: you can redistribute it and/or modify | 8 LilyPond is free software: you can redistribute it and/or modify |
9 it under the terms of the GNU General Public License as published by | 9 it under the terms of the GNU General Public License as published by |
10 the Free Software Foundation, either version 3 of the License, or | 10 the Free Software Foundation, either version 3 of the License, or |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 finished_hyphen_ = 0; | 128 finished_hyphen_ = 0; |
129 } | 129 } |
130 } | 130 } |
131 | 131 |
132 void | 132 void |
133 Hyphen_engraver::process_music () | 133 Hyphen_engraver::process_music () |
134 { | 134 { |
135 if (ev_) | 135 if (ev_) |
136 { | 136 { |
137 if (ev_->in_event_class("vowel-transition-event")) | 137 if (ev_->in_event_class("vowel-transition-event")) |
138 hyphen_ = make_spanner ("LyricTransition", ev_->self_scm ()); | 138 hyphen_ = make_spanner ("VowelTransition", ev_->self_scm ()); |
139 else | 139 else |
140 hyphen_ = make_spanner ("LyricHyphen", ev_->self_scm ()); | 140 hyphen_ = make_spanner ("LyricHyphen", ev_->self_scm ()); |
141 } | 141 } |
142 } | 142 } |
143 | 143 |
144 void | 144 void |
145 Hyphen_engraver::stop_translation_timestep () | 145 Hyphen_engraver::stop_translation_timestep () |
146 { | 146 { |
147 if (finished_hyphen_ && finished_hyphen_->get_bound (RIGHT)) | 147 if (finished_hyphen_ && finished_hyphen_->get_bound (RIGHT)) |
148 { | 148 { |
(...skipping 11 matching lines...) Expand all Loading... |
160 if (hyphen_) | 160 if (hyphen_) |
161 { | 161 { |
162 finished_hyphen_ = hyphen_; | 162 finished_hyphen_ = hyphen_; |
163 finished_ev_ = ev_; | 163 finished_ev_ = ev_; |
164 } | 164 } |
165 | 165 |
166 hyphen_ = 0; | 166 hyphen_ = 0; |
167 ev_ = 0; | 167 ev_ = 0; |
168 } | 168 } |
169 | 169 |
170 | |
171 void | 170 void |
172 Hyphen_engraver::boot () | 171 Hyphen_engraver::boot () |
173 { | 172 { |
174 ADD_LISTENER (Hyphen_engraver, hyphen); | 173 ADD_LISTENER (Hyphen_engraver, hyphen); |
175 ADD_LISTENER (Hyphen_engraver, vowel_transition); | 174 ADD_LISTENER (Hyphen_engraver, vowel_transition); |
176 ADD_ACKNOWLEDGER (Hyphen_engraver, lyric_syllable); | 175 ADD_ACKNOWLEDGER (Hyphen_engraver, lyric_syllable); |
177 } | 176 } |
178 | 177 |
179 ADD_TRANSLATOR (Hyphen_engraver, | 178 ADD_TRANSLATOR (Hyphen_engraver, |
180 /* doc */ | 179 /* doc */ |
181 "Create lyric hyphens, vowel transitions and distance constraint
s between words.", | 180 "Create lyric hyphens, vowel transitions and distance constraint
s between words.", |
182 | 181 |
183 /* create */ | 182 /* create */ |
184 "LyricHyphen " | 183 "LyricHyphen " |
185 "LyricSpace " | 184 "LyricSpace " |
186 "LyricTransition ", | 185 "VowelTransition ", |
187 | 186 |
188 /* read */ | 187 /* read */ |
189 "", | 188 "", |
190 | 189 |
191 /* write */ | 190 /* write */ |
192 "" | 191 "" |
193 ); | 192 ); |
LEFT | RIGHT |