Rev 7692 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
20 | reyssat | 1 | !if $wims_read_parm!=slib_header |
13585 | bpr | 2 | !goto proc |
20 | reyssat | 3 | !endif |
4158 | bpr | 4 | |
4349 | bpr | 5 | slib_author=Gang, XIAO |
20 | reyssat | 6 | slib_example= un avion \ |
7 | une\ |
||
8 | des |
||
9 | |||
3307 | bpr | 10 | !exit |
11 | |||
20 | reyssat | 12 | :proc |
13 | slib_inp=!word 1 of $wims_read_parm |
||
14 | slib_out= |
||
15 | !if $slib_inp=$empty |
||
13585 | bpr | 16 | !exit |
20 | reyssat | 17 | !endif |
18 | slib_1=!word 1 of $slib_inp |
||
19 | !if $slib_1 notwordof de des du un une |
||
13585 | bpr | 20 | slib_out=$slib_inp |
21 | !exit |
||
20 | reyssat | 22 | !endif |
23 | |||
24 | slib_2=!word 2 of $slib_inp |
||
25 | slib_c=!char 1 of $slib_2 |
||
26 | slib_2c=!word 2 to -1 of $slib_inp |
||
27 | slib_3c=!word 3 to -1 of $slib_inp |
||
28 | |||
29 | !if $slib_1=de |
||
13585 | bpr | 30 | slib_out=$slib_2c |
31 | !exit |
||
20 | reyssat | 32 | !endif |
33 | |||
34 | !if $slib_1=des |
||
13585 | bpr | 35 | slib_out=les $slib_2c |
36 | !exit |
||
20 | reyssat | 37 | !endif |
38 | |||
39 | !if $slib_1 iswordof du un |
||
13585 | bpr | 40 | !read slib/lang/frapostrophe le $slib_2c |
41 | !exit |
||
20 | reyssat | 42 | !endif |
43 | |||
44 | !if $slib_1=une |
||
13585 | bpr | 45 | !read slib/lang/frapostrophe la $slib_2c |
46 | !exit |
||
20 | reyssat | 47 | !endif |