summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/lualatex/xindex/xindex-base.lua
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/tex/lualatex/xindex/xindex-base.lua
parente6744059f83f9e9b758c2a10764f306b952c9a7c (diff)
xindex (28oct19)
git-svn-id: svn://tug.org/texlive/trunk@52551 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/lualatex/xindex/xindex-base.lua')
-rw-r--r--Master/texmf-dist/tex/lualatex/xindex/xindex-base.lua22
1 files changed, 18 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/lualatex/xindex/xindex-base.lua b/Master/texmf-dist/tex/lualatex/xindex/xindex-base.lua
index d736f67b7dd..f4155054605 100644
--- a/Master/texmf-dist/tex/lualatex/xindex/xindex-base.lua
+++ b/Master/texmf-dist/tex/lualatex/xindex/xindex-base.lua
@@ -6,7 +6,7 @@
-- LICENSE: LPPL1.3
-----------------------------------------------------------------------
-local info = { version = 0.16 }
+local info = { version = 0.18 }
-- check config
if pageNoPrefixDel ~= "" then
@@ -58,10 +58,25 @@ printList(Index,2)
writeLog(1,"\n------------------ end list after getEntryAndPage() ------------------------\n",2)
writeLog(2,"Sorting entries: for LARGE idx files it can take some minutes ... \n",0)
-if SORTprehook then Index = SORTprehook(Index) end
+if SORTprehook then
+ writeLog(2, "PreHook begin\n", 0)
+ Index = SORTprehook(Index)
+ writeLog(2, "PreHook end\n", 0)
+end
+
+writeLog(2, "GenerateSortKeys begin\n", 0)
+GenerateSortKeys(Index)
+writeLog(2, "GenerateSortKeys end\n", 0)
+
k = 0
+writeLog(2, "Sort begin\n", 0)
table.sort(Index,UTFCompare)
-if SORTposthook then Index = SORTposthook(Index) end
+writeLog(2, "Sort end\n", 0)
+if SORTposthook then
+ writeLog(2, "PostHook begin\n", 0)
+ Index = SORTposthook(Index)
+ writeLog(2, "PostHook end\n", 0)
+end
writeLog(1,"\n------------------ Start list after table.sort(Index,UTFCompare)------------\n",2)
printList(Index,2)
@@ -85,7 +100,6 @@ writeLog(1,"------------------ End list after checkParenthesis(Index) ----------
writeLog(2,"done\n",0)
-
writeLog(2,"Replace @-operator ...\n",0)
writeLog(1,"------------------ Start list before compressEntryList(Index)------------\n",1)
writeLog(1,require 'xindex-pretty'.dump(Index),3) -- only for internal dump