diff options
Diffstat (limited to 'indexing/xindex/lualatex')
-rw-r--r-- | indexing/xindex/lualatex/xindex-DIN2.lua | 13 | ||||
-rw-r--r-- | indexing/xindex/lualatex/xindex-HAdW-eKO.lua | 2 | ||||
-rw-r--r-- | indexing/xindex/lualatex/xindex-base.lua | 5 | ||||
-rw-r--r-- | indexing/xindex/lualatex/xindex-cfg-common.lua | 2 | ||||
-rw-r--r-- | indexing/xindex/lualatex/xindex-cfg.lua | 2 | ||||
-rw-r--r-- | indexing/xindex/lualatex/xindex-dtk.lua | 39 | ||||
-rw-r--r-- | indexing/xindex/lualatex/xindex-lapp.lua | 2 | ||||
-rw-r--r-- | indexing/xindex/lualatex/xindex-lib.lua | 15 | ||||
-rw-r--r-- | indexing/xindex/lualatex/xindex-pretty.lua | 2 | ||||
-rw-r--r-- | indexing/xindex/lualatex/xindex-yannis.lua | 2 |
10 files changed, 41 insertions, 43 deletions
diff --git a/indexing/xindex/lualatex/xindex-DIN2.lua b/indexing/xindex/lualatex/xindex-DIN2.lua index ec5826316b..46d74b8bfb 100644 --- a/indexing/xindex/lualatex/xindex-DIN2.lua +++ b/indexing/xindex/lualatex/xindex-DIN2.lua @@ -7,7 +7,7 @@ ----------------------------------------------------------------------- if not modules then modules = { } end modules ['xindex-cfg'] = { - version = 0.19, + version = 0.20, comment = "configuration to xindex.lua", author = "Herbert Voss", copyright = "Herbert Voss", @@ -40,7 +40,6 @@ idxnewletter = "\\textbf" -- Only valid if -n is not set Several characters in the same slot have the same 'priority'. ]] - alphabet_lower = { -- for sorting { ' ' }, -- only for internal tests { 'a', 'á', 'à', 'å', 'æ', }, @@ -75,29 +74,29 @@ alphabet_lower = { -- for sorting } alphabet_upper = { -- for sorting { ' ' }, - { 'A', 'Á', 'À', 'Å', 'Æ'}, + { 'A', 'Á', 'À', 'Å', 'Æ', 'Â'}, { 'AE', 'Ä'}, { 'B' }, { 'C', 'Ç' }, { 'D' }, - { 'E', 'È', 'É', 'Ë' }, + { 'E', 'È', 'É', 'Ë', 'Ê' }, { 'F' }, { 'G' }, { 'H' }, - { 'I', 'Í', 'Ì', 'Ï' }, + { 'I', 'Í', 'Ì', 'Ï', 'Î' }, { 'J' }, { 'K' }, { 'L' }, { 'M' }, { 'N', 'Ñ' }, - { 'O', 'Ó', 'Ò', 'Ø','Œ', 'Ø' }, + { 'O', 'Ó', 'Ò', 'Ø','Œ', 'Ø', 'Ô' }, { 'OE', 'Ö' }, { 'P' }, { 'Q' }, { 'R' }, { 'S', 'Š' }, { 'T' }, - { 'U', 'Ú', 'Ù' }, + { 'U', 'Ú', 'Ù', 'Û' }, { 'UE', 'Ü' }, { 'V' }, { 'W' }, diff --git a/indexing/xindex/lualatex/xindex-HAdW-eKO.lua b/indexing/xindex/lualatex/xindex-HAdW-eKO.lua index 0b588ff74e..81f00dd2b0 100644 --- a/indexing/xindex/lualatex/xindex-HAdW-eKO.lua +++ b/indexing/xindex/lualatex/xindex-HAdW-eKO.lua @@ -9,7 +9,7 @@ -- configuration for index files of the Heidelberger Akademie der Wissenschaften if not modules then modules = { } end modules ['xindex-HAdW-eKO'] = { - version = 0.19, + version = 0.20, comment = "configuration to xindex.lua", author = "Herbert Voss", copyright = "Herbert Voss", diff --git a/indexing/xindex/lualatex/xindex-base.lua b/indexing/xindex/lualatex/xindex-base.lua index a110a41b00..4f16a9214d 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.19 } +local info = { version = 0.20 } -- check config if pageNoPrefixDel ~= "" then @@ -145,7 +145,7 @@ local currentCharType = 0 -- assume Symbol; 1 number; 2 letter local oldChar = "" local excl = 0 -- number of ! symbols in one entry local lastItems = {"","",""} - +indLines = 0 writeLog(2,"Start writing .ind file ... \n",0) -- first the special cases for symbols and numbers: @@ -251,6 +251,7 @@ for k=1,#NewIndex do end end outFile:write("\\end{theindex}\n") +writeLog(2,indLines.." lines of data wrote into the .ind file\n",0) outFile:close() writeLog(2,"\ndone! closing program\n",0) diff --git a/indexing/xindex/lualatex/xindex-cfg-common.lua b/indexing/xindex/lualatex/xindex-cfg-common.lua index 17ce7d2794..8a7e33addb 100644 --- a/indexing/xindex/lualatex/xindex-cfg-common.lua +++ b/indexing/xindex/lualatex/xindex-cfg-common.lua @@ -7,7 +7,7 @@ ----------------------------------------------------------------------- if not modules then modules = { } end modules ['xindex-cfg-common'] = { - version = 0.19, + version = 0.20, comment = "configuration to xindex.lua", author = "Herbert Voss", copyright = "Herbert Voss", diff --git a/indexing/xindex/lualatex/xindex-cfg.lua b/indexing/xindex/lualatex/xindex-cfg.lua index 952aa90169..48c6f43a0b 100644 --- a/indexing/xindex/lualatex/xindex-cfg.lua +++ b/indexing/xindex/lualatex/xindex-cfg.lua @@ -7,7 +7,7 @@ ----------------------------------------------------------------------- if not modules then modules = { } end modules ['xindex-cfg'] = { - version = 0.19, + version = 0.20, comment = "main configuration to xindex.lua", author = "Herbert Voss", copyright = "Herbert Voss", diff --git a/indexing/xindex/lualatex/xindex-dtk.lua b/indexing/xindex/lualatex/xindex-dtk.lua index b363f627aa..386304a185 100644 --- a/indexing/xindex/lualatex/xindex-dtk.lua +++ b/indexing/xindex/lualatex/xindex-dtk.lua @@ -7,7 +7,7 @@ ----------------------------------------------------------------------- if not modules then modules = { } end modules ['xindex-cfg'] = { - version = 0.19, + version = 0.20, comment = "DTK configuration to xindex.lua", author = "Herbert Voss", copyright = "Herbert Voss", @@ -36,64 +36,63 @@ indexOpening = "" --[[\providecommand*\lettergroupDefault[1]{} ]] alphabet_lower = { -- for sorting { ' ' }, -- only for internal tests - { 'a', 'á', 'à', 'ä'}, + { 'a', 'á', 'à', 'ä', 'â', 'å', 'æ', }, { 'b' }, - { 'c' }, + { 'c', 'ç' }, { 'd' }, - { 'e', 'é', 'è', 'ë' }, + { 'e', 'é', 'è', 'ë', 'ê' }, { 'f' }, { 'g' }, { 'h' }, - { 'i', 'í', 'ì', 'ï' }, + { 'i', 'í', 'ì', 'î', 'ï' }, { 'j' }, { 'k' }, { 'l' }, { 'm' }, { 'n', 'ñ' }, - { 'o', 'ó', 'ò', 'ö' }, + { 'o', 'ó', 'ò', 'ö', 'ô', 'ø', 'œ', 'ø'}, { 'p' }, { 'q' }, { 'r' }, - { 's' }, + { 's', 'š', 'ß' }, { 't' }, - { 'u', 'ú', 'ù', 'ü' }, + { 'u', 'ú', 'ù', 'ü' , 'û'}, { 'v' }, { 'w' }, { 'x' }, - { 'y' }, - { 'z' } + { 'y', 'ý', 'ÿ' }, + { 'z', 'ž' } } alphabet_upper = { -- for sorting { ' ' }, - { 'A', 'Á', 'À', 'Ä'}, + { 'A', 'Á', 'À', 'Ä', 'Å', 'Æ', 'Â' }, { 'B' }, - { 'C' }, + { 'C', 'Ç' }, { 'D' }, - { 'E', 'È', 'È', 'ë' }, + { 'E', 'È', 'É', 'Ë', 'Ê' }, { 'F' }, { 'G' }, { 'H' }, - { 'I', 'Í', 'Ì', 'ï' }, + { 'I', 'Í', 'Ì', 'Ï', 'Î' }, { 'J' }, { 'K' }, { 'L' }, { 'M' }, { 'N', 'Ñ' }, - { 'O', 'Ó', 'Ò', 'Ö' }, + { 'O', 'Ó', 'Ò', 'Ö', 'Ø','Œ', 'Ø', 'Ô'}, { 'P' }, { 'Q' }, { 'R' }, - { 'S' }, + { 'S', 'Š' }, { 'T' }, - { 'U', 'Ú', 'Ù', 'Ü' }, + { 'U', 'Ú', 'Ù', 'Ü', 'Û' }, { 'V' }, { 'W' }, { 'X' }, - { 'Y' }, - { 'Z' } + { 'Y', 'Ý', 'Ÿ' }, + { 'Z', 'Ž' } } - function specialGetPageList(v,hyperpage) local Pages = {} if v["pages"] then diff --git a/indexing/xindex/lualatex/xindex-lapp.lua b/indexing/xindex/lualatex/xindex-lapp.lua index 5d8dfb9b60..fd976f5a7e 100644 --- a/indexing/xindex/lualatex/xindex-lapp.lua +++ b/indexing/xindex/lualatex/xindex-lapp.lua @@ -28,7 +28,7 @@ --~ n 2 -------------------------------- if not modules then modules = { } end modules ['xindex-lapp'] = { - version = 0.19, + version = 0.20, comment = "read parameter for xindex.lua", author = "Steve Donovan", copyright = "Steve Donovan", diff --git a/indexing/xindex/lualatex/xindex-lib.lua b/indexing/xindex/lualatex/xindex-lib.lua index fd36c1560c..5cc397b799 100644 --- a/indexing/xindex/lualatex/xindex-lib.lua +++ b/indexing/xindex/lualatex/xindex-lib.lua @@ -7,7 +7,7 @@ ----------------------------------------------------------------------- if not modules then modules = { } end modules ['xindex-lib'] = { - version = 0.19, + version = 0.20, comment = "main library to xindex.lua", author = "Herbert Voss", copyright = "Herbert Voss", @@ -115,6 +115,7 @@ function checkVert(str) -- get the | part if (vert) then vertStr = string.sub(str,vert+1) str = string.sub(str,1,vert-1) +print(vertStr) return (vertStr) else return ("") @@ -263,12 +264,10 @@ function checkParenthesis(Entries) -- search for |( ... |) entries end function replaceVerticalChar(v) --- res, _ = string.gsub(v:gsub('|[()]$', ''), '|[()]?', ' \\') --- return res if not v:match('|') then return v,"" else - return v:gsub('|.*',''), v:match('|.*'):gsub('|','\\'):gsub("%s+", "") -- part before, part after | without spaces + return v:gsub('|.*',''), v:match('|.*'):gsub('|','\\')--:gsub("%s+", "") -- part before, part after | without spaces end end @@ -555,10 +554,10 @@ function GenerateSortKey(a) Apage = string.format("%09s",a["pages"][1]["number"]) end if no_caseSensitive then - A = NormalizedUpper(getSortString(a["Entry"].." "..Apage..a["pages"][1]["special"]):gsub('!','')) -- replace! by empty + A = NormalizedUpper(getSortString(a["Entry"].." "..Apage..a["pages"][1]["special"]):gsub('!',' ')) -- replace! by empty a["SortKey"] = A else - A = NormalizedChars(getSortString(a["Entry"].." "..Apage..a["pages"][1]["special"]):gsub('!','')) -- replace! by empty + A = NormalizedChars(getSortString(a["Entry"].." "..Apage..a["pages"][1]["special"]):gsub('!',' ')) -- replace! by empty a["SortKey"] = A end -- return A @@ -882,7 +881,7 @@ function itemOutput(last, v, hyperpage) for i, str0 in ipairs(escape_chars) do -- undo the escape char setting str = str:gsub(str0[2],str0[3]) end - outFile:write(str) + outFile:write(str); indLines=indLines+1 lastItems = {} lastItems[1] = Entry else @@ -906,7 +905,7 @@ function itemOutput(last, v, hyperpage) for i, str0 in ipairs(escape_chars) do -- undo the escape char setting str = string.gsub(str,str0[2],str0[3]) end - outFile:write(str) + outFile:write(str); indLines=indLines+1 lastItems[i] = currentItems[i] else writeLog(1,"itemOutput: currentItems[i]: "..currentItems[i].."= lastItems[i]: "..lastItems[i].."\n",2) diff --git a/indexing/xindex/lualatex/xindex-pretty.lua b/indexing/xindex/lualatex/xindex-pretty.lua index 16fea2c99f..74393defb9 100644 --- a/indexing/xindex/lualatex/xindex-pretty.lua +++ b/indexing/xindex/lualatex/xindex-pretty.lua @@ -5,7 +5,7 @@ -- if not modules then modules = { } end modules ['xindex-pretty'] = { - version = 0.19, + version = 0.20, comment = "dump a Lua table for debugging", author = "Steve Donovan", copyright = "Steve Donovan", diff --git a/indexing/xindex/lualatex/xindex-yannis.lua b/indexing/xindex/lualatex/xindex-yannis.lua index c77270b16e..164fb1f284 100644 --- a/indexing/xindex/lualatex/xindex-yannis.lua +++ b/indexing/xindex/lualatex/xindex-yannis.lua @@ -7,7 +7,7 @@ ----------------------------------------------------------------------- if not modules then modules = { } end modules ['xindex-yannis'] = { - version = 0.19, + version = 0.20, comment = "main configuration to xindex.lua", author = "Herbert Voss", copyright = "Herbert Voss", |