it would too small.
* lily/font-metric.cc: return #f for non-existent glyph.
* VERSION (MY_PATCH_LEVEL): read VERSION; version number is now
exported through config.make.
2003-09-15 Han-Wen Nienhuys <hanwen@cs.uu.nl>
- * VERSION (MY_PATCH_LEVEL): readd VERSION; version number is now
+ * lily/tuplet-bracket.cc (brew_molecule): don't print bracket when
+ it would be too small.
+
+ * lily/font-metric.cc: return #f for non-existent glyph.
+
+ * VERSION (MY_PATCH_LEVEL): read VERSION; version number is now
exported through config.make.
* input/regression/clef-oct.ly: new file.
* lily/lexer.ll: add \r to the rules for newlines; this fixes
problems on older Mac editors.
- * configure.in: release 1.9.5
-
2003-09-12 Juergen Reuter <reuter@ipd.uka.de>
* mf/parmesan-clefs.mf: more set_char_box() fixes and code cleanup
2003-09-09 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+ * configure.in: release 1.9.5
+
* scripts/lilypond.py (global_latex_preamble): only set
twosideshift if 'twoside' is in latexoptions
@chapter New features in 1.9 since 1.8
@itemize
+@item
+Clefs may now be transposed arbitrarily, for example
+
+@example
+ \clef "G_8"
+ \clef "G_15"
+ \clef "G_9"
+@end example
+
@item
The syntax for chords and simultaneous music have changed.
<@var{pitches}>
@end example
-while simultaneous music is entered
+while simultaneous music is entered as
@example
<<@var{..music list..}>>
+PACKAGE_NAME=LilyPond
MAJOR_VERSION=1
MINOR_VERSION=9
PATCH_LEVEL=6
LY_DEFINE(ly_find_glyph_by_name, "ly:find-glyph-by-name", 2 , 0, 0,
(SCM font, SCM name),
"This function retrieves a Molecule for the glyph named @var{name} in "
-"@var{font}. The font must be available as an AFM file.")
+"@var{font}. The font must be available as an AFM file. If the glyph "
+"is not found, #f is returned. ")
{
Font_metric *fm = unsmob_metrics (font);
SCM_ASSERT_TYPE(fm, font, SCM_ARG1, __FUNCTION__, "font-metric");
SCM_ASSERT_TYPE(gh_string_p (name), name, SCM_ARG2, __FUNCTION__, "string");
- return fm->find_by_name (ly_scm2string (name)).smobbed_copy ();
+ Molecule m = fm->find_by_name (ly_scm2string (name));
+
+ if (m.get_expr () != SCM_EOL)
+ return m.smobbed_copy ();
+ else
+ return SCM_BOOL_F;
}
LY_DEFINE(ly_get_glyph, "ly:get-glyph", 2 , 0, 0,
Real x1 = rgr->extent (commonx,X_AXIS)[RIGHT];
Real w = x1 -x0;
-
+
Real ly = gh_scm2double (me->get_grob_property ("left-position"));
Real ry = gh_scm2double (me->get_grob_property ("right-position"));
SCM number = me->get_grob_property ("text");
mol.add_molecule (num);
}
-
+
+
+ /*
+ No bracket when it would be smaller than the number.
+
+ TODO: should use GAP in calculation too.
+ */
+ if (bracket_visibility && number_visibility
+ && mol.extent (X_AXIS).length () > w)
+ {
+ bracket_visibility = false;
+ }
+
if (bracket_visibility)
{
Real lt = pap->get_realvar (ly_symbol2scm ("linethickness"));
-
+
SCM thick = me->get_grob_property ("thickness");
if (gh_number_p (thick))
lt *= gh_scm2double (thick);
-
+
SCM gap = me->get_grob_property ("gap");
+
SCM fl = me->get_grob_property ("bracket-flare");
SCM eh = me->get_grob_property ("edge-height");
SCM sp = me->get_grob_property ("shorten-pair");
{
if (now.main_part_ >= span_stop_moments_[i])
{
- if (started_spanners_[i])
+ if (Spanner *sp = started_spanners_[i])
{
- typeset_grob (started_spanners_[i]);
+ if (!sp->get_bound (RIGHT))
+ sp->set_bound (RIGHT, sp->get_bound (LEFT));
+
+ typeset_grob (sp);
+
started_spanners_[i] =0;
}
# list of distribution files:
#
-SCRIPTS = aclocal.m4
+SCRIPTS = aclocal.m4 autogen.sh
README_FILES = CHANGES README TODO
README_TXT_FILES =
EXTRA_DIST_FILES = $(README_FILES) $(SCRIPTS)
install: local-install
@echo Not installing stepmake
-bla:
- echo $(TOPLEVEL_MAJOR_VERSION)
-
localclean:
rm -f bin/*.pyc