[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Patch for lily/hyphen-spanner.cc
From: |
Bertalan Fodor |
Subject: |
Patch for lily/hyphen-spanner.cc |
Date: |
Sat, 7 Feb 2004 01:03:48 +0100 |
I've been thinking about my problem about a bit and now I think that
including this patch is not a bad idea.
Greetings,
Bert
Index: lilypond/lily/hyphen-spanner.cc
===================================================================
RCS file: /cvsroot/lilypond/lilypond/lily/hyphen-spanner.cc,v
retrieving revision 1.43
diff -u -r1.43 hyphen-spanner.cc
--- lilypond/lily/hyphen-spanner.cc 5 Feb 2004 14:55:19 -0000 1.43
+++ lilypond/lily/hyphen-spanner.cc 7 Feb 2004 00:01:37 -0000
@@ -62,10 +62,11 @@
Real space_left = l - dl - (n-1)* dp;
/*
- If there is not enough space, the hyphen should disappear.
+ If there is not enough space, the hyphen should *not* disappear.
*/
- if (space_left < 0)
- return SCM_EOL;
+ int min_space=0.2; /* A minimal space should be kept between the syllable
and the hyphen */
+ if (space_left < min_space)
+ space_left = min_space;
Box b (Interval (0, dl), Interval (h,h+th));
Molecule dash_mol (Lookup::round_filled_box (b, 0.8 * lt));
- Patch for lily/hyphen-spanner.cc,
Bertalan Fodor <=