diff options
author | Karl Berry <karl@freefriends.org> | 2023-01-19 21:01:53 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-01-19 21:01:53 +0000 |
commit | 7ce0a4572d805bdf689e46bfd232f5f3a3869d57 (patch) | |
tree | e4229baad45b3316f7f5786a61d7b8d13e7fcbc2 /Master/texmf-dist/scripts/xindex | |
parent | 2383f0c08d5be22ebd1147bae43355431a5fe562 (diff) |
xindex (19jan23)
git-svn-id: svn://tug.org/texlive/trunk@65584 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts/xindex')
-rwxr-xr-x | Master/texmf-dist/scripts/xindex/xindex.lua | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/Master/texmf-dist/scripts/xindex/xindex.lua b/Master/texmf-dist/scripts/xindex/xindex.lua index e335dfcc02f..2b6123cdb24 100755 --- a/Master/texmf-dist/scripts/xindex/xindex.lua +++ b/Master/texmf-dist/scripts/xindex/xindex.lua @@ -6,11 +6,11 @@ -- AUTHOR: Herbert Voß -- LICENSE: LPPL 1.3 -- --- $Id: xindex.lua 22 2022-02-11 12:18:15Z hvoss $ +-- $Id: xindex.lua 22 2023-01-18 12:18:15Z hvoss $ ----------------------------------------------------------------------- xindex = xindex or { } - local version = 0.45 + local version = 0.46 xindex.version = version --xindex.self = "xindex" @@ -51,8 +51,8 @@ local args = require ('xindex-lapp') [[ -b,--no_labels -i,--ignoreSpace -o,--output (default "") - -k --checklang same as * star for checking aux file - -l,--language (default en) or * for detecting the language from the aux file + -k,--checklang + -l,--language (default en) -p,--prefix (default L) -u,--use_UCA -s,--use_stdin @@ -239,10 +239,13 @@ escape_chars = { -- by default " is the escape char outFile = io.open(outfilename,"w+") +check_language = args["checklang"] local aux_language = "" -if args["checklang"] or (args["language"] == "*") then - writeLog(2,'Check language in aux file\n',0) + +if check_language then + print("check aux file for unknown language") +-- writeLog(2,'Check language in aux file\n',0) -- \babel@aux{german}{} package babel -- \selectlanguage *[variant=german,spelling=new,]{german} package polyglossia local auxfile = inFiles[1]:split(".")[1]..".aux" @@ -256,9 +259,9 @@ if args["checklang"] or (args["language"] == "*") then break else if string.find(str, "babel@aux{") then - -- print("Babel defunden: "..str) +-- print("Babel gefunden: "..str) str = str:match("{..+}$") -- get last word {language} - -- print("Babel: "..str) + print("Babel: "..str) aux_language = str:sub(2,(#str-3)) break end @@ -293,6 +296,7 @@ if (indexheader[language] == nil) then writeLog(2,'Corrected the unknown language "'..language..'" to "en"'.."\n",0) language = "en" end + index_header = indexheader[language] if vlevel > 0 then for i=1,#index_header do writeLog(2,index_header[i].."\n",1) end end if (folium[language] == nil) then |