texlive[52892] trunk: xindex (22nov19)

commits+karl at tug.org commits+karl at tug.org
Fri Nov 22 23:19:47 CET 2019


Revision: 52892
          http://tug.org/svn/texlive?view=revision&revision=52892
Author:   karl
Date:     2019-11-22 23:19:47 +0100 (Fri, 22 Nov 2019)
Log Message:
-----------
xindex (22nov19)

Modified Paths:
--------------
    trunk/Build/source/texk/texlive/linked_scripts/xindex/xindex.lua
    trunk/Master/texmf-dist/doc/lualatex/xindex/CHANGELOG
    trunk/Master/texmf-dist/doc/lualatex/xindex/xindex-doc.pdf
    trunk/Master/texmf-dist/doc/lualatex/xindex/xindex-doc.tex
    trunk/Master/texmf-dist/scripts/xindex/xindex.lua
    trunk/Master/texmf-dist/tex/lualatex/xindex/xindex-DIN2.lua
    trunk/Master/texmf-dist/tex/lualatex/xindex/xindex-HAdW-eKO.lua
    trunk/Master/texmf-dist/tex/lualatex/xindex/xindex-base.lua
    trunk/Master/texmf-dist/tex/lualatex/xindex/xindex-cfg-common.lua
    trunk/Master/texmf-dist/tex/lualatex/xindex/xindex-cfg.lua
    trunk/Master/texmf-dist/tex/lualatex/xindex/xindex-dtk.lua
    trunk/Master/texmf-dist/tex/lualatex/xindex/xindex-lapp.lua
    trunk/Master/texmf-dist/tex/lualatex/xindex/xindex-lib.lua
    trunk/Master/texmf-dist/tex/lualatex/xindex/xindex-pretty.lua
    trunk/Master/texmf-dist/tex/lualatex/xindex/xindex-yannis.lua

Modified: trunk/Build/source/texk/texlive/linked_scripts/xindex/xindex.lua
===================================================================
--- trunk/Build/source/texk/texlive/linked_scripts/xindex/xindex.lua	2019-11-22 22:19:31 UTC (rev 52891)
+++ trunk/Build/source/texk/texlive/linked_scripts/xindex/xindex.lua	2019-11-22 22:19:47 UTC (rev 52892)
@@ -30,7 +30,7 @@
 kpse.set_program_name("luatex")
 
 local f = kpse.find_file("lualibs.lua")
-print ("Dateiname "..f)
+print ("filename "..f)
 require("lualibs")  -- all part of LuaTeX
 require('unicode')
 require('string')
@@ -206,4 +206,3 @@
 
 logFile:close()
 
-

Modified: trunk/Master/texmf-dist/doc/lualatex/xindex/CHANGELOG
===================================================================
--- trunk/Master/texmf-dist/doc/lualatex/xindex/CHANGELOG	2019-11-22 22:19:31 UTC (rev 52891)
+++ trunk/Master/texmf-dist/doc/lualatex/xindex/CHANGELOG	2019-11-22 22:19:47 UTC (rev 52892)
@@ -1,3 +1,4 @@
+0.20  2019-1^221 - fix for |see{foo bar}
 0.19  2019-10-31 - add again missing accented characters
 0.18  2019-10-27 - speed up sorting by modifying the code
 0.17  2019-10-15 - fixes in cfg file for missing circum

Modified: trunk/Master/texmf-dist/doc/lualatex/xindex/xindex-doc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/lualatex/xindex/xindex-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/lualatex/xindex/xindex-doc.tex	2019-11-22 22:19:31 UTC (rev 52891)
+++ trunk/Master/texmf-dist/doc/lualatex/xindex/xindex-doc.tex	2019-11-22 22:19:47 UTC (rev 52892)
@@ -1,4 +1,4 @@
-%% $Id: xltabular-doc.tex 635 2017-10-24 18:22:59Z herbert $
+%% $Id: xindex-doc.tex 635 2017-10-24 18:22:59Z herbert $
 %
 \listfiles\setcounter{errorcontextlines}{100}
 \documentclass[paper=a4,fontsize=11pt,DIV=13,parskip=half-,
@@ -80,7 +80,7 @@
 \def\setVersion#1{\setVVersion#1!!}
 \def\setVVersion#1=#2!!{\def\xIndexVersion{#2}} 
 
-\setVersion{version = 0.19}%  can be autimatically changed by perl
+\setVersion{version = 0.20}%  can be autimatically changed by perl
 
 \setkeys{dtk}{cleanup=true,force=false}
 

Modified: trunk/Master/texmf-dist/scripts/xindex/xindex.lua
===================================================================
--- trunk/Master/texmf-dist/scripts/xindex/xindex.lua	2019-11-22 22:19:31 UTC (rev 52891)
+++ trunk/Master/texmf-dist/scripts/xindex/xindex.lua	2019-11-22 22:19:47 UTC (rev 52892)
@@ -30,7 +30,7 @@
 kpse.set_program_name("luatex")
 
 local f = kpse.find_file("lualibs.lua")
-print ("Dateiname "..f)
+print ("filename "..f)
 require("lualibs")  -- all part of LuaTeX
 require('unicode')
 require('string')
@@ -206,4 +206,3 @@
 
 logFile:close()
 
-

Modified: trunk/Master/texmf-dist/tex/lualatex/xindex/xindex-DIN2.lua
===================================================================
--- trunk/Master/texmf-dist/tex/lualatex/xindex/xindex-DIN2.lua	2019-11-22 22:19:31 UTC (rev 52891)
+++ trunk/Master/texmf-dist/tex/lualatex/xindex/xindex-DIN2.lua	2019-11-22 22:19:47 UTC (rev 52892)
@@ -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 @@
     Several characters in the same slot have the same 'priority'.
 ]]
 
