diff options
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2011-05-23 22:42:56 +0000 |
---|---|---|
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2011-05-23 22:42:56 +0000 |
commit | d251c060be37b06079f3c8586d02a67895609fee (patch) | |
tree | 7239bf174d5cd69173595923b5c53c223e447a52 /Master/texmf | |
parent | 71c94af3dc0b7950ae0e6e5be83c23241d9a8050 (diff) |
texdoc: cnf update and small bugfix
git-svn-id: svn://tug.org/texlive/trunk@22594 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf')
-rw-r--r-- | Master/texmf/scripts/texdoc/view.tlu | 2 | ||||
-rw-r--r-- | Master/texmf/texdoc/texdoc.cnf | 11 |
2 files changed, 9 insertions, 4 deletions
diff --git a/Master/texmf/scripts/texdoc/view.tlu b/Master/texmf/scripts/texdoc/view.tlu index 218cbfff6bf..8c327b00a72 100644 --- a/Master/texmf/scripts/texdoc/view.tlu +++ b/Master/texmf/scripts/texdoc/view.tlu @@ -62,7 +62,7 @@ function view_file (filename) viewer_replacement = '"'..w32_path(filename)..'"' end -- files without extension are assumed to be text - local viewext = filename:match('.*%.([^/]*)$'):lower() or 'txt' + local viewext = (filename:match('.*%.([^/]*)$') or 'txt'):lower() -- special case : sty files use txt viewer if viewext == 'sty' then viewext = 'txt' end -- FIXME: hardcoding such cases this way is not very clean diff --git a/Master/texmf/texdoc/texdoc.cnf b/Master/texmf/texdoc/texdoc.cnf index 531d608633a..83e7979cadd 100644 --- a/Master/texmf/texdoc/texdoc.cnf +++ b/Master/texmf/texdoc/texdoc.cnf @@ -126,9 +126,12 @@ adjscore gpl = -10 adjscore /tex-virtual-academy-pl/ = -50 # test and example files are not likely the best documentation -adjscore test = -3 -adjscore example = -3 -adjscore sample = -3 +adjscore test = -3 +adjscore tests = -3 +adjscore example = -3 +adjscore examples = -3 +adjscore sample = -3 +adjscore samples = -3 # readme's usually get a negative score because they have a bad extension, # but they're still slightly better than other results with negative scores @@ -350,6 +353,8 @@ alias mls = montex alias vrbexin = verbasef alias dtk = dtk/doc/beispiel.pdf alias musixtex = musixdoc +alias mychemistry = mychemistry_en +alias mychemistry-de = mychemistry_de ## a few easy patterns |