diff options
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2010-04-14 17:48:52 +0000 |
---|---|---|
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2010-04-14 17:48:52 +0000 |
commit | 2f62a5fe6f4a15971e376276ff7a5abaf17fccbf (patch) | |
tree | ef85719e2980179699434be62219dd7ddef51153 /Master/texmf/scripts/texdoc | |
parent | 1104034c3a0a12a725c09a396336328112179b55 (diff) |
texdoc update
git-svn-id: svn://tug.org/texlive/trunk@17867 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf/scripts/texdoc')
-rw-r--r-- | Master/texmf/scripts/texdoc/score.tlu | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Master/texmf/scripts/texdoc/score.tlu b/Master/texmf/scripts/texdoc/score.tlu index 0a566610903..a902392876c 100644 --- a/Master/texmf/scripts/texdoc/score.tlu +++ b/Master/texmf/scripts/texdoc/score.tlu @@ -82,9 +82,12 @@ function set_score(df, original_kw) if score == -10 and df.tlptodoc then score = -2 end if score == -10 and df.runtodoc then score = -6 end -- bonus for metadata - if df.details and - not string.find(string.lower(df.details), 'readme') then - score = score + 3 + if df.details then + if string.find(string.lower(df.details), 'readme') then + score = score + 0.1 + else + score = score + 2.5 + end end -- adjust from keyword-specific tables if df.tree > -1 and spec_adjscore[original_kw] then @@ -100,7 +103,7 @@ function set_score(df, original_kw) if df.tree > -1 then for pat, val in pairs(global_adjscore) do if val and is_subword('/'..name, pat) then - if score > 0 or val < 0 then score = score + val end + if score > -10 or val < 0 then score = score + val end deb_print('score', string.format( "Adjust by '%d' from global pattern '%s'", val, pat)) end |