From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id wJAuK1lfpmFefwEAgWs5BA (envelope-from ) for ; Tue, 30 Nov 2021 18:28:57 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id UIgFJ1lfpmGMWAAAB5/wlQ (envelope-from ) for ; Tue, 30 Nov 2021 17:28:57 +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 4EAECE55A for ; Tue, 30 Nov 2021 18:28:57 +0100 (CET) Received: from localhost ([::1]:50834 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ms6w4-0000Kd-Fh for larch@yhetil.org; Tue, 30 Nov 2021 12:28:56 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39548) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ms6um-0007iK-09 for emacs-orgmode@gnu.org; Tue, 30 Nov 2021 12:27:36 -0500 Received: from [2607:f8b0:4864:20::631] (port=44002 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 1ms6uk-00052o-81 for emacs-orgmode@gnu.org; Tue, 30 Nov 2021 12:27:35 -0500 Received: by mail-pl1-x631.google.com with SMTP id m24so15471769pls.10 for ; Tue, 30 Nov 2021 09:27:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=user-agent:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=NdG71DDQ3kHLNDXA3cR4NIh9c0ubfi3xeH4irlYksHs=; b=mszoUgHT8FdLF2Sox9XIxT1+ZNrnZuiEGdnAspaA2vwQjHXqW2yG8NeYftMX0K9eFT AFo8yNPsWxpIUay8+LVClwCNA4PxTV9L54YYj9/SuVoQ68oFyhOHhU5mNVJ+ERcGbAGP 7m7I4NzkawEjeAQrehjIQF3Kn1Nre56oNNsxkjFpEG80w8J89KG7waoMapk+Dztcg2Iu 6x+8Pb+5zoCwq6nDBXvzAVdXRQUrkZy0H+E5sWlf6hu6Zrvr+Jkq87Vp3wkfYiQPj66L diaHxbr3ULfQIssTg7rOP0XFbCO0FLkxUa4ro+DsFrjV7SmOylIRBYLfz70KbNQWgylG BRig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:user-agent:from:to:subject:date:message-id :mime-version:content-transfer-encoding; bh=NdG71DDQ3kHLNDXA3cR4NIh9c0ubfi3xeH4irlYksHs=; b=g/usgFsmEvlmHFZ2Y5jFSKq6oYrAmhBUJXiKwxcrUQwXczAfBhU8Jsa6OpMT8HdGip 5nS4UGwaQpdGST3sOzUlprtI3HGUcnGesf4qdQBOaGR2PJCLvFLT7lZt/9Nc0O/F19Zh cvPPckpJ6bnJQ73EeJVZoigpv6OxjQeoVyn54E2TqAhS0DXXtYzP+n1ueAWyfWwSgllS Bjrlr8++ybIYfmzyH68J9uurVbbxDBnyfH106N8S+RWac/v5BS4pIj48oY71AZ5UQVU5 VN0XxDYiflvzngU4jrPzDrGu/hk0qMI7Ug1Wt9X85HRVXFKvwHfLhocSGB/ZKhD20Xzx PueA== X-Gm-Message-State: AOAM533yOa+WkpNBTrVV10UQMZiNrHcQOjfj6dSk+m66kIAt7Z55KOMq 522ZmHAj8YOZkXh7e8VVuMGC1811nfw= X-Google-Smtp-Source: ABdhPJwJAp8ZmesvcEURn0giazfxDQq5QD6347sEikotMmuC0xX6KbzIRGUKYKCV4GKyj/SiByAMDQ== X-Received: by 2002:a17:90b:3889:: with SMTP id mu9mr380758pjb.160.1638293252496; Tue, 30 Nov 2021 09:27:32 -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 t7sm3230240pjs.45.2021.11.30.09.27.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Nov 2021 09:27:32 -0800 (PST) User-agent: mu4e 1.6.9; emacs 28.0.50 From: Timothy To: emacs-orgmode , Nicolas Goaziou Subject: Formal syntax for org-cite Date: Wed, 01 Dec 2021 01:21:30 +0800 Message-ID: <871r2xr1tr.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: -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: , 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=1638293337; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=NdG71DDQ3kHLNDXA3cR4NIh9c0ubfi3xeH4irlYksHs=; b=asPuF5BMooCwneb7SEJKTlERoxn2UJpair7dV2bilIZYE+WwhXj9/BwMa0cAqDmGnbBn2z S9j2GvdQQeWxlbbWtXU0iwONCl6LSOKacinOAaDFlD5XNjH7glXj5iVVmhLw9Yr4PyxESh ApNrrGzZf9ASam7jT+dbR8Q69KcDCfWRwuXdYBaplEHOhxL72BYHh00CWxmgQFAfTD8t3C arlHJx/5IuzrJ0x8nN1W845Rbdei11ST/W8K/Ab2WCJXfNKoPXkyWUmtMIOtGL8431447P R+BMfqAfZT5MYLmLCDgCcmAbI5Uzj4jv//W+bsEV/msUez4Tm9rPwFif/gWB9w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638293337; a=rsa-sha256; cv=none; b=brP7Abar2ZWpavVRzqfhHe/8T7VpYQiqxD6teRLNWPUAIRMHSEwettfzdy4/Id3OBDQjQN Mg9u1wBxeSOxwEOMGBw1y/UKhoiE9Z/IQUOjZfsZE5hdSkvTxjJcAUVklErMc5F5b/pBpw OpGnKoDFCFnWGLjRRWd/NL59vHieT/dDAOYCO/A/kv9Hx6UxEimBqyXbP2T+XdCRI9zKCS CxPUsOUXUOMWmWy1S4x1RAJ3RM9BPQOachY3yPFGN8gnDSlRaXyIbCLx7/Zj5DBL2XnSBU ehy7VKPbJnjgx9D3wkpoXoqngBRzd+Pzcp1lbKZ3wZrkNpqGTKAdkztWp5xlMQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=mszoUgHT; 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.11 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=mszoUgHT; 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: 4EAECE55A X-Spam-Score: -4.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: jrrr+8qV1AgF Hi All (and Nicolas in particular), There's recently been a little bit of progress on the Pandoc issue for org-cite support (https://github.com/jgm/pandoc/issues/7329#issuecomment-982805313), and the maintainers are now asking if there is any specification for org-cite syntax. Looking at https://orgmode.org/worg/dev/org-syntax.html, there isn't, and so I've tried to come up with a draft. Most of it was worked out from what I know of the syntax combined with looking at org-element.el, however I'm not sure what character class applies to the global and key prefix/suffix components. The draft: Citation syntax is currently not documented, but from the implementation it looks something like this: #+begin_example [cite CITESTYLE: GLOBALPREFIX KEYCITES GLOBALSUFFIX] #+end_example The only mandatory component, =3DKEYCITES=3D consists of one or more instances of the pattern, separated by semicolons. #+begin_example KEYPREFIX @KEY KEYSUFFIX #+end_example =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, =3D%=3D, or =3D~=3D. I have not yet confirmed what =3DKEYPREFIX=3D and =3DKEYSUFFIX=3D may conta= in, but as a starting point, any of the characters allowed in =3DKEY=3D except =3D@=3D plus whitespace would seem fairly safe. =3DKEYSUFFIX=3D must start = with a whitespace character to be able to be differentiated from =3DKEY=3D. =3DCITESTYLE=3D consists of a main =3DSTYLE=3D and any number of =3DVARIANT= =3D=E2=80=8Bs (including zero), prefixed by forwards slashes in the following pattern #+begin_example /STYLE/VARIANT/VARIANT/VARIANT #+end_example =3DSTYLE=3D and =3DVARIANT=3D can be made of any alphanumeric character, = =3D_=3D, or =3D-=3D. =3DGLOBALPREFIX=3D and =3DGLOBALSUFFIX=3D can contain the same characters as =3DKEYPREFIX=3D and =3DKEYSUFFIX=3D, however =3DGLOBALPREFIX=3D must end wi= th a semicolon, and =3DGLOBALSUFFIX=3D must start with a semicolon. "cite" and =3DCITESTYLE=3D, =3DKEYCITES=3D and =3DGLOBALSUFFIX=3D are /not/ separated by whitespace. Neither are =3DKEYPREFIX=3D, =3D@KEY=3D, or =3DKEY= SUFFIX=3D separated by whitespace. Do let me know what you think :) Timothy.