lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Build failure with Scheme (again)


From: Han-Wen Nienhuys
Subject: Re: Build failure with Scheme (again)
Date: Fri, 25 Apr 2008 23:28:15 -0300

2008/4/25 Mats Bengtsson <address@hidden>:
> > >  John: I'm sorry for the breakage. I have removed the property
> definition.
> > >
> > >  Han-Wen: Do you mean these properties are not associated with any grob?
> > >
> > >
> >
> > Properties are usually associated with interfaces. - we don't have
> > infrastructure to document markup-command specific props.
> >
> >
>  Well, we actually do, sort of! See for example how the fret diagram
> properties are documented
>  by defining a corresponding interface (fret-diagram-interface) in
> scm/define-grob-interfaces.scm.
>  So, the infrastructure itself supports adding a markup-interface (or
> whatever name) that then can be included with
>  TextScript and other grobs where this is relevant.

It would be cool if we could define the markups like

(define-markup-command (bla layout properties width arg) (number? markup?)
   ((line-thickness 0.0)
    (corner-radius 0.2))

  ..
 )

where this defines that the bla command uses line-thickness and
corner-radius, and automatically extracts them from properties.   We
could then annotate the bla command automatically.


Nicolas, what do you think?


-- 
Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen




reply via email to

[Prev in Thread] Current Thread [Next in Thread]