On Sat, 21 Jun 2003 23:20:09 -0400 (EDT), Jeff Bigler <[EMAIL PROTECTED]> 
wrote:
        [snip]
>I think what you're hoping to do is to create a function with an
>additional argument, which contains the string to display.  Your
>function would probably look something like this:
>
>% -- draw "first time" indication 
>%%postscript /displaycustom {  % usage: len x y (text) displaycustom
>%%postscript    /texttodisplay exch def
>%%postscript   exch -9 add exch 2 copy  
>%%postscript   M 0 10 rmoveto /Times-Roman 16 selectfont texttodisplay show 
>%%postscript   M 0 6 rlineto currentpoint stroke M 
>%%postscript    30 add 0 rlineto currentpoint stroke M 
>%%postscript    0 -6 rlineto stroke 
>%%postscript } bdef 
>
>% -- start / stop of firsttime indication
>%%deco 1( 5 - 24 0 0
>%%deco 1) 5 displaycustom 24 0 0 
>
>The only changes were to change the name of the function to
>"displaycustom" instead of firsttime and add a fourth argument
>containing the actual text to display.

In abcm2ps, the number and types of arguments are hardly coded.
One way is to include postscript sequences before the music lines:

- in the header:

        % -- draw "any" indication 
        %%postscript /displaycustom {   % usage: len x y displaycustom
        %%postscript    exch -9 add exch 2 copy  
        %%postscript    M 0 10 rmoveto /Times-Roman 16 selectfont texttodisplay 
show 
        %%postscript    M 0 6 rlineto currentpoint stroke M 
        %%postscript     30 add 0 rlineto currentpoint stroke M 
        %%postscript     0 -6 rlineto stroke 
        %%postscript } bdef 
        %%postscript /texttodisplay () def

- in the tune:

        %%postscript /texttodisplay (some text) def
        .. !1(!ABc!1)!d ..

If there is more than one indication in the line, you should define
so many macros and decorations with different text variables :(.

-- 
Ken ar c'henta� |             ** Breizh ha Linux atav! **
                |               http://moinejf.free.fr/
P�p� Jef        |               mailto:[EMAIL PROTECTED]
To subscribe/unsubscribe, point your browser to: http://www.tullochgorm.com/lists.html

Reply via email to