lilypond-devel
[Top][All Lists]
Advanced

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

extending ly2dvi


From: Werner LEMBERG
Subject: extending ly2dvi
Date: Fri, 09 Aug 2002 09:29:51 +0200 (CEST)

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.



reply via email to

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