Rev 14566 | Rev 16552 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
7640 | bpr | 1 | !if $wims_read_parm=$empty |
13798 | bpr | 2 | !exit |
7640 | bpr | 3 | !endif |
7916 | bpr | 4 | |
7640 | bpr | 5 | !set pp=!trim $wims_read_parm |
15293 | bpr | 6 | !! useful only (?) in draw for symbols as \RR |
7 | !!set pp=!replace internal \\ by ///?/?/?/// in $pp |
||
8 | !!set pp=!replace internal \ by $$m_ in $pp |
||
9 | !!set pp=!replace internal ///?/?/?/// by \\ in $pp |
||
13798 | bpr | 10 | !set pp=!translate internal $ $ to $\ |
11 | $ in $pp |
||
7640 | bpr | 12 | !set s_=!line 1 of $pp |
7916 | bpr | 13 | |
14566 | bpr | 14 | !set tmp=!text remove ,0123456789 in $s_ |
15 | !set tmpcnt=!itemcnt $s_ |
||
16 | !if $tmp notsametext $empty or $s_=$empty or $tmpcnt!=2 |
||
7640 | bpr | 17 | !exit |
18 | !endif |
||
7916 | bpr | 19 | |
7640 | bpr | 20 | !set pp=!line 2 to -1 of $pp |
8405 | bpr | 21 | |
8409 | bpr | 22 | !read canvasimagedir.phtml $pp |
23 | !set pp=!trim $canvas_ppm |
||
8405 | bpr | 24 | |
11986 | bpr | 25 | !set pp=!rows2lines $pp |
11053 | bpr | 26 | !!non empty lines in canvasdraw |
27 | !set pp=!nonempty lines $pp |
||
7640 | bpr | 28 | !set canvasdraw_out=!exec canvasdraw\ |
29 | size $s_\ |
||
30 | $pp |
||
11033 | bpr | 31 | !reset canvasdraw_idclass |
32 | !set id1=!positionof canvas_div in $canvasdraw_out |
||
33 | !if $id1!=$empty |
||
34 | !set id2=!positionof " in $canvasdraw_out |
||
35 | !for j in $id2 |
||
36 | !if $j>$id1 |
||
37 | !break |
||
38 | !endif |
||
39 | !next |
||
40 | !set canvasdraw_idclass=!char $id1+1 to $j of $canvasdraw_out |
||
41 | !endif |
||
42 | !set canvasdraw_out=!replace internal , by in $canvasdraw_out |
||
7640 | bpr | 43 | |
44 | $canvasdraw_out |