From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id gM4/MPfWZmHuHwEAgWs5BA (envelope-from ) for ; Wed, 13 Oct 2021 14:54:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 0L/9K/fWZmHMHgAA1q6Kng (envelope-from ) for ; Wed, 13 Oct 2021 12:54:15 +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 435E32181F for ; Wed, 13 Oct 2021 14:54:14 +0200 (CEST) Received: from localhost ([::1]:46026 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1madlt-0005Lp-Cx for larch@yhetil.org; Wed, 13 Oct 2021 08:54:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49972) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1madjQ-0003Po-Vn for emacs-orgmode@gnu.org; Wed, 13 Oct 2021 08:51:41 -0400 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:47683) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1madjN-0004EG-PU for emacs-orgmode@gnu.org; Wed, 13 Oct 2021 08:51:40 -0400 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id 8AD9F1BF20C; Wed, 13 Oct 2021 12:51:32 +0000 (UTC) From: Nicolas Goaziou To: "Bruce D'Arcus" Subject: Re: A minor suggestion about formatting citations References: <20211010230903.t7phnpribyvohlja@dalkati> <87wnmjgarm.fsf@nicolasgoaziou.fr> <87pmsbftg5.fsf@nicolasgoaziou.fr> Date: Wed, 13 Oct 2021 14:51:31 +0200 In-Reply-To: (Bruce D'Arcus's message of "Mon, 11 Oct 2021 12:55:44 -0400") Message-ID: <8735p584vg.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=217.70.183.201; envelope-from=mail@nicolasgoaziou.fr; helo=relay8-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, 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." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: org-mode mailing list , John Kitchin Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1634129655; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=LCgCIgZt1sbxK9LJTyQmvspqhrONq+h+nZtTj6SIo8I=; b=ewvTlnBVuhQoGEjVw1pOLgVznz9OahO7+RBqDZ/rm5a2LYBzdiomAIHEiAxGa/clcW5HGm 0br4XaOocRG/fV6bht8NxAz0e/2acE6BbK5lbROTa95cOcnTpObVrSctyztdDMT8p2yG29 dtsY9BB4PTmje2trx3KNLb4C34cpAtf3GMCSWt0u97PYKPU+udo229JN6zZWyyBxo8OIXK SJsrHU96ZwwxUJk5/JfYfDiY6gw8gArYE1pzJyUOOPP/vo9oof3HXv+5lndFROhWjNz1up vTtUWqnYyc4nzdIgmBdFbDRAKHFazKNrOCUx0FnwPuclmB1ZQkLIsMaIo3GuKA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1634129655; a=rsa-sha256; cv=none; b=OOSFdvZ0BbNULzPWeg1STpcWu33/mUezbtbfZ4hosgk+MVrZBagZ8wmrN2ydUSjAthDmmb Nl8qhdR4mzQvtBhIetG83K370ZOVRgPlUOcZJmb7xhAVuNixAhWNP0Grz8/5nsvzowLH3e Xz0ve8PnQCZoGOwfE3UoQuMQwnV9IySotJZ+/O+QGaljNfnifRwRMegRbNV3lTRD8AgL9P ZHkju79nTbbrzwgYTtcf6BRvDl9+9/+6SqRP4WsF+/dIW1Z0rMXQUDlzARrINfErr/k9Dd FseOXFaYgFU7LSt4jb+AiIITk/QkeTtM/+TxLz4ZqhTUgn7P/YffuHKo5DEpXA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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: -2.42 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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: 435E32181F X-Spam-Score: -2.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: 93Hz2mZPgEQS Hello, "Bruce D'Arcus" writes: > On Mon, Oct 11, 2021 at 11:54 AM Nicolas Goaziou wrote: >> I don't think that's totally true. The additional space makes sense >> typographically, in particular when some suffix is associated to the >> key. > > Can you give an example of what you mean here? I can't think of one > off the top-of-my-head. I mean that it seems natural to write, e.g., [cite:@doe21 p. 1; @doe99] instead of [cite:@doe21 p. 1;@doe99] >> Org Cite is unrelated to this. One could as well have inserted spaces >> manually, i.e., without calling `org-cite-insert' at all. > > I know; but you changed the default behavior of org-cite-make-insert-processor. > > The OP asked if there were any implications for this generally, and > I'm just saying "yes, there is." OK. Then, we are in a violent agreement. :) > You do have to trim the whitespace on either side of the key, since > the space is the delimiter. I guess it's not possible for the citation > parser to ignore the other whitespace? I'm not sure to understand your question. The space is not the delimiter; the semicolon is. For now, the whitespaces are significant for the parser, barring the leading and trailing ones. It seemed useful for export back-end and citation processor combinations unable to handle punctuation automatically (e.g., HTML + oc-basic). I can't tell if they should be ignored instead. >> The functions responsible for swapping citations ought to cope with this situation >> too. > > So check if the content of an affix, for example, is " " (rather than > whether there's an affix), and adjust accordingly? I don't think you need to check affixes when cycling citation references. You could split at ";", trim, re-order, and re-build the contents inserting "; " between each reference. Regards, -- Nicolas Goaziou