From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>
Received: from mp1 ([2001:41d0:2:4a6f::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by ms0.migadu.com with LMTPS
	id EEeUHjlfpmDNrAAAgWs5BA
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Thu, 20 May 2021 15:08:09 +0200
Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by mp1 with LMTPS
	id yBckGjlfpmBJAgAAbx9fmQ
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Thu, 20 May 2021 13:08:09 +0000
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 8F6421AA57
	for <larch@yhetil.org>; Thu, 20 May 2021 15:08:08 +0200 (CEST)
Received: from localhost ([::1]:60484 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	id 1ljiPH-0005o5-7M
	for larch@yhetil.org; Thu, 20 May 2021 09:08:07 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:41588)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <denismaier@mailbox.org>)
 id 1ljiOi-0005fb-D1
 for emacs-orgmode@gnu.org; Thu, 20 May 2021 09:07:32 -0400
Received: from mout-p-202.mailbox.org ([2001:67c:2050::465:202]:38924)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256)
 (Exim 4.90_1) (envelope-from <denismaier@mailbox.org>)
 id 1ljiOf-0000ae-DX
 for emacs-orgmode@gnu.org; Thu, 20 May 2021 09:07:32 -0400
Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest
 SHA256) (No client certificate requested)
 by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4Fm94s4lWdzQj4Y;
 Thu, 20 May 2021 15:07:25 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mailbox.org; h=
 content-transfer-encoding:content-type:content-type:in-reply-to
 :mime-version:date:date:message-id:from:from:references:subject
 :subject:received; s=mail20150812; t=1621516041; bh=qVO/e+/o+JmM
 iyCQvY0hg1V4/dy1f3Q+d076oiZmqn0=; b=de2qa8/uvfV0VPz31nNAecom3Wqr
 aa0mX0bZ+TIt1eTWt0FsNoa2u36y0L0VoAooxwRg0tq05TYtqMC2zTfi5DxTG7xn
 pWCOFc44c4N5/Ldw+5RHosfSQq1eovHXUOe5v8HhT2t1sXqg8bdJiAWXOR5Qc+s2
 mudzCY69/Tt5el6MWSWzU1c1sxhrgiKLN6gKSawuTNnCE/ArucFfQjzLlEwehdDq
 WZJfA5ybB5hfKpcbJqI4SgTpIBlNDuqrGipZ0z8sjngeMN/J1wzRqlTKS3zSTnaH
 pJW6590d408A9FG/l5HEYFyEB0L61HzZFMPGMZX2C/4h8v3jUlS0w54xog==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org;
 s=mail20150812; t=1621516043;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:mime-version:mime-version:content-type:content-type:
 content-transfer-encoding:content-transfer-encoding:
 in-reply-to:in-reply-to:references:references;
 bh=MGgpBzQ9exyhhUIRlW8EHNaeXMldN8Xrl1+Mcab8AbY=;
 b=sDBemeV5Ic4x5WSw88KLJoiqAO0Y/8oXTCYR0EtfvbtVQahNsSShkxympgYtZ7CUF5E9sy
 oBx2phBIFk7ARf6aRcsLBtZRM5fHS2e2+NfVAxLN25xFWF4PeD1HuQFPnYmJ13pBsisUoa
 bDZRNWr3gC/LpNNPbb0nULICK8wJn9NAxndT1+pIvc+OkQXSgRnNEkOdGxwCFP/HBWC59k
 rtZXouwnW2GjtNfQTsb4Y6QpSDM8lXkkcb4JP/90CpDm7FUyqeR1CZkTb/12Kn0AgIBJHD
 bcJMuQB44mHuVBj4FSB8th70+lGPKkNFn2xPw+aDAg5EdrjqWnNENPWV+WbXcw==
X-Virus-Scanned: amavisd-new at heinlein-support.de
Received: from smtp2.mailbox.org ([80.241.60.241])
 by hefe.heinlein-support.de (hefe.heinlein-support.de [91.198.250.172])
 (amavisd-new, port 10030)
 with ESMTP id oTNUjNNVBALd; Thu, 20 May 2021 15:07:21 +0200 (CEST)
