diff options
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2011-12-09 16:53:31 +0000 |
---|---|---|
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2011-12-09 16:53:31 +0000 |
commit | 1b996f0d25ebcc2a1f326602ab207b0cce78dc72 (patch) | |
tree | 8db80cc9faaae1dff436b6560688ea5663bd5de5 /Master/texmf/scripts | |
parent | 827bf2408eafc749531ade38dcbe49429a1ddd01 (diff) |
texdoc 0.83 (adjustments to the scoring system)
git-svn-id: svn://tug.org/texlive/trunk@24804 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf/scripts')
-rw-r--r-- | Master/texmf/scripts/texdoc/constants.tlu | 2 | ||||
-rw-r--r-- | Master/texmf/scripts/texdoc/score.tlu | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/Master/texmf/scripts/texdoc/constants.tlu b/Master/texmf/scripts/texdoc/constants.tlu index 8ff2e96d686..2aa2a16c9f1 100644 --- a/Master/texmf/scripts/texdoc/constants.tlu +++ b/Master/texmf/scripts/texdoc/constants.tlu @@ -14,7 +14,7 @@ setfenv(1, constants) -- progname and version fullname = kpse.find_file('texdoc/texdoclib', 'lua') progname = 'texdoc' -version = '0.82' +version = '0.83' -- make sure to update setup_config_from_cl() accordingly -- and set a default value in setup_config_from_defaults() if relevant diff --git a/Master/texmf/scripts/texdoc/score.tlu b/Master/texmf/scripts/texdoc/score.tlu index 697f0cf1b2a..ed5a31ebb60 100644 --- a/Master/texmf/scripts/texdoc/score.tlu +++ b/Master/texmf/scripts/texdoc/score.tlu @@ -74,11 +74,11 @@ function set_score(df, original_kw) deb_print('score', 'Max pattern score: '..tostring(score)) -- get score from tlp associations if score == -10 and df.tlptodoc then - score = -2 + score = -1 deb_print('score', 'New score: -2 from package name association') end if score == -10 and df.runtodoc then - score = -6 + score = -5 deb_print('score', 'New score: -6 from sty/cls association') end -- bonus for metadata @@ -87,8 +87,8 @@ function set_score(df, original_kw) score = score + 0.1 deb_print('score', 'Catalogue "readme" bonus: +0.1') else - score = score + 2.5 - deb_print('score', 'Catalogue details bonus: +2.5') + score = score + 1.5 + deb_print('score', 'Catalogue details bonus: +1.5') end end -- adjust from keyword-specific tables @@ -158,7 +158,7 @@ function heuristic_score(file, pat) end -- bonus for being in the right directory if string.find('/'..file, '/'..pat..'/', 1, true) and not slash then - upscore(score + 0.5, 'directory bonus') + upscore(score + 1.5, 'directory bonus') end -- done deb_print('score', 'Final heuristic score: '..tostring(score)) |