Rev 11379 | Rev 12083 | 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= |
||
11379 | bpr | 6 | !if $search_level!=$empty |
7 | Soutlevel= |
||
8 | slcnt=!itemcnt $search_level |
||
9 | !for s_ = 1 to $slcnt |
||
10 | sout_=!lookup $(search_level[$s_]) in wimshome/public_html/$dictionary |
||
11 | sout_=!words2items $sout_ |
||
12 | Soutlevel=!append item $sout_ to $Soutlevel |
||
13 | !next |
||
14 | !endif |
||
15 | !if $search_and=yes |
||
6739 | bpr | 16 | srch1=!replace internal ,$ $ by , in $srch |
17 | srch1=!items2lines $srch1 |
||
18 | scnt=!linecnt $srch1 |
||
6516 | bpr | 19 | !for s_ = 1 to $scnt |
6739 | bpr | 20 | sout_=!lookup $(srch1[$s_;]) in wimshome/public_html/$dictionary |
6516 | bpr | 21 | sout_=!words2items $sout_ |
7069 | bpr | 22 | sout_=!replace internal ?4 by ?2 in $sout_ |
7046 | bpr | 23 | !if $s_ >1 |
6516 | bpr | 24 | Sout=!listintersection $Sout and $sout_ |
25 | !else |
||
26 | Sout=$sout_ |
||
27 | !endif |
||
28 | !next |
||
29 | sout=$Sout |
||
11379 | bpr | 30 | !if $search_level!=$empty |
31 | sout=!listintersection $Sout and $Soutlevel |
||
32 | !endif |
||
6516 | bpr | 33 | !else |
34 | scnt=!itemcnt $srch |
||
35 | !for s_ = 1 to $scnt |
||
36 | sout_=!lookup $(srch[$s_]) in wimshome/public_html/$dictionary |
||
37 | sout_=!words2items $sout_ |
||
38 | Sout=!append item $sout_ to $Sout |
||
39 | !next |
||
40 | sout=!listuniq $Sout |
||
11379 | bpr | 41 | !if $search_level!=$empty |
11407 | bpr | 42 | sout=!replace internal ?4 by ?2 in $sout |
11379 | bpr | 43 | sout=!listintersection $sout and $Soutlevel |
44 | !endif |
||
6516 | bpr | 45 | !endif |
46 | sout=!items2words $sout |
||
47 | sout=!words2lines $sout |
||
48 | sout=!translate ? to $ $ in $sout |
||
49 | sout=!sort lines $sout |
||
50 | sout=!nonempty lines $sout |
||
51 | scnt=!linecnt $sout |
||
7069 | bpr | 52 | |
7044 | bpr | 53 | !if $scnt > $gotlim2 |
54 | warning=!append item $[$scnt-$gotlim2] to $warning |
||
55 | !endif |