Subject: Re: [wip-cite-new] Initial implementation of `biblatex' citation
 processor
To: Bruce D'Arcus <bdarcus@gmail.com>, org-mode-email <emacs-orgmode@gnu.org>
Newsgroups: gmane.emacs.orgmode
References: <87bl985b3h.fsf@nicolasgoaziou.fr>
 <10eb58b2-5da3-b768-cf56-87aa447346d7@mailbox.org>
 <CAF-FPGOz8bRH602p0hzRDQJF4+YQGMY+ppRyEz4QFfiP=1GboQ@mail.gmail.com>
 <5a23225d-118a-d08e-a1d7-f9fe3791c1bf@mailbox.org>
 <87lf8a4z3a.fsf@nicolasgoaziou.fr>
 <52aade3f-3e8e-bd56-109e-c6cfd9254915@mailbox.org>
 <87mtsq3fy1.fsf@nicolasgoaziou.fr>
 <605c9586-384c-c4d4-d827-f97b1baf7c84@mailbox.org>
 <CAF-FPGOZNo4tnj3Zt0CRufm9GN2uVhoujzhve-gmUPZwFR7cqQ@mail.gmail.com>
From: Denis Maier <denismaier@mailbox.org>
Message-ID: <8959af45-54f3-da9f-5af2-e23a64bebadd@mailbox.org>
Date: Thu, 20 May 2021 15:07:04 +0200
MIME-Version: 1.0
In-Reply-To: <CAF-FPGOZNo4tnj3Zt0CRufm9GN2uVhoujzhve-gmUPZwFR7cqQ@mail.gmail.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-MBO-SPAM-Probability: 
X-Rspamd-Score: -3.31 / 15.00 / 15.00
X-Rspamd-Queue-Id: 618EC180C
X-Rspamd-UID: 9b2e37
Received-SPF: pass client-ip=2001:67c:2050::465:202;
 envelope-from=denismaier@mailbox.org; helo=mout-p-202.mailbox.org
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 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,
 RCVD_IN_DNSWL_LOW=-0.7, 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.23
Precedence: list
List-Id: "General discussions about Org-mode." <emacs-orgmode.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>,
 <mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/emacs-orgmode>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
 <mailto:emacs-orgmode-request@gnu.org?subject=subscribe>
Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org
Sender: "Emacs-orgmode" <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>
X-Migadu-Flow: FLOW_IN
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org;
	s=key1; t=1621516089;
	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:
	 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=MGgpBzQ9exyhhUIRlW8EHNaeXMldN8Xrl1+Mcab8AbY=;
	b=VytUgUHAUoEOm9BRL7S7KN8NUaz+UHYfcP5NT5rijFWTS2u9m2xhIYwhv5nKHvoRbbjWSw
	xWbc84UrOtmg2Q09YedKBhxaUcu89PEb9HgWfsX5O9y86OGYkA4C4J5O9/EPp45YytD/zU
	g2jL2eyzdfmh90GAEJa8qcCMCAXguQLNgSQYAXcasr5i6CKMN2ctydQ33FdKSGzT9gDkye
	IfdVmGysDNKuOO0BFy7M6p5/VYvmX6Rjuw3gG+ZvnwmKx7lDR6q+ADQxkPRtDLfLhzHl3X
	fBcKHsCoHJay5/9DTDBFR62N63kpo5oRIIjL+bzm4SFBuWdiPq6sWajzRB1LGw==
ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621516089; a=rsa-sha256; cv=none;
	b=dRZh8yIJE+wP6cc+Y7DhDn2D/aQvadMWcKXVFPlv9yqPfd12CQz2vuFykhcGWMaJQS+5AL
	7O44KPYdlkSegV0DHFPBWz6c9TqLJ3N1IlGujuLB11VtppccpojseNmtj7NHpZKIVrCdpz
	nwc8cfLVIEJ9z38aWJ/WVx9E0AJwy3urR/wLlaGh391qC16mGEIeJK+7mlrhVFFYzTwUvY
	reE52f4HjAahI0NIWfvCWYkCyQiqXdIzLflJuoLDFEoLWNovjFg4mCbNAPRujHkG8A2N31
	zLTXyKFcdcvPzzKuXlTol9b2OUdIM3b5zXfb/eQ7IJ0Z720Cz4oKh6rAl7DGGw==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=pass header.d=mailbox.org header.s=mail20150812 header.b="de2qa8/u";
	dkim=pass header.d=mailbox.org header.s=mail20150812 header.b=sDBemeV5;
	dmarc=pass (policy=reject) header.from=mailbox.org;
	spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org
X-Migadu-Spam-Score: -3.14
Authentication-Results: aspmx1.migadu.com;
	dkim=pass header.d=mailbox.org header.s=mail20150812 header.b="de2qa8/u";
	dkim=pass header.d=mailbox.org header.s=mail20150812 header.b=sDBemeV5;
	dmarc=pass (policy=reject) header.from=mailbox.org;
	spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org
X-Migadu-Queue-Id: 8F6421AA57
X-Spam-Score: -3.14
X-Migadu-Scanner: scn0.migadu.com
X-TUID: 5+qgqVZn2ID4

Am 20.05.2021 um 12:36 schrieb Bruce D'Arcus:
> On Thu, May 20, 2021 at 4:18 AM Denis Maier <denismaier@mailbox.org> wrote:
> 
>> Could be, but also [cite/text/bare] or cite/foot/bare or cite/super/bare
>> as they all are essentially just wrappers around the plain cite command
>> (textcite is a bit different, but parencite and footcite really have the
>> same definition as cite, the only difference being that they add some
>> kind of wrapper.)
>> So, starting from parencite and then removing the wrapper would my logic
>> instead ;-)
>> But maybe cite/plain or cite/basic or so?
> 
> First, are those two suggestions just synonyms for cite/bare?

Yes. Nicolas complained about cite/bare so I've thought cite/plain may 
be nicer. (See autocite=plain) But the biblatex manual uses itself the 
term "bare".


> 
> Or are you indeed suggesting completely changing the current logic of
> these styles and substyles? E.g "bare' substyle becomes rather a
> "plain" or "basic" style?

I'm not really sure we need bare substyles at all. At least in biblatex 
it's the basis for the other commands.
But anyway: My first suggestion was cite/bare, and the reasoning behing 
that was:
cite: is equal to cite/default:
cite/default is equal to cite/auto
cite/auto is equal to cite/parens or cite/note
cite/bare could be understood as cite/auto/bare, which is cite/note/bare 
or cite/parens/bare

I just don't really like the notion of first adding a wrapper just to 
remove it afterwards.

> 
> If yes, I need to think on this more.
> 
>> |-----------+---------------+--------------|
>> | parens    | noauthor-caps | Parencite*   |
>> | parens    | noauthor      | parencite*   |
>> | parens    | caps          | Parencite    |
>> | parens    |               | parencite    |
>> |-----------+---------------+--------------|
>> | plain     | noauthor-caps | Cite*        |
>> | plain     | noauthor      | cite*        |
>> | plain     | caps          | Cite         |
>> | plain     |               | cite         |
>> |-----------+---------------+--------------|
> 
> Second, I don't understand some of the above.
> 
> Why "noauthor", for example? Is that not handled currently with a "year" style?
> 
> cite/year/caps

First of all, what does capitalization of a number mean? There's no 
\Citeyear in biblatex, after all.
But that aside, \citeauthor, \citetitle and \citeyear are lower level 
commands than \cite*{}.
\cite* will work in author-date styles and in author-title styles. It 
will either print the date or the title. When using \citeyear directly 
you cannot easily switch to a different style. And: citeyear etc. don't 
use the internal trackers (ibid., idem., etc.).

#+begin_example
At the beginning Doe argues this and that (2020, p. 20). He goes on to 
say blabla, see ibid., p. 23.
#+end_example

In order to get the ibid., you'll need a \cite* instead of just a 
\citeyear or so.

> 
> And how would all of this map to natbib and citeproc? >
> The style+substyles really should work well across the output formats,
> and gracefully fallback if certain variants, particularly in biblatex,
> aren't available in other formats.
> 
> Is that the case with your suggested changes?

The problem is indeed portability between csl and biblatex (and natbib). 
I think it's unavoidable that users who use biblatex specific commands 
loose that to a certain degree. Fallback mappings should be added, of 
course, but they will only get you so far. We should probably indicate 
which commands work in all packages so users can make their decisions 
consciously.

Perhaps we should start thinking from the high level commands:

| CSL             | biblatex                            |
|-----------------+-------------------------------------|
| default         | autocite (=parencite or footcite)   |
| in-text         | textcite                            |
| suppress author | autocite* (=parencite* or footcite* |
|-----------------+-------------------------------------|

FWIW, footcite* does not exist in all styles, so it will just behave 
like the regular footcite.

> 
> Bruce
> 
> PS - I hadn't yet integrated sub-styles in this table, but we probably
> need a table that does that.
> 
> https://github.com/bdarcus/bibtex-actions/wiki/Org-cite
> 
>