2008/4/25 Mats Bengtsson <[EMAIL PROTECTED]>:
> > >  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 - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen


_______________________________________________
lilypond-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to