Rev 7069 | Rev 11379 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
7069 | bpr | 1 | !! should create an option in translator : for the moment, if a group of |
6516 | bpr | 2 | !! words is not found, the words are searched. I would like not. |
3 | !! sout=!exec translator $srch |
||
6739 | bpr | 4 | |
5 | Sout= |
||
6516 | bpr | 6 | !if $search_and=yes |
6739 | bpr | 7 | srch1=!replace internal ,$ $ by , in $srch |
8 | srch1=!items2lines $srch1 |
||
9 | scnt=!linecnt $srch1 |
||
6516 | bpr | 10 | |
11 | !for s_ = 1 to $scnt |
||
6739 | bpr | 12 | sout_=!lookup $(srch1[$s_;]) in wimshome/public_html/$dictionary |
6516 | bpr | 13 | sout_=!words2items $sout_ |
7069 | bpr | 14 | sout_=!replace internal ?4 by ?2 in $sout_ |
7046 | bpr | 15 | !if $s_ >1 |
6516 | bpr | 16 | Sout=!listintersection $Sout and $sout_ |
17 | !else |
||
18 | Sout=$sout_ |
||
19 | !endif |
||
20 | !next |
||
21 | sout=$Sout |
||
22 | !else |
||
23 | scnt=!itemcnt $srch |
||
24 | !for s_ = 1 to $scnt |
||
25 | sout_=!lookup $(srch[$s_]) in wimshome/public_html/$dictionary |
||
26 | sout_=!words2items $sout_ |
||
27 | Sout=!append item $sout_ to $Sout |
||
28 | !next |
||
29 | sout=!listuniq $Sout |
||
30 | !endif |
||
31 | sout=!items2words $sout |
||
32 | sout=!words2lines $sout |
||
33 | sout=!translate ? to $ $ in $sout |
||
34 | sout=!sort lines $sout |
||
35 | sout=!nonempty lines $sout |
||
36 | scnt=!linecnt $sout |
||
7069 | bpr | 37 | |
7044 | bpr | 38 | !if $scnt > $gotlim2 |
39 | warning=!append item $[$scnt-$gotlim2] to $warning |
||
40 | !endif |