diff options
author | Norbert Preining <norbert@preining.info> | 2019-10-29 03:00:39 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-10-29 03:00:39 +0000 |
commit | 97f5151099967e6c823d640a90d87bca92c44035 (patch) | |
tree | 685caa49488599f87d0caa4e972833b2263d8567 /indexing/xindex/lualatex/xindex-base.lua | |
parent | 25a647b97ef526aefcc75269dd19c46dbe3ae4c1 (diff) |
CTAN sync 201910290300
Diffstat (limited to 'indexing/xindex/lualatex/xindex-base.lua')
-rw-r--r-- | indexing/xindex/lualatex/xindex-base.lua | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/indexing/xindex/lualatex/xindex-base.lua b/indexing/xindex/lualatex/xindex-base.lua index d736f67b7d..f415505460 100644 --- a/indexing/xindex/lualatex/xindex-base.lua +++ b/indexing/xindex/lualatex/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 |