From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Lawrence Subject: Re: Citation syntax: Underscore MUST(?) be allowed in cite keys? Date: Mon, 09 Mar 2015 17:36:37 -0700 Message-ID: <871tkxzo16.fsf@berkeley.edu> References: <874mq0399a.fsf@gmx.us> <54F75222.8030805@gmail.com> <87pp8o1t9f.fsf@gmx.us> <87pp8o6nt9.fsf@berkeley.edu> <87fv9i9z8s.fsf@nicolasgoaziou.fr> <87bnk60zhc.fsf@berkeley.edu> <54FA9AA9.9070505@gmail.com> <87r3t05okc.fsf@nicolasgoaziou.fr> <87ioeci6f6.fsf@gmx.us> <87r3szk6q9.fsf@gmx.us> <87oao3yluf.fsf@berkeley.edu> <87k2yqyx55.fsf@berkeley.edu> <871tkyxgjg.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34682) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YV8Ai-0004J0-7h for emacs-orgmode@gnu.org; Mon, 09 Mar 2015 20:37:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YV8Ad-0002xK-3N for emacs-orgmode@gnu.org; Mon, 09 Mar 2015 20:37:20 -0400 Received: from mail-pa0-f50.google.com ([209.85.220.50]:35241) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YV8Ac-0002x4-Tc for emacs-orgmode@gnu.org; Mon, 09 Mar 2015 20:37:15 -0400 Received: by pabli10 with SMTP id li10so76784158pab.2 for ; Mon, 09 Mar 2015 17:37:13 -0700 (PDT) In-Reply-To: <871tkyxgjg.fsf@ucl.ac.uk> 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: Eric S Fraga Cc: emacs-orgmode@gnu.org, "Thomas S. Dye" Hi Eric and all, Eric S Fraga writes: > On Monday, 9 Mar 2015 at 09:05, Richard Lawrence wrote: > >> Another option would be to allow clause-ending punctuation in all keys, >> but introduce some kind of optional syntax to express `this key ends > > No, please no! I would say that the majority of my citations are at the > end of sentences... I would end up having to use this additional syntax > frequently. I'd rather use syntax to disambiguate the less frequent > cases and keys with punctuation are those (for me, at least). I feel the same as you do about this, so here's one more thought for the thread. How about this alternative? We keep the existing syntax for keys, which disallows key-ending punctuation, but we also allow a second style of key, in which curly braces surround the key name proper, like: @{Doe1999} Then we can conceivably allow any character at all between the braces, including punctuation (except `}', which is also a restriction on LaTeX keys). That means this type of key should be able to accommodate just about anything the future may bring. The opening `{' immediately after the `@' will make this type of key easy for the parser to distinguish from the first type, and the closing `}' makes the end of the key unambiguous with respect to following punctuation. Tools that insert keys from citation managers can check whether a key respects the brace-less syntax, and offer to insert it using the second style when it doesn't. Or they could be configured to always use this style, if the user prefers. And anyone who doesn't need to disambiguate keys from punctuation can use the brace-less style, which (in my opinion) is easier to read and type. What do people think? Best, Richard