From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Citation syntax: a revised proposal Date: Mon, 02 Mar 2015 23:17:01 +0100 Message-ID: <87h9u3avtu.fsf@nicolasgoaziou.fr> 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> <87bnkbrver.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36134) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSYd6-0008JY-EM for emacs-orgmode@gnu.org; Mon, 02 Mar 2015 17:16:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YSYd1-0002Wr-59 for emacs-orgmode@gnu.org; Mon, 02 Mar 2015 17:16:00 -0500 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:54629) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSYd1-0002Rs-05 for emacs-orgmode@gnu.org; Mon, 02 Mar 2015 17:15:55 -0500 In-Reply-To: <87bnkbrver.fsf@gmx.us> (rasmus@gmx.us's message of "Mon, 02 Mar 2015 21:34:04 +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: Rasmus Cc: emacs-orgmode@gnu.org Rasmus writes: > I was actually looking at this today and wondering why this was not > supported. Not enough specifications. > 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))))) OK. However mixing `citations' and `citation' is confusing. I'd rather keep the outer one as `citation'. What could go inside? Maybe `cite'? Moreover, [cite:@key] will be parsed as [citation (:begin n :end N :whatever '((whatever (:key key :begin n1 :end N1 :prefix pre1))))] Is that correct? > 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)... [@k1; @k2] ? This is unspecified. [@k1] is a shortcut for [(cite):@k1], nothing more. Anything more complicated should go in a [cite:...] object. > 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. I don't see any ambiguity here, since semi colons are forbidden in PRE and POST. > 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 didn't add subtypes because we didn't reach a consensus on it. I suggest to wait until everybody realizes subtypes are the superior choice. Regards, -- Nicolas Goaziou