From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id OEbcE2ShRGbFaQEAe85BDQ:P1 (envelope-from ) for ; Wed, 15 May 2024 13:49:56 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id OEbcE2ShRGbFaQEAe85BDQ (envelope-from ) for ; Wed, 15 May 2024 13:49:56 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=eb1t0k6z; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1715773796; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=MrPhG+Sy3TuIU0u6i14HszbR3IQHW0nG87O/A3PFfhA=; b=U3n0Ra2gsmlGFYYs3z0WQhegUjFg4TzCOJsoPwvK0uN9OMSwhq4kP5rbKSUKHN63ixbXbU MtXMMxGIre8xbRfch8lF7uv0JnkivpIwSu5YeHV/hPnSec1Yw01X36weAiLFaMzUyOzhFt ecZWg51RwOWwhv6vMTR1AOwDMuYuVYfE0/Dj/hEMD6Z621fSDeBeLmpHzcRi+rrg8jfBRc 1cY0J7iYwQi7taRHKTG1TPkWSGS9tJZViMDZjEaSmgyimHtQS9LcxMb8gcw1OxoY79Ua/h J83ks/YKbsEmOa6RS+Wc2WKMpaLf82JQ8yGkkeXPQi+tHOx614Fc1TrAbab7PA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=eb1t0k6z; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1715773796; a=rsa-sha256; cv=none; b=Y07SxXUOiwJB7KdwmhQeHBsxza1n6HMyy3P3A1nVUW9ZyRkAhc+LIYug5lIRzqAYV7/liG /QaNDVzaSi212bkl5YNE8Kk/DR/a8W5Cwh+scsoRaNivqTbTm7hll1PM6Xx5IKr2jaO5Jh jAis1njcLgKH46R22Q7peO37r7pz/UF3ogkD1plUfWem4IjHZA2CLT1pDZX1cw+ThkrqQa Fla0DWoOeyYQH10NVpffjeWZdw3TR2VI/SmrpaXucKMrIaHP48wl6QuOT7APerb0rseO3u Hsu9QjN8plX4DAYCMGlPgvHZEFCqomhPXdJbMlYCOc5obvusY0v2LoUlbXTFPA== 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 1BC5C6C9AD for ; Wed, 15 May 2024 13:49:56 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s7D7p-00030C-JZ; Wed, 15 May 2024 07:48:49 -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 1s7D7o-0002yC-0y for emacs-orgmode@gnu.org; Wed, 15 May 2024 07:48:48 -0400 Received: from mail-lj1-x236.google.com ([2a00:1450:4864:20::236]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s7D7m-0007vr-7E for emacs-orgmode@gnu.org; Wed, 15 May 2024 07:48:47 -0400 Received: by mail-lj1-x236.google.com with SMTP id 38308e7fff4ca-2dcc8d10d39so78720211fa.3 for ; Wed, 15 May 2024 04:48:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715773723; x=1716378523; darn=gnu.org; h=content-transfer-encoding:in-reply-to:mail-followup-to:cc:to:from :content-language:references:subject:user-agent:mime-version:date :message-id:sender:from:to:cc:subject:date:message-id:reply-to; bh=MrPhG+Sy3TuIU0u6i14HszbR3IQHW0nG87O/A3PFfhA=; b=eb1t0k6zLh3D43N9Sth3tLInNIzC2A70DQWPNRtoZZ2o8mjbCtmKAzju9ex5fYkVx4 2mqC6VmqxM5A3m7cDQLd2tAfzojX4aDj7UFANvEbQt3e+gV6X55gpKAhc191yR57q/sr tVCfEl9xsJa57+soS/t/y+RLfwKUWEKyeSw+0LrP4A04qfRrYuh5H1tr5F7v603jT7gH 3baa3PJ4xvYCbmYxKSqSLT2B1TrxKgHEjgPA51HrBu0OeDOFGaG5oUtDSc4wXAAH83OP LuKf8H/pLkbp27c00MYGWkKC0d+TVWh2ptxOL7p/v6RpiG362Vs9lX6hysiJDPI5hYVL s/Cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715773723; x=1716378523; h=content-transfer-encoding:in-reply-to:mail-followup-to:cc:to:from :content-language:references:subject:user-agent:mime-version:date :message-id:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=MrPhG+Sy3TuIU0u6i14HszbR3IQHW0nG87O/A3PFfhA=; b=FX3flDcBu6Q3K6XRCMaJgU/8dJvz8ptJrqRm0Z3TrIM2h9nZ7ZNqp5/vAxhL0Cg2ef vaWbgIKhOT8UQ7DcxMSamBM6MqNnZ0H8dnGJjQa9NFFm13ftAJk91LLS/8xx6mzd1H6b tLe7qd5i5xVFv0PBfzkkD6mM9zcqMxuQt3KiMdFPhnoI1By6XSHbgd+v/zn8vpEvP7cF R+zchT4GdBX2oV57Xymq2DHd9O07p8/8zGceP1KsKCzofu4GIqGvT5mQD07rr1xqvhOe lRLW5R4Aukbo33CPDzK/9jnb2jrk9KDYUjn2xhJ5LktqaFESetv1J+whdiV52y6S0+20 XYqg== X-Gm-Message-State: AOJu0YzLomOFqs9dAQUVxHI0RPCdxLf3dFhW5iMliijaFAc9L+XBiO9h aTjPrxrX6Ngayxgj6eth1cxsk+D7aymEMlTUna5qYCe5fss1ouxKjL58UQ== X-Google-Smtp-Source: AGHT+IFUs01CUrplBrNHQgSXQMlAh0jlUCddQrL9+kYwfMwpMxgZMMD7BF++fZ3rrC1qa6F9dfW3/g== X-Received: by 2002:a05:651c:d1:b0:2e0:c6ec:bcc1 with SMTP id 38308e7fff4ca-2e5204ac486mr96113051fa.45.1715773722775; Wed, 15 May 2024 04:48:42 -0700 (PDT) Received: from [192.168.0.102] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id 38308e7fff4ca-2e4d0bbd6besm20654841fa.3.2024.05.15.04.48.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 15 May 2024 04:48:42 -0700 (PDT) Message-ID: Date: Wed, 15 May 2024 18:48:41 +0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] oc-csl: New custom option `org-cite-csl-sentence-case-bibtex-titles' References: Content-Language: en-US, ru-RU From: Max Nikulin To: emacs-orgmode@gnu.org Cc: =?UTF-8?Q?Andr=C3=A1s_Simonyi?= Mail-Followup-To: emacs-orgmode@gnu.org, =?UTF-8?Q?Andr=C3=A1s_Simonyi?= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::236; envelope-from=manikulin@gmail.com; helo=mail-lj1-x236.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-Spam-Score: 2.64 X-Migadu-Queue-Id: 1BC5C6C9AD X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: 2.64 X-TUID: bDMT6M6XRFD/ On 11/05/2024 22:33, AndrĂ¡s Simonyi wrote: > 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. I am not a user of citeproc-el, so feel free to disregard my comments. In the past I had to adjust BibTeX styles, but yesterday I was surprised that there are options for upper case, lower case, and sentence-style capitalization, but not for title-style capitalization. It seems that both approaches with title case and with sentence case have some shortcomings. Likely title case like in BibTeX requires more explicit hints and perhaps there are cases when available hints are not enough to get specific formatting. I still expect that CSL needs hints as well to avoid improper formatting. Is it possible to keep title formatting from .bib files till it becomes known that specific style requires sentence case for particular entry type? I had a hope that it might alleviate the issue and to make things working out of the box for more users. > I'm a bit unsure about naming the option: > Perhaps `org-cite-csl-sentence-case-bibtex-titles-without-langid' A variant: org-cite-csl-bibtex-title-to-sentence-case > @@ -584,7 +599,8 @@ property in INFO." > (processor > (citeproc-create > (org-cite-csl--style-file info) > - (citeproc-hash-itemgetter-from-any bibliography) > + (citeproc-hash-itemgetter-from-any > + bibliography (not org-cite-csl-sentence-case-bibtex-titles)) > (org-cite-csl--locale-getter) > locale))) > (plist-put info :cite-citeproc-processor processor) I am not in the context, so I may be completely wrong. Does it means that you added one more argument to `citeproc-create' and that consistent Org and citeproc-el versions must be used? If so, wouldn't it better to pass a property list to allow newer Org to work with older citeproc-el or vice versa? It may be tricky to preserve backward-forward compatibility on this step, but it should make further changes easier. It may be reasonable to explicitly add version of "protocol" to the property list, so that citeproc-el may decide if error should be signaled in the case of serious version difference. It is not clear for me why `org-cite-csl-sentence-case-bibtex-titles' is a part of Org, not of citeproc-el. The only thing that Org can do is to pass it to citeproc-el. It is not configurable per .org file and likely it should not be. From my point of view it might be more suitable per .bib file. Anyway it is almost unrelated to Org.