diff options
author | Karl Berry <karl@freefriends.org> | 2017-11-18 23:03:25 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-11-18 23:03:25 +0000 |
commit | f3c065c42a827259169112dd5dce986951eb5294 (patch) | |
tree | 7fcb9aab24669d4321b08358ccb66a50b7feea15 /Master/texmf-dist/scripts/texdoc/score.tlu | |
parent | 20660a493139f7da8061a165133f5ff2bc3da266 (diff) |
message wording and corrections, no unrequested usage; texdoc r20-24
git-svn-id: svn://tug.org/texlive/trunk@45848 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts/texdoc/score.tlu')
-rw-r--r-- | Master/texmf-dist/scripts/texdoc/score.tlu | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Master/texmf-dist/scripts/texdoc/score.tlu b/Master/texmf-dist/scripts/texdoc/score.tlu index ed5a31ebb60..157af9aee26 100644 --- a/Master/texmf-dist/scripts/texdoc/score.tlu +++ b/Master/texmf-dist/scripts/texdoc/score.tlu @@ -75,11 +75,13 @@ function set_score(df, original_kw) -- get score from tlp associations if score == -10 and df.tlptodoc then score = -1 - deb_print('score', 'New score: -2 from package name association') + deb_print('score', 'New score: '..tostring(score) + ..' from package name association') end if score == -10 and df.runtodoc then score = -5 - deb_print('score', 'New score: -6 from sty/cls association') + deb_print('score', 'New score: '..tostring(score) + ..' from sty/cls association') end -- bonus for metadata if df.details then @@ -152,7 +154,7 @@ function heuristic_score(file, pat) if ext and config.badext_list_inv[ext] and score > 0 then upscore(0.1, 'bad extension', true) end - -- if basename is bad, score gets < 0 + -- if basename is bad, score becomes an epsilon if has_bad_basename(file) and score > 0 then upscore(0.1, 'bad basename', true) end |