+2004-02-24 Han-Wen Nienhuys <hanwen@xs4all.nl>
+
+ * lily/hyphen-engraver.cc (finalize): suicide unterminated hyphens.
+
+ * scripts/lilypond-book.py (compose_ly): cleanup relative= option,
+ obey documentation.
+
2004-02-24 Jan Nieuwenhuizen <janneke@gnu.org>
* scm/output-ps.scm: Resurrect.
completize_hyphen (finished_hyphen_);
if (!finished_hyphen_->get_bound (RIGHT))
- finished_hyphen_->warning (_("unterminated hyphen"));
+ {
+ finished_hyphen_->warning (_("unterminated hyphen; removing"));
+ finished_hyphen_->suicide ();
+ }
typeset_grob (finished_hyphen_);
finished_hyphen_ =0;
}
if RELATIVE in override.keys () and override[RELATIVE]:
relative = string.atoi (override[RELATIVE])
- relative_quotes = (",,,", ",,", ",", "", "'", "''", "'''")[relative+4]
+ relative_quotes = ''
+
+ # 1 = central C
+ if relative < 0:
+ relative_quotes += ',' * (- relative - 1)
+ elif relative > 0:
+ relative_quotes += "'" * relative
+
program_name = __main__.program_name
paper_string = string.join (paper_options, '\n ') % override
preamble_string = string.join (preamble_options, '\n ') % override