summaryrefslogtreecommitdiff
path: root/indexing/xindex/scripts/xindex.lua
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-10-29 03:00:39 +0000
committerNorbert Preining <norbert@preining.info>2019-10-29 03:00:39 +0000
commit97f5151099967e6c823d640a90d87bca92c44035 (patch)
tree685caa49488599f87d0caa4e972833b2263d8567 /indexing/xindex/scripts/xindex.lua
parent25a647b97ef526aefcc75269dd19c46dbe3ae4c1 (diff)
CTAN sync 201910290300
Diffstat (limited to 'indexing/xindex/scripts/xindex.lua')
-rwxr-xr-xindexing/xindex/scripts/xindex.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/indexing/xindex/scripts/xindex.lua b/indexing/xindex/scripts/xindex.lua
index fb48a3d748..8183b32bb5 100755
--- a/indexing/xindex/scripts/xindex.lua
+++ b/indexing/xindex/scripts/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