From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id GPLLAQmQP2aEPgAAqHPOHw:P1 (envelope-from ) for ; Sat, 11 May 2024 17:34:33 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id GPLLAQmQP2aEPgAAqHPOHw (envelope-from ) for ; Sat, 11 May 2024 17:34:33 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=NyNz4XIE; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1715441672; a=rsa-sha256; cv=none; b=EVMRpFRqUUkmQz/jjPNyrPVdBnwCBw4fsvT2AoflnjUWc/v7vwdNu7VVmczCFmftVOUHgN kyYyTW3NlI8zUkjAvaluSVyhzPnfm94OWoDf5J4BTR1+8sPJWTK3zVH9GeYZZSy3EOqLeL 2CaCWGuSn5A2utu2ZUYgGM3QVFRGFMj92uKyiUhwRhHxERdIa9TWwU9zs3G7yU0FZN0FF6 yZU16h6mi+v7dTbI8qNIPfLQakVIm66L3p1+lsU5497xLkt/OHYDOin3oyWrMgFZysnW9/ bRaaXM/TwKg+Wa22kKEdXI7RXeemLGAYDGWDQyJ5ZSuMjBdpaQxTFm5LKOe6cQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=NyNz4XIE; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1715441672; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=8n81gbGSmnkDy3m+koAVuc+dW214PhUizxZUjY8MWSY=; b=cq2wGtUhuVsuza8hnWqS0O8AAIYtCDNyodafs+1m9G3/h2smzdlpiLBu1UvQ6ctz/xIdk4 lDxWcq6Egy7Vy7ro8JhP+lw4UJ8VCf9U/BTuyGeIfTk3s6QBbhrxQODWXZQXs+xHPKvhCm G+UmKGC933S8oVmDDIXSec6v2bY5qyI4+3Ux6yzcjbU5XPbdWND3WzSag83AxFwt5e67KP WfEQ8iteuMarbgMxX4Es224ng2fcBbE80xLpQm1EvTLsIQwrMikyt5kskw9KpRM7OFwcQJ 4ev6FcMBlqY0CbYQL/sXuKHJLOCL6Q39IOk4a+MAz1H05jKyy3BI5VhOjaaTxQ== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6A4F722E0F for ; Sat, 11 May 2024 17:34:32 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s5ojE-0006cU-C1; Sat, 11 May 2024 11:33:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s5ojC-0006c1-1h for emacs-orgmode@gnu.org; Sat, 11 May 2024 11:33:38 -0400 Received: from mail-vs1-xe29.google.com ([2607:f8b0:4864:20::e29]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s5ojA-0003u1-BX for emacs-orgmode@gnu.org; Sat, 11 May 2024 11:33:37 -0400 Received: by mail-vs1-xe29.google.com with SMTP id ada2fe7eead31-47f3e985a84so1111301137.2 for ; Sat, 11 May 2024 08:33:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715441615; x=1716046415; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=8n81gbGSmnkDy3m+koAVuc+dW214PhUizxZUjY8MWSY=; b=NyNz4XIEuU794y26yjmT6KQA8R8+nB2oSfJjleVu8GnugJpsL31Z1rD4We1fEKI3bR l+I9a+jLNo9hCIe0iagO64RE/k7NdneSxWfhHUTlN2jufG922NmS06iJos5e8Nt2uj11 Ew2+8BYkiopm/4oxUwtuPAHIB8Xf4hjHx5jYPFDlfQEUQRgY43HoJQcgoHQJdBjSnLvK ZYOGktSnk9GNWwf0bXP3FX57fiBqhPzOc2Tb1LV5fM9NW6kKuIGVlIqZ8EViiitTlARq n8TTtWQmjCCDljlBC3G1VNtkfpX2uaouN7+7YxZLX2urqEBobtNLJau+hlIYx0u+2yo6 5qAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715441615; x=1716046415; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=8n81gbGSmnkDy3m+koAVuc+dW214PhUizxZUjY8MWSY=; b=FykopM5Ng3CA3j9VZYPYcnGLgM09AIsVsJ3IWuVp4QvaE50eXG7paINahvDE5p8LRn stkUUcqdVEaT3fmMjiCnBIVS13eFpymoY7EfkoaKuTPrD9jK/h1XS8GSEqRXGTnp57V3 TeiTv63ivYqX7EGaTTT18ocw6VKJ6pb0Z4S52sLlb1HId+WQQaeO0RaCQPC/uvkT/Ae9 0pnYLR4ygja6xraZFZNcH/Rvthp9e48hRmnvmpMToWvUr7k/AZkcJRxO0PwLKcGNXZ+V FHtYAIIW1J7OVWFhMx4zHNFtDDIWMzhzTYxOIV0IYHOPWONAlkXxWpJ25hzBjeN0FLcy 1lrg== X-Gm-Message-State: AOJu0YygO+waSlXV9AYDYNNGS0QhhDnduEkniKkifHWwFqxWDWyv1Qtf 0QFced4NuyfTjg5zEQrs+uvj/SjGuJkwxOsAeMqGtdA0oND4jzdqUEOPFUljic/t8w6JuZcNUae Ynf5lcqvZUvv8h+hyboo62+AjHu9gfM6s9xQ= X-Google-Smtp-Source: AGHT+IHGs54XoyEUzckrK8bxMoPSogziZOyy6X42VpwoOpCf/lsz1UUrm/rFtP7s6kXMK/aU6iIyIHgkKgv95fqt9Ns= X-Received: by 2002:a05:6122:c92:b0:4d3:1ef2:c97d with SMTP id 71dfb90a1353d-4df8829e2abmr5214157e0c.2.1715441614794; Sat, 11 May 2024 08:33:34 -0700 (PDT) MIME-Version: 1.0 From: =?UTF-8?Q?Andr=C3=A1s_Simonyi?= Date: Sat, 11 May 2024 17:33:23 +0200 Message-ID: Subject: [PATCH] oc-csl: New custom option `org-cite-csl-sentence-case-bibtex-titles' To: emacs-orgmode list Content-Type: multipart/mixed; boundary="00000000000015500d06182f6012" Received-SPF: pass client-ip=2607:f8b0:4864:20::e29; envelope-from=andras.simonyi@gmail.com; helo=mail-vs1-xe29.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 6A4F722E0F X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -8.60 X-Spam-Score: -8.60 X-TUID: hnpOQBQriK67 --00000000000015500d06182f6012 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Dear All, since bibtex and biblatex requires title fields to be in title case but CSL assumes that they are in sentence-case, citeproc-el converts title fields in bib(la)tex bibliography databases into sentence-case before processing them except for entries with an explicit non-English langid value. Although this seems to be reasonable behaviour, there were several requests in the last couple of years to make it possible to turn this conversion off (see, e.g., citeproc issues #119 and #142). The attached patch introduces a new custom option to configure when to perform the conversion. I'm a bit unsure about naming the option: Perhaps `org-cite-csl-sentence-case-bibtex-titles-without-langid' would be more precise but I found it absurdly long and technical, as most users are probably unaware of the existence of langid fields. best wishes, Andr=C3=A1s --00000000000015500d06182f6012 Content-Type: text/x-patch; charset="US-ASCII"; name="0001-oc-csl-New-custom-option-org-cite-csl-sentence-case-.patch" Content-Disposition: attachment; filename="0001-oc-csl-New-custom-option-org-cite-csl-sentence-case-.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_lw28wcep0 RnJvbSAwMzE0Mjg2MTFjMThiYjRkOTdiYmRiZDExYTc1NDljYTJiOTZjY2VjIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBBbmRyYXMgU2ltb255aSA8YW5kcmFzLnNpbW9ueWlAZ21haWwu Y29tPgpEYXRlOiBTYXQsIDExIE1heSAyMDI0IDExOjIwOjQxICswMjAwClN1YmplY3Q6IFtQQVRD SF0gb2MtY3NsOiBOZXcgY3VzdG9tIG9wdGlvbgogYG9yZ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2UtYmlidGV4LXRpdGxl cykpCiAgICAgICAgICAgICAgICAob3JnLWNpdGUtY3NsLS1sb2NhbGUtZ2V0dGVyKQogICAgICAg ICAgICAgICAgbG9jYWxlKSkpCiAgICAgICAgIChwbGlzdC1wdXQgaW5mbyA6Y2l0ZS1jaXRlcHJv Yy1wcm9jZXNzb3IgcHJvY2Vzc29yKQotLSAKMi4zNC4xCgo= --00000000000015500d06182f6012--