From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/6404 Path: news.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: proposal for new metadata Date: Sat, 11 May 2013 15:53:13 -0700 Message-ID: <20130511225312.GA47417@Johns-MacBook-Pro.local> References: <20130510055148.GA43087@Johns-MacBook-Pro.local> <518E5CD6.9000205@gmail.com> <20130511224241.GC47226@Johns-MacBook-Pro.local> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1368312810 5741 80.91.229.3 (11 May 2013 22:53:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 11 May 2013 22:53:30 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDW7ZIEHTIIBBZMXXOGAKGQEABPG7MY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun May 12 00:53:29 2013 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ve0-f188.google.com ([209.85.128.188]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UbIfO-0002Ic-HK for gtp-pandoc-discuss@m.gmane.org; Sun, 12 May 2013 00:53:26 +0200 Original-Received: by mail-ve0-f188.google.com with SMTP id jy13sf1315262veb.25 for ; Sat, 11 May 2013 15:53:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=x-received:x-beenthere:x-received:received-spf:date:from:to:subject :message-id:references:mime-version:in-reply-to:x-pgp-key:user-agent :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-google-group-id:list-post :list-help:list-archive:sender:list-subscribe:list-unsubscribe :content-type:content-disposition; bh=xZZX/7VulLpv7j1clKzgrsvn3RlEf8Bp9H/86sOePZk=; b=Ep4A9LvuEcuCDvIeK/AKjm9+89js9th6WBWCwh25BLT8DhkiGW1BPnnfkLdOgbcj6D s45+PVhtbklTGFrYDG/5stDC+qVEG8NPdkAyvY2/IF53xFAsi3jkYd1Lvt6Iz6qt0D/t TxSFnhQdTneV1YSPadeyYKOSR7nhE7lcfCmsYSRQwAt///zKHPRjRtZ8epV9XM8a+J6M vyPXse1KZvUIVlJnXU1kwqdz/Zb2r9b//Tt/hTPVPJwjhqjyCehy4fiajSYNgHTylx59 N6pZPDC2IIOkSXGQ DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:x-beenthere:x-received:received-spf:date:from:to:subject :message-id:references:mime-version:in-reply-to:x-pgp-key:user-agent :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-google-group-id:list-post :list-help:list-archive:sender:list-subscribe:list-unsubscribe :content-type:content-disposition; bh=xZZX/7VulLpv7j1clKzgrsvn3RlEf8Bp9H/86sOePZk=; b=ZDfKg64mCuA+VagCRDMzm9aw9SXKLvHjpftsY3gkWnGsYLGEKxM+GRGLTo5yvvPPKJ u4ZKKXkW+U5qES+Z4ZqSw1WOF+8k6XSdskwcTn8Pg2Tzsey1Zd7o78PzT3UHBYKp6hXa CT0Uz0Nc4HeNm3RhymnA8REluUatCocLUIuXEpU9JrLMHGz5eplF0+6Ch+nD7bcLxsaZ 25XPJhBjWoAJRbibyZ/lMQbHbTOI+bMsouU/RQI5F8DO3PKASMcP645EKX1HTqnUpzMX VI+VVuBiL8zzX8THU8s5HoZ X-Received: by 10.50.50.138 with SMTP id c10mr942283igo.5.1368312805478; Sat, 11 May 2013 15:53:25 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.50.158.231 with SMTP id wx7ls1211117igb.5.gmail; Sat, 11 May 2013 15:53:24 -0700 (PDT) X-Received: by 10.68.137.71 with SMTP id qg7mr3986985pbb.5.1368312804937; Sat, 11 May 2013 15:53:24 -0700 (PDT) Original-Received: from cm01fe.IST.Berkeley.EDU (cm01fe.IST.Berkeley.EDU. [169.229.218.142]) by gmr-mx.google.com with ESMTPS id xz4si1054614pac.2.2013.05.11.15.53.24 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sat, 11 May 2013 15:53:24 -0700 (PDT) Received-SPF: neutral (google.com: 169.229.218.142 is neither permitted nor denied by best guess record for domain of jgm-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org) client-ip=169.229.218.142; Original-Received: from li55-134.members.linode.com ([74.82.3.134] helo=johnmacfarlane.net) by cm01fe.ist.berkeley.edu with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.76) (auth plain:jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org) (envelope-from ) id 1UbIfM-0001EW-3S for pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; Sat, 11 May 2013 15:53:24 -0700 Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 4AF7EBB866; Sat, 11 May 2013 18:52:57 -0400 (EDT) In-Reply-To: <20130511224241.GC47226-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org> X-PGP-Key: http://johnmacfarlane.net/jgm.asc User-Agent: Mutt/1.5.21 (2010-09-15) X-Original-Sender: fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 169.229.218.142 is neither permitted nor denied by best guess record for domain of jgm-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org) smtp.mail=jgm-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-Subscribe: , List-Unsubscribe: , Content-Disposition: inline Xref: news.gmane.org gmane.text.pandoc:6404 Archived-At: +++ John MacFarlane [May 11 13 15:42 ]: > +++ David Sanson [May 11 13 08:35 ]: > > I'm not sure how to think about overrides here, and maybe this is where > > a `-y` option starts to make more sense to me. > > Start with the simplest question: what happens with metadata within a > > document? Does later metadata override earlier metadata? The proposal > > suggests not, and that instead the later metadata gets added to the > > earlier metadata, so that something like > > ~~~ > > --- > > title: Our Book > > author: Laura Smith > > author: James Munoz > > title: Still Our Book > > ... > > ~~~ > > has two authors and two titles. Is it up to the template to figure out > > what to do with that? Or does pandoc keep track of some of the known > > metadata keys and treat them special? > > Well, here's how it would work with the original proposal, with > association lists. You'd get an association list with two > entries for "title". Sorry, I was wrong. You'd simply get one entry (the last I believe) for each duplicate. To get multiples, you'd need to use an explicit list. author: - Author One - Author Two