From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: Citation syntax: a revised proposal Date: Mon, 02 Mar 2015 21:34:04 +0100 Message-ID: <87bnkbrver.fsf@gmx.us> 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> <87twy39qt2.fsf@berkeley.edu> <87pp8rb1i3.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33239) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSX2j-0005hK-Kz for emacs-orgmode@gnu.org; Mon, 02 Mar 2015 15:34:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YSX2e-00009a-Ly for emacs-orgmode@gnu.org; Mon, 02 Mar 2015 15:34:21 -0500 Received: from plane.gmane.org ([80.91.229.3]:51829) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSX2e-00009H-F8 for emacs-orgmode@gnu.org; Mon, 02 Mar 2015 15:34:16 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YSX2a-0000Xg-7E for emacs-orgmode@gnu.org; Mon, 02 Mar 2015 21:34:13 +0100 Received: from 46.166.188.200 ([46.166.188.200]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 02 Mar 2015 21:34:12 +0100 Received: from rasmus by 46.166.188.200 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 02 Mar 2015 21:34:12 +0100 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: emacs-orgmode@gnu.org Nicolas Goaziou writes: > Richard Lawrence writes: > >> What's the next step here? Adding support for multiple references? >> multi-cites? `&'-keys? > > To support multi cites, we must first decide how the parsed will present > information, i.e., what are the properties in the following case > > [cite:pre; pre1 @k1 post1; pre2 @k2 post2; post] I was actually looking at this today and wondering why this was not supported. I think a citation object should always member of a citations object. So the above would be (citations (:begin n :end N :prefix pre :suffix post :citations '((citation (:key k1 :begin n1 :end N1 :prefix pre1)) (citation (:key k2 :begin n2 :end N2 :prefix pre2 :suffix post2))))) This makes it naturally to operate over one many citations. I don't know if this should be some sort of pseudo-object or what. Also, one issue I ran into when trying to get [@k1; @k2] working was that @k2 is recognized as an inline citation (which means that I probably did something wrong)... Of course, a quasi-tricky part (I think) is that [cite: pre @key post] should be (with no "global" :prefix and :suffix): (citations (:begin n :end N :citations '((citation (:key key :begin n1 :end N1 :prefix pre :suffix post))))) Which imply that citations are parsed from "the middle" and outwards. Nicolas: I wrote a patch for subtypes (with "/" as a separator as most people seemed to like that). Should I post it or will you take care of it eventually? I don't know if you have got a game-plan in mind? [I also have other outstanding patches, so I just want to put my limited Org-time where it makes sense]. Cheers, Rasmus -- There are known knowns; there are things we know that we know