lilypond-devel
[Top][All Lists]
Advanced

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

Re: Make Grob::name accessible to Scheme (issue 203090043 by address@hid


From: david . nalesnik
Subject: Re: Make Grob::name accessible to Scheme (issue 203090043 by address@hidden)
Date: Mon, 16 Feb 2015 13:46:29 +0000

On 2015/02/16 07:56:10, dak wrote:
On 2015/02/15 19:54:19, david.nalesnik wrote:
> Please review.  Thanks!

"Needing to determine the name of a grob" should actually rarely be
necessary:
the pervasive information connected to the functionality of a grob is
rather its
interfaces.  That's the usual criterion for deciding whether to deal
with a
particular grob.  Relaying on the name makes it harder to create
variants of
existing grobs.

I see what you are saying.  I'm aware that grob recognition takes place
through interfaces, and that the user could use grob::has-interface.
(This does lead to awkwardness when, for example, you want a
NonMusicalPaperColumn, since there is no
nonmusical-paper-column-interface.)

There are uses for the name of a grob, say for inclusion in text.  Also,
ly:context-grob-name and ly:engraver-make-grob accept a name as
argument.

This function would one of a group: ly:context-name, ly:translator-name,
and ly:font-name.


https://codereview.appspot.com/203090043/



reply via email to

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