+2002-07-24 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+
+ * buildscripts/lilypond-profile.sh: update support for
+ LILYPONDPREFIX
+
2002-07-24 Jan Nieuwenhuizen <janneke@gnu.org>
* Documentation/user/refman.itely (Point and click): Add info
* lily/accidental-placement.cc (extent_callback): remove function
(position_accidentals): do nothing if not live.
+ Use accidental-grobs property i.s.o. accidentals, to maintain
+ proper typing.
2002-07-24 Jan Nieuwenhuizen <janneke@gnu.org>
if [ -z "$LILYPONDPREFIX" ]; then
datadir=`echo "@local_lilypond_datadir@" | sed 's!//!/!g'`
else
- if [ -d "$LILYPONDPREFIX/fonts" ]; then
+ if [ -d "$LILYPONDPREFIX/share" ]; then
datadir=$LILYPONDPREFIX
- else
- eval `cat $LILYPONDPREFIX/VERSION`
- FULLVERSION="$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL"
- if [ "" != "$MY_PATCH_LEVEL" ]; then
- FULLVERSION="$FULLVERSION.$MY_PATCH_LEVEL"
- fi
-
- datadir="$LILYPONDPREFIX/share/lilypond/$FULLVERSION"
fi
echo "Setting tree to $datadir"
fi
int n = p->notename_i_;
- SCM accs = me->get_grob_property ("accidentals");
+ SCM accs = me->get_grob_property ("accidental-grobs");
SCM key = gh_int2scm (n);
SCM entry = scm_assq (key, accs);
if (entry == SCM_BOOL_F)
accs = scm_assq_set_x (accs, key, entry);
- me->set_grob_property ("accidentals", accs);
+ me->set_grob_property ("accidental-grobs", accs);
}
/*
Link_array<Grob> *break_reminder,
Link_array<Grob> *real_acc)
{
- for (SCM acs =accs->get_grob_property ("accidentals"); gh_pair_p (acs);
+ for (SCM acs =accs->get_grob_property ("accidental-grobs"); gh_pair_p (acs);
acs =gh_cdr (acs))
for (SCM s = gh_cdar (acs); gh_pair_p (s); s = gh_cdr (s))
{
if (!me->live ())
return SCM_UNSPECIFIED;
- SCM accs = me->get_grob_property ("accidentals");
+ SCM accs = me->get_grob_property ("accidental-grobs");
/*
TODO: there is a bug in this code. If two accs are on the same
ADD_INTERFACE(Accidental_placement,
"accidental-placement-interface",
"Take care of complex accidental collisions.",
- "left-padding padding right-padding accidentals alignment-done")
+ "left-padding padding right-padding accidental-grobs alignment-done")
*/
if (Grob * a = Note_column::accidentals (g))
{
- Interval v= Accidental_placement::get_relevant_accidental_extent
- (a, col, me);
+ Interval v;
+ if (Accidental_placement::has_interface (a))
+ {
+ v = Accidental_placement::get_relevant_accidental_extent(a, col, me);
+ }
+ else
+ v = a->extent (col, X_AXIS);
max_corr = max_corr >? (- v[LEFT]);
}
")
(grob-property-description 'Y-extent-callback procedure? "see @code{X-extent-callback}.")
(grob-property-description 'Y-offset-callbacks list? "see @code{X-offset-callbacks}.")
-(grob-property-description 'accidentals list? "Alist with (PITCH
-. OPTION-LIST) entries. OPTION-LIST can contain 'cautionary, 'natural
-and 'tie-break-reminder
-FIXME: outdated.
-")
+(grob-property-description 'accidental-grobs list? "Alis with (NOTENAME . GROBLIST) entries")
+(grob-property-description 'accidentals list? "List of alteration numbers.")
(grob-property-description 'add-stem boolean? "Add stem to porrectus?.")
(grob-property-description 'adjust-if-on-staffline boolean? "If this grob is on a staff line, adjust its appearance, so that it better fits into the staff. E.g., if set true on stem grobs, flares of mensural flags will always be aligned with the staff lines, regardless if the associated note head is printed on a staff line or inbetween.")
(grob-property-description 'after-line-breaking-callback procedure? "Procedure taking a grob as argument.