From: hanwen Date: Sat, 18 Sep 2004 11:11:58 +0000 (+0000) Subject: * lily/slur-scoring.cc (enumerate_attachments): make stem_extent a X-Git-Tag: release/2.3.24^2~185 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=0fdc14fa58fb7a23478d0db133c1121728b35e03;p=lilypond.git * lily/slur-scoring.cc (enumerate_attachments): make stem_extent a little wider for attachment calculation. This prevents stem and slur touching. * lily/parser.yy (direction_less_char): soft code \< \> \! \( \) ( ) * lily/slur-scoring.cc (score_extra_encompass): check if extra objects are on boundary column. --- diff --git a/ChangeLog b/ChangeLog index bac9ea8bc4..e6f0186099 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2004-09-18 Han-Wen Nienhuys + * lily/slur-scoring.cc (enumerate_attachments): make stem_extent a + little wider for attachment calculation. This prevents stem and + slur touching. + * lily/parser.yy (direction_less_char): soft code \< \> \! \( \) ( ) diff --git a/Documentation/user/changing-defaults.itely b/Documentation/user/changing-defaults.itely index 0114cec0e5..8483eb1e59 100644 --- a/Documentation/user/changing-defaults.itely +++ b/Documentation/user/changing-defaults.itely @@ -2230,12 +2230,16 @@ The default layout responds to the following settings in the @item footsep Distance between bottom-most music system and the page footer @item raggedbottom - If set to true, systems will not be spread across the page. + If set to true, systems will not be spread across the page. + + This should be set false for pieces that have only two or three +systems per page, for example orchestral scores. + @item raggedlastbottom - If set to true, systems will not be spread to fill the last page. + If set to false, systems will be spread to fill the last page. - This is the default. Only pieces that amply fill two pages or more -should have this set to true. + Pieces that amply fill two pages or more should have this set to +true. @item betweensystemspace This dimensions determines the distance between systems. It is the diff --git a/THANKS b/THANKS index 20be57364b..fe0fabf2ed 100644 --- a/THANKS +++ b/THANKS @@ -26,6 +26,7 @@ BUG HUNTERS/SUGGESTIONS Antti Kaihola Bertalan Fodor +Christophe Papazian Daniel Berjón Díez Dave Phillips David Bobroff diff --git a/lily/parser.yy b/lily/parser.yy index 267ec9467d..f14af09fae 100644 --- a/lily/parser.yy +++ b/lily/parser.yy @@ -386,7 +386,6 @@ or %type gen_text_def direction_less_event direction_reqd_event %type music_property_def context_change %type note_chord_element chord_body chord_body_element -%type open_event close_event %type post_event tagged_post_event %type relative_music re_rhythmed_music %type simple_element event_chord command_element @@ -1208,16 +1207,12 @@ new_lyrics: /* Can also use Music at the expensive of two S/Rs similar to \repeat \alternative */ THIS->lexer_->pop_state (); -#if 0 - Music *music = MY_MAKE_MUSIC ("SimultaneousMusic"); - music->set_property ("elements", scm_list_1 ($3->self_scm ())); - $$ = music; -#else + $$ = scm_cons ($3->self_scm (), SCM_EOL); -#endif } - | new_lyrics ADDLYRICS { THIS->lexer_->push_lyric_state (); } - Grouped_music_list { + | new_lyrics ADDLYRICS { + THIS->lexer_->push_lyric_state (); + } Grouped_music_list { THIS->lexer_->pop_state (); $$ = scm_cons ($4->self_scm (), $1); } @@ -1226,7 +1221,6 @@ new_lyrics: re_rhythmed_music: Grouped_music_list new_lyrics { - /* FIXME: should find out uniqueXXX name from music */ SCM name = $1->get_property ("context-id"); //if (name == SCM_EOL) if (!scm_is_string (name)) @@ -1778,9 +1772,9 @@ direction_less_char: ; direction_less_event: - direction_less_char { + direction_less_char { SCM predefd = THIS->lexer_->lookup_identifier_symbol ($1); - Music * m = 0: + Music * m = 0; if (unsmob_music (predefd)) { m = unsmob_music (predefd)->clone (); @@ -2648,6 +2642,9 @@ context_spec_music (SCM type, SCM id, Music *m, SCM ops) return csm; } +/* +FIXME: this should be postponed until the music hits \Score +*/ SCM get_next_unique_context () { diff --git a/lily/slur-scoring.cc b/lily/slur-scoring.cc index 68e1400732..1f904c18de 100644 --- a/lily/slur-scoring.cc +++ b/lily/slur-scoring.cc @@ -789,8 +789,10 @@ enumerate_attachments (Grob *me, Grob *common[], && !Stem::is_invisible (extremes[d].stem_) && extremes[d].stem_dir_ == dir) { + Interval stem_y = extremes[d].stem_extent_[Y_AXIS]; + stem_y.widen (0.25 * staff_space); if (dir == -d - && extremes[d].stem_extent_[Y_AXIS].contains (os[d][Y_AXIS])) + && stem_y.contains (os[d][Y_AXIS])) { os[d][X_AXIS] = extremes[d].slur_head_extent_[-d] - d * 0.3;