summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/xindex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-10-28 20:55:51 +0000
committerKarl Berry <karl@freefriends.org>2019-10-28 20:55:51 +0000
commitbfa61c528ebdb39919639835451f3187c4c65eb5 (patch)
tree78edbb148efaf1fa491047f1c09f43f2810746c5 /Master/texmf-dist/scripts/xindex
parente6744059f83f9e9b758c2a10764f306b952c9a7c (diff)
xindex (28oct19)
git-svn-id: svn://tug.org/texlive/trunk@52551 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts/xindex')
-rwxr-xr-xMaster/texmf-dist/scripts/xindex/xindex.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/Master/texmf-dist/scripts/xindex/xindex.lua b/Master/texmf-dist/scripts/xindex/xindex.lua
index fb48a3d7486..8183b32bb5d 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.16
+ local version = 0.18
xindex.version = version
--xindex.self = "xindex"
@@ -29,6 +29,8 @@ Report bugs to
kpse.set_program_name("luatex")
+local f = kpse.find_file("lualibs.lua")
+print ("Dateiname "..f)
require("lualibs") -- all part of LuaTeX
require('unicode')
require('string')
@@ -156,6 +158,11 @@ Config_File = kpse.find_file(config_file)
cfg = require(Config_File)
writeLog(2," ... done\n",0)
+-- Create the character list maps for faster sorting
+
+alphabet_lower_map = CreateCharListMap(alphabet_lower)
+alphabet_upper_map = CreateCharListMap(alphabet_upper)
+
local esc_char = args.escapechar
writeLog(2,"Escapechar = "..esc_char.."\n",1)
escape_chars = { -- by default " is the escape char