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 cBmfHXNpqGGFeQAAgWs5BA (envelope-from ) for ; Thu, 02 Dec 2021 07:36:35 +0100 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 4IhVGXNpqGGsMQAAB5/wlQ (envelope-from ) for ; Thu, 02 Dec 2021 06:36:35 +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 DE23D15359 for ; Thu, 2 Dec 2021 07:36:34 +0100 (CET) Received: from localhost ([::1]:57084 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1msfhp-0003GW-VM for larch@yhetil.org; Thu, 02 Dec 2021 01:36:33 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60402) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1msfg5-0003FA-56 for emacs-orgmode@gnu.org; Thu, 02 Dec 2021 01:34:45 -0500 Received: from [2607:f8b0:4864:20::530] (port=45862 helo=mail-pg1-x530.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1msfg3-0007EA-Cl for emacs-orgmode@gnu.org; Thu, 02 Dec 2021 01:34:44 -0500 Received: by mail-pg1-x530.google.com with SMTP id 133so7937608pgc.12 for ; Wed, 01 Dec 2021 22:34:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=references:user-agent:from:to:cc:subject:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=qZCH4lqMDbntlaKAoCQT77I9sO2FJNWhs1b35Bp8brU=; b=iG3T2uLmxZ5gJkOCGYDrxaKJo92VNqmtalYpL4BuKDFAC9lNnnn+R1o2Rg2/zmxI3h nXsW8Yxq4NtJzFJSveTAQg8F+r582/mEvS9vSE2YZp0D6uSALqpbyGyWKj1PoDQs8y13 oEu8xLqnu7GPKDwFlix/OIumDuVVY+QsZvOaN4Z6uBTzKH8tqpY6BqQdW4qiqZCndNnC aL6UBh8hMDwMxOy0sqtsvV9WVsiUWCI6QILeLfOz9WMlYj1VVDZIt/1oV4TniMcS0x91 RQTD38MCojwcwVBjAVciXYbw52/86ImJ50Ew8THo5WPU/E81slmcJaAlZtta07M6l+Vv cLqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:references:user-agent:from:to:cc:subject:date :in-reply-to:message-id:mime-version:content-transfer-encoding; bh=qZCH4lqMDbntlaKAoCQT77I9sO2FJNWhs1b35Bp8brU=; b=x/yKbPF7Xr6iJeZVmCQZ674iUzhSULVa4ZLxNee/gLmX8p/13Q5Hw0HoavuAlhxGoy 4qPGI7Ovxo3Qidk1K8TMCpeZqtvuSFm2g8kKDxQGQ529fSY6TPdENHe8wmU9doh8D15I WN/D0Z7DbiUTwqLNVq3VVk1ithR1AMlNW4B7A2PCgpcUdZo7auB/GnoFRvXw0vtWmyRq TWFKZdPoKXK72BfYX06CE4XLBtARK2hErFHIdt14YrUnfDrN4J56yzwdzootX/HRSN0z kA/rqWxe/bKfrJdzdclad5jSDsZYYrmHqDyE+h2aLY3SpdOx7zv/T5OnlM/bByBmwXQq sCtw== X-Gm-Message-State: AOAM530QC+MUuFzk+ssdz0EkE75N5YDE/+LgWIZOY21deqe4xjHyR4ZZ cOhR42HAh+d8RRkVC0YsFsQ= X-Google-Smtp-Source: ABdhPJyff2+CtfErmOIWJ2veZ2lJkfiEDNNBkJNxF1ms+lqMoAHfkGE5amDx4paWsWfmPKMKLQrpmw== X-Received: by 2002:a63:7c2:: with SMTP id 185mr8175229pgh.406.1638426881896; Wed, 01 Dec 2021 22:34:41 -0800 (PST) Received: from localhost (61-245-128-160.3df580.per.nbn.aussiebb.net. [61.245.128.160]) by smtp.gmail.com with ESMTPSA id j16sm1475908pga.32.2021.12.01.22.34.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Dec 2021 22:34:41 -0800 (PST) References: <871r2xr1tr.fsf@gmail.com> <87y254zcr1.fsf@nicolasgoaziou.fr> User-agent: mu4e 1.6.9; emacs 28.0.50 From: Timothy To: Nicolas Goaziou , Tom Gillespie Subject: Re: Formal syntax for org-cite Date: Thu, 02 Dec 2021 14:26:40 +0800 In-reply-to: <87y254zcr1.fsf@nicolasgoaziou.fr> Message-ID: <87r1avplaa.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::530 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::530; envelope-from=tecosaur@gmail.com; helo=mail-pg1-x530.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: , Cc: emacs-orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1638426994; 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=qZCH4lqMDbntlaKAoCQT77I9sO2FJNWhs1b35Bp8brU=; b=Y8nLEJ36Nq+0oDUHFcZIBnq1946zOEPbzUyYmiw7VvIQfODRk8uJQUoaJahf31MDYGo5P3 +QGx+K13c/ZqFAFqTEeum8dEUJLnRMoX41IlUOyU3F6OaLtHPZj9iyJvvLEh8Zkl7dT9bL H6mm5wGF4/lyFcX0RTZgo/1DVbxPvlZDAdSMwj0N1Ke2cqryzRb+gVjtx3TJpapvMqlqVJ JUdQ0x4CRQZa+wfdc7C4dUGERlm9SwicxA6EH/SNxR4Qnkm7ixLStNRWXPXRQc+kBUSFES xSNsGucDKRsYAb2nJV9uRTIweVeXspRicyG+eWhNvpb+TJhYi8W0J78+jfsN5Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638426994; a=rsa-sha256; cv=none; b=OPioPKcytBE+FyEoOPXyJ8nf2WZOIiCWn9MrxsF6tRVLi0ohoJrJIvvMdsCAiELqCpzStV e65YCYYW2guqQ/vqsFs0LA3lakjgj2IKkTC4uaoFaPBMAJ1MDHVDuuf4DeL2879zHvng8G IQX+ODxDkFFH0ItAoEx2BkHoHV7VYWtdWvYq4hbJ/mJGOzkUSfU94ZdJWYZ7g9PZMC2HBn o4rG2W6hOBvAc95K/XvV1nY//Iw9s4FyflfDHAGFqO5vr7MD/dCca3svrl1OOruNMoQaFz JMfZntbKq9w2PVwaY+rDAp0JWLG0yVSNYYscRUrPIfPMhMa98rbip06IG4zN/g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=iG3T2uLm; 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" X-Migadu-Spam-Score: -4.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=iG3T2uLm; 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" X-Migadu-Queue-Id: DE23D15359 X-Spam-Score: -4.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: jsLznBk54dtS Hi Nicolas, Thanks you for your feedback and clarifications. They were most helpful. Thomas, I've also made a few tweaks based on your reply. I've revised the draft in light of your comments, see below. Citations follow the pattern #+begin_example [cite CITESTYLE: GLOBALPREFIX KEYCITES GLOBALSUFFIX] #+end_example where "cite" and =3DCITESTYLE=3D, =3DKEYCITES=3D and =3DGLOBALSUFFIX=3D are= /not/ separated by whitespace. Whitespace after the leading colon or before the closing square bracket is not significant. All other whitespace is significant. The only mandatory component, =3DKEYCITES=3D consists of one or more instances of the following pattern, separated by semicolons, #+begin_example KEYPREFIX @KEY KEYSUFFIX #+end_example where =3DKEYPREFIX=3D, =3D@KEY=3D, and =3DKEYSUFFIX=3D are /not/ separated = by whitespace. =3DKEY=3D can be made of any word-constituent character, =3D-=3D, =3D.=3D, = =3D:=3D, =3D?=3D, =3D!=3D, =3D`=3D, =3D'=3D, =3D/=3D, =3D*=3D, =3D@=3D, =3D+=3D, =3D|=3D, =3D= (=3D, =3D)=3D, =3D{=3D, =3D}=3D, =3D<=3D, =3D>=3D, =3D&=3D, =3D_=3D, =3D^=3D, =3D$=3D, =3D#=3D, =3D%=3D, or =3D~=3D. =3DKEYPREFIX=3D and =3DKEYSUFFIX=3D are optional and can contain any charac= ters other than a semicolon (=3D;=3D), so long as square brackets are balanced. =3DKEYPREFIX=3D cannot contain any subsequence that forms a =3DKEY=3D. Hence, a minimal citation is formed by the pattern ~[cite:@KEY]~. =3DCITESTYLE=3D consists of a main =3DSTYLE=3D and optionally a =3DVARIANT= =3D=E2=80=8B. Both the =3DSTYLE=3D and =3DVARIANT=3D are prefixed by a forwards slash. #+begin_example /STYLE/VARIANT #+end_example =3DSTYLE=3D and =3DVARIANT=3D can be made of any alphanumeric character, = =3D_=3D, or =3D-=3D. Additionally, =3DVARIANT=3D can itself contain forward slashes (= =3D/=3D) . =3DGLOBALPREFIX=3D and =3DGLOBALSUFFIX=3D can contain the same characters as =3DKEYPREFIX=3D and =3DKEYSUFFIX=3D. In the same manner as instances of the =3DKEYCITES=3D pattern, =3DKEYCITES=3D, =3DGLOBALPREFIX=3D, and =3DGLOBALSU= FFIX=3D must be separated by semicolons. -- Timothy