summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-05-31 21:10:45 +0000
committerKarl Berry <karl@freefriends.org>2020-05-31 21:10:45 +0000
commit04bf513956f952e12fe0a3db63b4ed812e96b50f (patch)
treea6719a90340cb4acb0f5d74d4ca9d91bd60f70ff /Master/texmf-dist/scripts
parent1e4ada3a2007431617c98c097519e60b9c0f3c75 (diff)
xindex (31may20)
git-svn-id: svn://tug.org/texlive/trunk@55361 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts')
-rwxr-xr-xMaster/texmf-dist/scripts/xindex/xindex.lua16
1 files changed, 12 insertions, 4 deletions
diff --git a/Master/texmf-dist/scripts/xindex/xindex.lua b/Master/texmf-dist/scripts/xindex/xindex.lua
index 1c126985d68..d4316b2949f 100755
--- a/Master/texmf-dist/scripts/xindex/xindex.lua
+++ b/Master/texmf-dist/scripts/xindex/xindex.lua
@@ -8,7 +8,7 @@
-----------------------------------------------------------------------
xindex = xindex or { }
- local version = 0.21
+ local version = 0.22
xindex.version = version
--xindex.self = "xindex"
@@ -174,12 +174,20 @@ escape_chars = { -- by default " is the escape char
{esc_char..')', '//escapedparenright//',')' }
}
-language = string.lower(args["language"])
+language = string.lower(args["language"]):sub(1, 2)
writeLog(2,"Language = "..language.."\n",1)
+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
-page_folium = folium[language]
-
+if (folium[language] == nil) then
+ writeLog(2,'Corrected the unknown language "'..language..'" for page folium to "en"'.."\n",0)
+ page_folium = folium["en"]
+else
+ page_folium = folium[language]
+end
no_caseSensitive = args["no_casesensitive"]
if no_caseSensitive then