From c918b938edd83c117d4d10c1ecf3187f46efc696 Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Mon, 2 Feb 2004 11:40:51 +0000 Subject: [PATCH] * lily/tuplet-bracket.cc (make_bracket): make sure that gap is always smaller than bracket size. (make_bracket): oops. Size of the gap was off by factor 2 * lily/parser.yy (post_event): make HYPHEN into postfix event. * lily/new-lyric-combine-music-iterator.cc (find_context_below): use is_alias() iso. == . This fixes lyrics on GregorianTranscriptions. --- ChangeLog | 4 ++++ lily/new-lyric-combine-music-iterator.cc | 13 +++++++------ lily/parser.yy | 1 - lily/tuplet-bracket.cc | 11 ++++++++++- scm/define-grobs.scm | 2 +- 5 files changed, 22 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index 687ea79baf..9e4b1f7957 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2004-02-02 Han-Wen Nienhuys + * lily/tuplet-bracket.cc (make_bracket): make sure that gap is + always smaller than bracket size. + (make_bracket): oops. Size of the gap was off by factor 2 + * input/test/text-rotate.ly: new file. * scm/new-markup.scm (markup): a macro that provides a diff --git a/lily/new-lyric-combine-music-iterator.cc b/lily/new-lyric-combine-music-iterator.cc index 1e8356d6dd..e7c2e84696 100644 --- a/lily/new-lyric-combine-music-iterator.cc +++ b/lily/new-lyric-combine-music-iterator.cc @@ -71,9 +71,8 @@ New_lyric_combine_music_iterator::start_new_syllable () if (!b) return false; - /* FIXME: this is wrong use of construct_children () */ if (!lyrics_context_) - construct_children (); + return false; if (!to_boolean (lyrics_context_->get_property ("ignoreMelismata"))) { @@ -167,10 +166,12 @@ New_lyric_combine_music_iterator::construct_children () if (lyric_iter_) lyrics_context_ = find_context_below (lyric_iter_->report_to (), "LyricsVoice", ""); - - if (music_context_ && !lyrics_context_) - lyrics_context_ = music_context_ - ->find_create_translator (ly_symbol2scm ("LyricsVoice"), "", SCM_EOL); + + /* + We do not create a LyricsVoice context, because the user might + create one with a different name, and then we will not find that + one. + */ } void diff --git a/lily/parser.yy b/lily/parser.yy index 72d4de1ed3..277365e90f 100644 --- a/lily/parser.yy +++ b/lily/parser.yy @@ -1665,7 +1665,6 @@ pitch_also_in_chords: | steno_tonic_pitch ; - close_event: '(' { Music * s= MY_MAKE_MUSIC("SlurEvent"); diff --git a/lily/tuplet-bracket.cc b/lily/tuplet-bracket.cc index 351eed8fef..352331c630 100644 --- a/lily/tuplet-bracket.cc +++ b/lily/tuplet-bracket.cc @@ -258,7 +258,16 @@ Tuplet_bracket::make_bracket (Grob *me, // for line properties. Direction d = LEFT; do { straight_corners[d] += - d * shorten[d] /length * dz; - gap_corners[d] = (dz * 0.5) + d * gap / length * dz; + } while (flip (&d) != LEFT); + + /* + UGH: the shortening factor is magic. + */ + gap = gap flare_corners = straight_corners; diff --git a/scm/define-grobs.scm b/scm/define-grobs.scm index 3f2340989d..a3da4407dc 100644 --- a/scm/define-grobs.scm +++ b/scm/define-grobs.scm @@ -1174,7 +1174,7 @@ (TupletBracket . ( - (gap . 2.0) + (gap . 1.0) (padding . 1.1) (thickness . 1.6) (edge-height . (0.7 . 0.7)) -- 2.39.5