From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Lawrence Subject: Re: Citation syntax: a revised proposal Date: Mon, 02 Mar 2015 18:53:21 -0800 Message-ID: <878ufeaj1a.fsf@berkeley.edu> References: <87k2zjnc0e.fsf@berkeley.edu> <87bnkvm8la.fsf@berkeley.edu> <87zj8co3se.fsf@berkeley.edu> <87ioezooi2.fsf@berkeley.edu> <87mw4bpaiu.fsf@nicolasgoaziou.fr> <8761aznpiq.fsf@berkeley.edu> <87twyjnh0r.fsf@nicolasgoaziou.fr> <87oaopx24e.fsf@berkeley.edu> <87k2zd4f3w.fsf@nicolasgoaziou.fr> <87egpkv8g9.fsf@berkeley.edu> <877fv6xfaq.fsf@gmail.com> <87twya2ak0.fsf@berkeley.edu> <87zj81aa97.fsf@nicolasgoaziou.fr> <87ioep2r6p.fsf@berkeley.edu> <87y4ngbgm7.fsf@nicolasgoaziou.fr> <87bnkbi61v.fsf@gmail.com> <87lhjfb0yv.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35786) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YScyD-00005B-AD for emacs-orgmode@gnu.org; Mon, 02 Mar 2015 21:54:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YScyA-0005nV-3Y for emacs-orgmode@gnu.org; Mon, 02 Mar 2015 21:54:05 -0500 Received: from mail-pa0-f53.google.com ([209.85.220.53]:34655) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YScy9-0005n1-UO for emacs-orgmode@gnu.org; Mon, 02 Mar 2015 21:54:02 -0500 Received: by paceu11 with SMTP id eu11so5862136pac.1 for ; Mon, 02 Mar 2015 18:53:58 -0800 (PST) In-Reply-To: <87lhjfb0yv.fsf@nicolasgoaziou.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Goaziou Cc: emacs-orgmode@gnu.org, John Kitchin Nicolas Goaziou writes: >> The first issue is that the parser includes trailing punctuation in >> =E2=80=9Cbare=E2=80=9D @key citations. So the following does not work a= s expected (the >> :key includes the period): =E2=80=9CThis was demonstrated most recently = by >> @Smith2015.=E2=80=9D I=E2=80=99m not sure what the right approach is = =E2=80=93 one option >> would be to say that keys can contain punctuation, but must end (and >> begin) with an alphanumeric character. > > I'll update the parser once there is a new syntax for keys. At the > moment, it is correct wrt syntax. Sorry, I may not have emphasized this enough, but in the grammar, I wrote: - A KEY optionally begins with `-', and obligatorily contains `@' or `&' followed by a string of characters which begins with a letter or `_', and may contain alphanumeric characters and the following *internal* punctuation characters: :.#$%&-+?<>~/ =20=20=20=20=20=20=20 The `internal' here was meant to express exactly what Aaron said: keys can contain punctuation, but may not end (or begin) with punctuation. Best, Richard