root/trunk/jps2ps/pps/astr2str.pps

Revision 4, 485 bytes (checked in by jms, 8 months ago)

Chargement de jps2ps dans le SVN.

Line 
1 %% syntaxe : array str astr2str --> str
2 %% convertit le contenu de array en chaines de caracteres puis les
3 %% concatene avec str, en inserant un caractere "space" apres chaque
4 %% element du tableau array
5 /astr2str {
6 5 dict begin
7    /str exch def
8    /table exch def
9    /n table length def
10    n 0 eq {
11       str
12    } {
13       table 0 n 1 sub getinterval
14       table n 1 sub get (                               ) cvs
15       ( ) append
16       str append
17       astr2str
18    } ifelse
19 end
20 } def
21
Note: See TracBrowser for help on using the browser.