ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "śrīrāma via ntg-context" <ntg-context@ntg.nl>
To: ntg-context@ntg.nl
Cc: śrīrāma <citturs@gmail.com>, "Damien Thiriet" <damien@thiriet.web4me.fr>
Subject: Re: List of publications…
Date: Wed, 18 May 2022 07:34:10 +0530	[thread overview]
Message-ID: <5568258.DvuYhMxLoT@sreeramtplt> (raw)
In-Reply-To: <YoPp6vIsBbIKW1DG@valencay.home>

[-- Attachment #1: Type: text/plain, Size: 751 bytes --]

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

[-- Attachment #2: publ-ini.diff --]
[-- Type: text/x-patch, Size: 3159 bytes --]

--- 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

[-- Attachment #3: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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	other threads:[~2022-05-18  2:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-17 18:32 Damien Thiriet via ntg-context
2022-05-18  2:04 ` śrīrāma via ntg-context [this message]
2022-05-18  8:19 Damien Thiriet via ntg-context

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5568258.DvuYhMxLoT@sreeramtplt \
    --to=ntg-context@ntg.nl \
    --cc=citturs@gmail.com \
    --cc=damien@thiriet.web4me.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).