-
 alphabet_lower = { --   for sorting
     { ' ' },  -- only for internal tests
     { 'a', 'á', 'à', 'å', 'æ', },
@@ -75,22 +74,22 @@
 }
 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' },
@@ -97,7 +96,7 @@
     { 'R' },
     { 'S', 'Š' },
     { 'T' },
-    { 'U', 'Ú', 'Ù' },
+    { 'U', 'Ú', 'Ù', 'Û' },
     { 'UE', 'Ü' },
     { 'V' },
     { 'W' },

Modified: trunk/Master/texmf-dist/tex/lualatex/xindex/xindex-HAdW-eKO.lua
===================================================================
--- trunk/Master/texmf-dist/tex/lualatex/xindex/xindex-HAdW-eKO.lua	2019-11-22 22:19:31 UTC (rev 52891)
+++ trunk/Master/texmf-dist/tex/lualatex/xindex/xindex-HAdW-eKO.lua	2019-11-22 22:19:47 UTC (rev 52892)
@@ -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",

Modified: trunk/Master/texmf-dist/tex/lualatex/xindex/xindex-base.lua
===================================================================
--- trunk/Master/texmf-dist/tex/lualatex/xindex/xindex-base.lua	2019-11-22 22:19:31 UTC (rev 52891)
+++ trunk/Master/texmf-dist/tex/lualatex/xindex/xindex-base.lua	2019-11-22 22:19:47 UTC (rev 52892)
@@ -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 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 @@
   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)

Modified: trunk/Master/texmf-dist/tex/lualatex/xindex/xindex-cfg-common.lua
===================================================================
--- trunk/Master/texmf-dist/tex/lualatex/xindex/xindex-cfg-common.lua	2019-11-22 22:19:31 UTC (rev 52891)
+++ trunk/Master/texmf-dist/tex/lualatex/xindex/xindex-cfg-common.lua	2019-11-22 22:19:47 UTC (rev 52892)
@@ -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",

Modified: trunk/Master/texmf-dist/tex/lualatex/xindex/xindex-cfg.lua
===================================================================
--- trunk/Master/texmf-dist/tex/lualatex/xindex/xindex-cfg.lua	2019-11-22 22:19:31 UTC (rev 52891)
+++ trunk/Master/texmf-dist/tex/lualatex/xindex/xindex-cfg.lua	2019-11-22 22:19:47 UTC (rev 52892)
@@ -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",

Modified: trunk/Master/texmf-dist/tex/lualatex/xindex/xindex-dtk.lua
===================================================================
--- trunk/Master/texmf-dist/tex/lualatex/xindex/xindex-dtk.lua	2019-11-22 22:19:31 UTC (rev 52891)
+++ trunk/Master/texmf-dist/tex/lualatex/xindex/xindex-dtk.lua	2019-11-22 22:19:47 UTC (rev 52892)
@@ -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 @@
 ]]
 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

Modified: trunk/Master/texmf-dist/tex/lualatex/xindex/xindex-lapp.lua
===================================================================
--- trunk/Master/texmf-dist/tex/lualatex/xindex/xindex-lapp.lua	2019-11-22 22:19:31 UTC (rev 52891)
+++ trunk/Master/texmf-dist/tex/lualatex/xindex/xindex-lapp.lua	2019-11-22 22:19:47 UTC (rev 52892)
@@ -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",

Modified: trunk/Master/texmf-dist/tex/lualatex/xindex/xindex-lib.lua
===================================================================
--- trunk/Master/texmf-dist/tex/lualatex/xindex/xindex-lib.lua	2019-11-22 22:19:31 UTC (rev 52891)
+++ trunk/Master/texmf-dist/tex/lualatex/xindex/xindex-lib.lua	2019-11-22 22:19:47 UTC (rev 52892)
@@ -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 @@
   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 @@
 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 @@
     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 @@
     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 @@
         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)

Modified: trunk/Master/texmf-dist/tex/lualatex/xindex/xindex-pretty.lua
===================================================================
--- trunk/Master/texmf-dist/tex/lualatex/xindex/xindex-pretty.lua	2019-11-22 22:19:31 UTC (rev 52891)
+++ trunk/Master/texmf-dist/tex/lualatex/xindex/xindex-pretty.lua	2019-11-22 22:19:47 UTC (rev 52892)
@@ -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",

Modified: trunk/Master/texmf-dist/tex/lualatex/xindex/xindex-yannis.lua
===================================================================
--- trunk/Master/texmf-dist/tex/lualatex/xindex/xindex-yannis.lua	2019-11-22 22:19:31 UTC (rev 52891)
+++ trunk/Master/texmf-dist/tex/lualatex/xindex/xindex-yannis.lua	2019-11-22 22:19:47 UTC (rev 52892)
@@ -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",



More information about the tex-live-commits mailing list