Dear friends,
what do you think about extending ly2dvi by an option
--pre <preprocessor>
which calls the named preprocessor on the input before doing anything
else?
Example
ly2dvi --pre m4 input.m4
which expands internally to
m4 input.m4 > input.ly
ly2dvi input.ly
An alternative and/or additional option would be to allow a special
keyword `preprocessor' in the \header block:
\header {
preprocessor = m4
}
The latter method appears to be quite elegant IMHO.
I'm not sure whether this is a security issue, but similar features
exist for TeX.
Werner
PS: m4 seems to be suited well for preprocessing LilyPond input; at
least I've used it successfully.
_______________________________________________
Lilypond-devel mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-devel