lilypond-devel
[Top][All Lists]
Advanced

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

Re: extending ly2dvi


From: Werner LEMBERG
Subject: Re: extending ly2dvi
Date: Sat, 10 Aug 2002 09:35:18 +0200 (CEST)

> I think that having --preprocessor is feeping creaturitis, and I
> don't really see the point.

See example below.

> > PS: m4 seems to be suited well for preprocessing LilyPond input;
> >     at least I've used it successfully.
>
> I tried a long time ago, and got barking mad from the strange
> quoting rules. Anyways, IMNSHO, Macro Languages Suck (tm).

Well, here is an example.  Since you won't add variables to macros, I
*have* to use m4 or something similar to avoid extremely unreadable
ly files.  Other suggestions how to handle this are highly welcome.


    Werner


======================================================================


dnl change quote characters to [ and ] while defining macros
changequote([, ])
dnl change comment character to % (up to the newline)
changecom([%], [
])

define([TextVShift],
       [\property Voice.TextScript \set #'extra-offset = #'(0 . $1)])

dnl use \ as an escape for macros
changesyntax(address@hidden)
\dnl remove quote characters
\changequote(,)

< { \TextVShift(1) s1^"\\textbf{\\large Langsam}" } \\
    R1 > |




reply via email to

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