2008/3/5, dmmcintyr@users.sourceforge.net dmmcintyr@users.sourceforge.net:

The hack hack hackiest thing I've ever come up with.  But it's barely working.

+       } else if (directive == Text::RestUpHack) {
+           lilyText += "\\stemUp ";
+       } else if (directive == Text::RestDownHack) {
+           lilyText += "\\stemDown ";
+       } else if (directive == Text::CancelRestHack) {
+           lilyText += \\stemNeutral ;
 
Why so?
 
Better would be to implement the rest position correctly in the first place. Lilypond has syntax " a'4\rest " which is meant for rest positioning. AFAIK, rest are not positioned with the \stemUp or \stemDown directives in LilyPond syntax.

Heikki