[EMAIL PROTECTED] (David ) writes:
>
> I hadn't realized that \translator actually "returned" a new
> translator that you could assign to a variable such as is done in
> engraver.ly. But there is somethihg weird still in that file.
>
> StaffContext=\translator {
> \type "Engraver_group_engraver";
> \name Staff ;
> ... lots of other stuff ...
> };
>
> \translator{\StaffContext }
OK, I also see some light. Maybe it would have been clearer if the
above line would have read
\addtranslator \translator { \StaffContext }
> ... more contexts ...
>
> That makes me wonder what this last line does? Looking in parser.yy,
> I can see that \translator does two different things when the body
> starts with a TRANS_IDENTIFIER (whatever that is...) and when it
> starts with a \type.
You have to look at paper_def_body to see what happens (in the last
lily look at line 565).
--
Han-Wen Nienhuys, [EMAIL PROTECTED] ** GNU LilyPond - The Music Typesetter
http://www.cs.uu.nl/people/hanwen/lilypond/index.html