From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id IFlaCdBsZGGToAAAgWs5BA (envelope-from ) for ; Mon, 11 Oct 2021 18:56:48 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id OFkkBNBsZGHeBQAAB5/wlQ (envelope-from ) for ; Mon, 11 Oct 2021 16:56:48 +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 7A0EB1C7FD for ; Mon, 11 Oct 2021 18:56:47 +0200 (CEST) Received: from localhost ([::1]:45392 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mZybW-0002WV-FE for larch@yhetil.org; Mon, 11 Oct 2021 12:56:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48684) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mZyan-0002WJ-Aa for emacs-orgmode@gnu.org; Mon, 11 Oct 2021 12:56:01 -0400 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:38481) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mZyak-0002eR-3z for emacs-orgmode@gnu.org; Mon, 11 Oct 2021 12:55:59 -0400 Received: by mail-wr1-x435.google.com with SMTP id u18so58439833wrg.5 for ; Mon, 11 Oct 2021 09:55:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=pp3p7mY3VmR+8B/uj0mrBnCwa8BjZDbwJ4mIEIM4eYw=; b=Fifzze3Xet3fTOpxbW9fdzM39X3JoSDI/XzWXsaZCtnEWGntgX0yzU+dPzQojfwUt8 ctV62OqO/2l6Mjp3QxohHbZQemY4AgpuFmx68SLbfEVNSh4Qg4KXNwEJFJDN4jtKh00c WnQ61Snpc1Wf9Yl3GDDxIfE4StcVCP+N6uU4hp35FICglBeZM1ytMArJ92Z94US5JlZb Ac7X+O+w/E2x21PgrDtV8yF5FQAAXIB36vMgFBuzcyb/6TKTQXS/OvX3BYPktpgDYEsU WgxCnmdTheEJZIlWLElVhGzJkNzQYL/U6DfBd+6GM9GWdE/97CWv+xCltoZoCqBqgVaT 1ctw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pp3p7mY3VmR+8B/uj0mrBnCwa8BjZDbwJ4mIEIM4eYw=; b=WJld6UXS4dUK/diaQiByi765YjyyYN0Ff8jUufvlPUfhBKzSDX32FCkeHyntC8l3aL SNpGw495ztwo4C06l70Q/PJFvjvUXvusYZGwBmnfqkmYNphf9ZuVv4H90JfA3nFypq+d nrPebAhqD+4KkYbyEkGvx8UOPb5digsRN5aWYZyYmJ8PQLcGFDFkhiwFqplEe5MHz5SR 15ESVy0JZzTDs8QBQ2RW4Fnr5fXT0Lm0BGGiuSAVfPjkId4BcwaxJb79p56bkJynVPr8 DQaMbIhsDbsSkVzFswg+06kvj6nXzovJNom+rEkOKkHc/XTPcP6s8B+2uWDgE0vngifx hlmg== X-Gm-Message-State: AOAM5323gmVegHrSfKXlsfKjMWFB3jMCJLNPuEhXyw+iH4wGsOSOovwb mtgOlw5B2SmWOirqpyDukC8jgDxh3R6Cm+jPQSk= X-Google-Smtp-Source: ABdhPJyVb5K6uycLJc6baP5D0LkR6KPQ5tLrWYuHKoD690xr9fRo8AAp7T7Fk1HPjLZXNY+EjmuzWdKrTrzHor927X8= X-Received: by 2002:a1c:9d97:: with SMTP id g145mr124482wme.78.1633971356057; Mon, 11 Oct 2021 09:55:56 -0700 (PDT) MIME-Version: 1.0 References: <20211010230903.t7phnpribyvohlja@dalkati> <87wnmjgarm.fsf@nicolasgoaziou.fr> <87pmsbftg5.fsf@nicolasgoaziou.fr> In-Reply-To: <87pmsbftg5.fsf@nicolasgoaziou.fr> From: "Bruce D'Arcus" Date: Mon, 11 Oct 2021 12:55:44 -0400 Message-ID: Subject: Re: A minor suggestion about formatting citations To: Nicolas Goaziou Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::435; envelope-from=bdarcus@gmail.com; helo=mail-wr1-x435.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.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=1633971407; 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:dkim-signature; bh=pp3p7mY3VmR+8B/uj0mrBnCwa8BjZDbwJ4mIEIM4eYw=; b=cgrOYqRO3cyCfD/6XxKMhhHGZlB4XxoN2m/y+ovApmjJGVEc43Qj7Kvfg6C/AkxDeMoYax Hf5I8aID2Gywohr6rlWqp9bxF8GoBLZce5XVVd1wENlTdv8/Fwvjij2YjkYqFznCzgOJo6 T2HMNEUnwesEhqP6xpgfShh2Vn2SpkfNVSDd1Z6T6DjH3NwKAcstTWTGxWURR+4h5FVSuq 8q+s9Zjcq8iy6boxYwdQ7xJe2h1qQxCdVeSk6GiB2q9naDEA5zn0qPymqS6TQecF9KcWt6 zCu3k4oPh3hhjTmaRZu1PCOhtreW8QP5ILbzlpDGyvCE/B7rXkPkZyDtD0z0CA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633971407; a=rsa-sha256; cv=none; b=GK3c6bokOf1EIIALWtv9TgIxK+TLIEnMQr2r4UhWBt7eDdsp9PHQFdartxsjgINmIqvxS0 Wcg+u3XzCfmXB9ziOwGllrF0laK2MUQodmx4HeceWRTzyQRKjgV2nybFkeD9KMXeAAPRpD lDc4j8KH8kODAsLxV8RPiK+ub3rvEsoTXMpos1rMINt2PNRENyNsrAvQ6sA4u90iFSwpIi HMhCuY43YWItxKg+1/jn/xQSw/pzZOhZjMcFayZGOzpgukJGr87HvBGp1A+FZIaIicARIT ZmsAJcwhllVGWgU9B/tSYyy8SETgIP+HkQe8AhW2Xp+OcnUP3G7wPNDNJPfMgA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Fifzze3X; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: -1.32 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Fifzze3X; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: 7A0EB1C7FD X-Spam-Score: -1.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: mgV2AA4eCefI On Mon, Oct 11, 2021 at 11:54 AM Nicolas Goaziou wrote: > > Hello, > > "Bruce D'Arcus" writes: > > > On Mon, Oct 11, 2021 at 10:28 AM John Kitchin wrote: > >> > >> you should probably trim each key, and re-add spaces where you want them in the function that does these kinds of things. > > > > I realize that's an option, but something about that feels wrong to me. > > > > We're adding a single space as prefix, not because it's meaningful for > > citation purposes (there actually is no prefix, though org-cite > > interprets it as " "), but only so buffer formatting works correctly. > > 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. > > And then presumably code needs to be added to the export machinery to > > strip those empty affixes? > > I think they are ignored already. I didn't check though. I just checked, and believe you are correct. > > Am not saying the latter goal isn't important; just seems like the > > side effect isn't ideal. > > > >> Maybe that should even be controlled by a defcustom that allows 0-1 spaces. > > > > You mean in org-cite? I think that'd be my preference, unless there's > > a better solution to this issue. > > 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." 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? > 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? Bruce