From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id GKPgGIRuzWEwCQEAgWs5BA (envelope-from ) for ; Thu, 30 Dec 2021 09:32:04 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id CM6RFYRuzWFFRwAAauVa8A (envelope-from ) for ; Thu, 30 Dec 2021 09:32:04 +0100 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 F2954295CA for ; Thu, 30 Dec 2021 09:32:03 +0100 (CET) Received: from localhost ([::1]:56388 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n2qqx-0004oe-6S for larch@yhetil.org; Thu, 30 Dec 2021 03:32:03 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34802) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2qpc-0004n8-Nh for emacs-orgmode@gnu.org; Thu, 30 Dec 2021 03:30:40 -0500 Received: from [2607:f8b0:4864:20::631] (port=40673 helo=mail-pl1-x631.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n2qpa-0008Qq-PW for emacs-orgmode@gnu.org; Thu, 30 Dec 2021 03:30:40 -0500 Received: by mail-pl1-x631.google.com with SMTP id l15so2978641pls.7 for ; Thu, 30 Dec 2021 00:30:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=references:user-agent:from:to:subject:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=EtLgdRKj3XzQcl/+uwp/oPbOEipcnHWM8bmvaxCVSws=; b=FpM5A0YRWjG8amd/kuYb95EIUmuup4ScdyV3iU7mZVD1Xd0KH2ED31uFZhewBlSpF1 U0bDn39a9WGbSiSmkEzgIfbZE01g3GytlpR8zTkz/R5+3gy7q1T7e4rRUkzZXch1+Ts/ uVg36Ep2g9kY7qQw8V5Hm1Ew95dSfQU4vqYqn6k7CWpzrphMR9MX56AeveEeQ8g90JDx ItGoL+j1tgTHR/w58bVv6Og1OMTWCMg0gJRH2bsXfPquVBWxmfbx31QQ22WA7tWSXVZC 28ABbhGKnHKcPOV1n+dK+xjTxHb+PBKP6O2VZUGh+QZhXW98gbPOKf+8libuLjnpH9pB w26w== 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:subject:date :in-reply-to:message-id:mime-version:content-transfer-encoding; bh=EtLgdRKj3XzQcl/+uwp/oPbOEipcnHWM8bmvaxCVSws=; b=b9irTk4jC9Mw0R+a6f1BdDbrCX6G8zU4om0pnn+Mv7HTIw0RvmQ0/lGgpuDzrrANx1 /OapCOWjJv3WgeSFmd6Kf8DRJ68Ppt2F7qt5Vi6Mr8p6fojgyXJstn8LFSMPHccH08Qw upj2DqKHaBzcHMyBQ49+27A65c3BjNWyqoDQHYhGlP3Syv67AY0V+y5gDtj0nMdk/1YU h/DwlTHk1c4ki+qZ7WxRNbbNB0ojEPdfCsCpR/M7xw8mCcG64H1TDe0V5+EkDBSgeJV5 pg7IHzghn5m87SKJP4e2bDSFRihK+nfTnNFVZ3Qq46UHEcQBwDXUZZlJBJKt0AKGL41k EBWw== X-Gm-Message-State: AOAM530QigAI3wUOzpus9UjBA8byiYp6WwCLeF0S0kChmc9Apux52wm3 WVBct5Yl+VNTQMOjnpssGxlOcSv3uQU= X-Google-Smtp-Source: ABdhPJyIsYcVtKw669mDpveIZmhQUNs0K5Wqv/S0/Nlb4VYizB40ADcRS/eMUHUDLkv8kKr7Sau6CQ== X-Received: by 2002:a17:90b:1a88:: with SMTP id ng8mr36736913pjb.180.1640853036233; Thu, 30 Dec 2021 00:30:36 -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 h22sm21753390pfv.1.2021.12.30.00.30.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Dec 2021 00:30:35 -0800 (PST) References: <871r2xr1tr.fsf@gmail.com> User-agent: mu4e 1.6.10; emacs 28.0.90 From: Timothy To: emacs-orgmode , Nicolas Goaziou Subject: Re: Formal syntax for org-cite Date: Thu, 30 Dec 2021 16:27:58 +0800 In-reply-to: <871r2xr1tr.fsf@gmail.com> Message-ID: <87tueqqytz.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::631 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::631; envelope-from=tecosaur@gmail.com; helo=mail-pl1-x631.google.com X-Spam_score_int: 6 X-Spam_score: 0.6 X-Spam_bar: / X-Spam_report: (0.6 / 5.0 requ) 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, 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: , 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=1640853124; 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=EtLgdRKj3XzQcl/+uwp/oPbOEipcnHWM8bmvaxCVSws=; b=j4SXqAKRkhj8D4ploLKbS+Jn2xkPyUhe8rdDEP2QxmVxRPTiYyTXEc5Hbw62KZClfudvHR q9GtiIPzxT2ZBDy5/nVa385Yz2FzofQJYyW+5j632MWrXHKIflUVt52vnf1nx1lqmVCtZu VF169FyiCWAwi+BXngKtNEPOFYzeVGozNSGkGSnoQsLxCa8DyWMOomsaSo4u19+pa8DKY+ CVrlftbzop5F437v9SQA7Z0cfBVglRC/5JufaDtR3AslTyuCmeDHiyzitnj9nCWwPkuzrD 0xIvNXPEt5sEqGXnBktFVjVcbXcvE+sAv/Q38P+M6Er+zviuwurfawzlhBs3JQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640853124; a=rsa-sha256; cv=none; b=ZLX16KPFHFE2Rh/JalPgkQUaiaPoXaDfg1QqN6eiqjg5Szs2SwezKhewiDLIhq7j6hABch mrY2Atzi+Ewv0eXhg5xtI5mO3TpInoT5Rh/Ed6qH/Pz39J8Q6V2qxOk8cMGX84U99E5tnv ABrWVHUp7Ny3K7MvI5w5FzsNaM+bw01xeEftaNOffPKAEaLFvvAFjlTNBowL8YjIAhzRzE aqWf8coLGSxHXatV9u/6xgm4pl7CuaGFKjmmkZB9P5H6bEDyjZFtyN7Tj6r1Jn79lYKuj5 9ZyKYnxqNUV8f0GRQcYRAu/rMZ2tImym4/wlqGA7T2kHWPNeiL+9bmQOkDVNKg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=FpM5A0YR; 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: -6.07 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=FpM5A0YR; 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: F2954295CA X-Spam-Score: -6.07 X-Migadu-Scanner: scn0.migadu.com X-TUID: Wp7epIQ5AvhG Hi All, I've been away for a bit, but now I'm back and getting back into things =F0=9F=99=82. For starters, I'm thinking we may as well put a description o= f the citation syntax into org-syntax. I'm still interested in more/broader changes to improve the clarity and specificity of org-syntax (and have had some more ideas on that front), but we may as well start by adding this missing section. I think my current version resolves all the comments made so far, see below in case there's anything else that jumps out as needing changing. The draft v3 follows: ----- 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 instan= ces 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 all square brackets are balanced. =3DKEYPREFIX=3D cannot contain any subsequence that forms a =3DKE= Y=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=E2=80=8B. Additionally, =3DVARIANT=3D can itself contain forward sl= ashes (=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. ------ Let me know if this looks alright. All the best, Timothy.