Subversion Repositories wimsdev

Rev

Rev 7040 | Rev 12821 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7040 Rev 7044
Line 8... Line 8...
8
!else
8
!else
9
 scnt=0
9
 scnt=0
10
!endif
10
!endif
11
 
11
 
12
# Limit of shown items
12
# Limit of shown items
13
gotlim=50
13
gotlim=1000
14
!distribute item 0,0,, into weight,gotcnt,gotm,gotw,lastmod
14
!distribute item 0,0,, into weight,gotcnt,gotm,gotw,lastmod
15
 
15
 
16
!for i=1 to $scnt
16
!for i=1 to $scnt
17
 l_=!line $i of $sout
17
 l_=!line $i of $sout
18
 t_=!wordcnt $l_
18
 t_=!wordcnt $l_
Line 52... Line 52...
52
  v_=!line $i of $gotW
52
  v_=!line $i of $gotW
53
  w_=!append line $[round(100*($u_+1)/($v_+1)^0.7)] to $w_
53
  w_=!append line $[round(100*($u_+1)/($v_+1)^0.7)] to $w_
54
 !next i
54
 !next i
55
 gotw=!sort reverse numeric lines $w_
55
 gotw=!sort reverse numeric lines $w_
56
 gotm=!line $wims_sort_order of $gotm
56
 gotm=!line $wims_sort_order of $gotm
-
 
57
 gotm=!line 1 to $gotlim2 of $gotm
-
 
58
 gotcnt=!linecnt $gotm
57
!endif
59
!endif
58
 
60
 
59
dictionary=$basedir/title.$search_lang
61
dictionary=$basedir/title.$search_lang
60
gott=!exec translator $gotm
62
gott=!exec translator $gotm
61
translator_unknown1=$translator_unknown
63
translator_unknown1=$translator_unknown