On 5/18/22 12:02 AM Damien Thiriet via ntg-context wrote:
> Unfortunately, commenting out all occurrences of those two lines
> didn't make the job for me.
> And using lowercase characters is unfortunately a no-op as far as
> I'm concerned: my bib files have been filled with CamelCase for years,
> and are loaded by dozens of other files…
> 
> is there something I missed?
> current version: 2022.05.02 16:19

That's strange: I have LMTX 2022.05.11 11:36 and have no issues with this 
'patch'. I too have thousands of references across documents, so could not 
convert the tags to lowercase, and this patch works for me. 
I am attaching a diff here. I hope you made the format (context --make) after 
applying the changes.

  Sreeram
--- publ-ini-1.lua	2022-05-04 08:07:01.410444702 +0530
+++ publ-ini.lua	2022-04-24 09:28:56.499009761 +0530
@@ -22,7 +22,7 @@
 -- gain is not that large anyway because not much publication stuff is flushed.
 
 local next, rawget, type, tostring, tonumber = next, rawget, type, tostring, tonumber
-local match, find, gsub, lower = string.match, string.find, string.gsub, string.lower
+local match, find, gsub = string.match, string.find, string.gsub
 local concat, sort, tohash = table.concat, table.sort, table.tohash
 local mod = math.mod
 local formatters = string.formatters
@@ -1316,12 +1316,6 @@
     local typesetters        = { }
     publications.typesetters = typesetters
 
-    local lowered = setmetatableindex(function(t,k)
-        k = lower(k)
-        t[k] = k
-        return k
-    end)
-
     local function defaulttypesetter(field,value,manipulator)
         if value and value ~= "" then
             value = tostring(value)
@@ -1428,8 +1422,6 @@
     local function get(dataset,tag,field,what,check,catspec) -- somewhat more extensive
         local current = rawget(datasets,dataset)
         if current then
-            tag   = lowered[tag]
-            field = lowered[field]
             local data = current.luadata[tag]
             if data then
                 local category = data.category
@@ -1479,8 +1471,6 @@
     local function btxflush(name,tag,field)
         local dataset = rawget(datasets,name)
         if dataset then
-            tag   = lowered[tag]
-            field = lowered[field]
             local fields = dataset.luadata[tag]
             if fields then
                 local manipulator, field = splitmanipulation(field)
@@ -1507,8 +1497,6 @@
     local function btxfield(name,tag,field)
         local dataset = rawget(datasets,name)
         if dataset then
-            tag   = lowered[tag]
-            field = lowered[field]
             local fields = dataset.luadata[tag]
             if fields then
                 local category = fields.category
@@ -1534,8 +1522,6 @@
     local function btxdetail(name,tag,field)
         local dataset = rawget(datasets,name)
         if dataset then
-            tag   = lowered[tag]
-            field = lowered[field]
             local fields = dataset.luadata[tag]
             if fields then
                 local details = dataset.details[tag]
@@ -1566,11 +1552,8 @@
     local function btxdirect(name,tag,field)
         local dataset = rawget(datasets,name)
         if dataset then
-            tag   = lowered[tag]
-            field = lowered[field]
             local fields = dataset.luadata[tag]
             if fields then
-                field = lowered[field]
                 local manipulator, field = splitmanipulation(field)
                 local value = fields[field]
                 if value then
@@ -1589,8 +1572,6 @@
     local function okay(name,tag,field)
         local dataset = rawget(datasets,name)
         if dataset then
-            tag   = lowered[tag]
-            field = lowered[field]
             local fields = dataset.luadata[tag]
             if fields then
                 local category = fields.category
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to