From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/545 Path: news.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Multimarkdown Meta Data Date: Fri, 26 Nov 2010 11:43:16 -0800 Message-ID: <20101126194316.GA5350@protagoras.phil.berkeley.edu> References: <20101123054531.GB8500@protagoras.phil.berkeley.edu> <20101123190854.GA3948@darkstar> <3dc78109-9a0f-4d2c-90bd-1b2894945666@k13g2000vbq.googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1290800613 16210 80.91.229.12 (26 Nov 2010 19:43:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 26 Nov 2010 19:43:33 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncCO38oIeaEBDWm8DnBBoENXc3Ew-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Nov 26 20:43:29 2010 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-px0-f186.google.com ([209.85.212.186]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PM4Cc-000456-NM for gtp-pandoc-discuss@m.gmane.org; Fri, 26 Nov 2010 20:43:27 +0100 Original-Received: by pxi7 with SMTP id 7sf793089pxi.3 for ; Fri, 26 Nov 2010 11:43:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:received:x-beenthere:received:received:received :received:received-spf:received:received: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:list-post:list-help:list-archive :sender:list-subscribe:list-unsubscribe:content-type :content-disposition:content-transfer-encoding; bh=hZBDElcyWYICmlKSeuF/NGvX1SxYa3DyYRDInvTL7ks=; b=T9DamgwsvL2tZq+HEu9vwc8f1EgcQsMbhx9AMEsdSkMtOmJdXoM9XxzhgnFq8a6DAl +m+YbTvkHcwD9Hb3KpPLSyVaD1G3hkJtu9qt4NZ0deSgUwe1dvq2o0c2B0NwW2H29dje Vytr12J7K3krYsoAb8IczkZdccMAqsE69yChI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-beenthere: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:list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type:content-disposition :content-transfer-encoding; b=0MA4Uwt1OMD2kxsfIT6CXxEkxlcz0NK/z/9myzCYIAQQgJtZupeMz5IMALz1U8lt90 7ZUGDpk2Ax8I70gFasZ5RaH1H65cKeMYUU8L49eASQ5ZyeXNTgWujwsD4/gKWE4DUP4z i69zNmd91hU3eiRQ3GR98HK5JCV/amzfxqgpY= Original-Received: by 10.142.150.5 with SMTP id x5mr93318wfd.62.1290800598144; Fri, 26 Nov 2010 11:43:18 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.142.2.41 with SMTP id 41ls4751807wfb.0.p; Fri, 26 Nov 2010 11:43:17 -0800 (PST) Original-Received: by 10.142.231.19 with SMTP id d19mr1717926wfh.24.1290800597721; Fri, 26 Nov 2010 11:43:17 -0800 (PST) Original-Received: by 10.142.231.19 with SMTP id d19mr1717924wfh.24.1290800597671; Fri, 26 Nov 2010 11:43:17 -0800 (PST) Original-Received: from cm01fe.IST.Berkeley.EDU (cm01fe.IST.Berkeley.EDU [169.229.218.142]) by gmr-mx.google.com with ESMTP id p40si2521641wfc.6.2010.11.26.11.43.17; Fri, 26 Nov 2010 11:43:17 -0800 (PST) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 169.229.218.142 as permitted sender) client-ip=169.229.218.142; Original-Received: from protagoras.phil.berkeley.edu ([128.32.137.142]) by cm01fe.ist.berkeley.edu with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (auth plain:jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org) (envelope-from ) id 1PM4CS-0007UZ-54 for pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; Fri, 26 Nov 2010 11:43:17 -0800 Original-Received: by protagoras.phil.berkeley.edu (Postfix, from userid 1000) id 57F7E1317C2; Fri, 26 Nov 2010 11:43:16 -0800 (PST) In-Reply-To: X-PGP-Key: http://johnmacfarlane.net/jgm.asc User-Agent: Mutt/1.5.20 (2009-06-14) X-Original-Sender: fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 169.229.218.142 as permitted sender) smtp.mail=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: 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:545 Archived-At: +++ Bruce [Nov 26 10 11:02 ]: >=20 >=20 > On Nov 26, 12:23=A0pm, dsanson wrote: > > I'd vote for embedded YAML, delimited by '---' and '...', as gitit > > does (is that a YAML standard? a quick glance at the YAML spec > > suggests it is). Consider: sometimes people start sentences with a > > word followed by a quote. Starting with "Date:" would be unusual, but > > the general case not so much. Ordinary writers shouldn't be required > > to know that they need to add some extra formatting to avoid > > ambiguity: that onus should be on the person who wants to write > > metadata. > > > > I'd want the data format and parser to be flexible enough to allow > > markdown in the data, e.g., footnotes and emphasis and citations and > > links. I'd also want it to be flexible enough to allow multiple block > > elements in the data. And I'd also want it to be flexible enough to > > allow Boolean switches and other stuff: > > > > --- > > title: =A0 A *really great* title^[with acknowledgments] > > authors: > > =A0 =A0 - =A0 =A0 David Sanson > > =A0 =A0 - =A0 =A0 Foo Bar > > status: =A0in review > > comments-enabled: false > > abstract: | > > =A0 =A0 This is a paper that makes three points: > > > > =A0 =A0 + =A0 =A0First point > > =A0 =A0 + =A0 =A0Second point > > =A0 =A0 + =A0 =A0Third point > > > > =A0 =A0 The first point shows that @item1 [p. 22] is mistaken.^[But see= my > > discussion in @item2.] > > ... > > > > I currently use multiline markdown-rich metadata in jekyll to specify > > excerpts of long posts, to be used in post index templates. I've grown > > fond of the power it enables. > > > > I don't know how this interacts with the question raised in previous > > threads about metadata type. I suspect it is a mess. > > > > Another reason to go with YAML is the possibility of embedding other > > kinds of structured data. For example, people have suggested that it > > would be nice to be able to embed the name of a specific bibliography > > file in metadata. But go a step further: imagine the ability to embed > > a YAML representation of the MODS bibliography data needed to parse > > all the citations in a paper. (Is YAML expressively powerful enough to > > do this? Can this be implemented via citeproc just by writing an > > appropriate CSL file that generates a YAML "works cited" list?) And > > suppose then that pandoc could read this data directly from the the > > markdown file itself and pass it as XML to citeproc-hs, so that you > > have completely self-contained file: good both for portability and for > > archival purposes. >=20 > FWIW, the CSL community has been gravitating towards a common input > format based on JSON (e.g. one that closely parallels the CSL model), > which is a more widely used standard that largely overlaps with YAML. > I believe citeproc-hs supports this already, or will soon. I like David's suggestion of YAML; that's where I'm leaning. YAML is a superset of JSON, so you could include a JSON bibliography in the YAML metadata without change, I believe. YAML data structures are pretty much parallel to JSON structures, as I understand things, only the syntax is less restrictive. I think it's important to make the metadata as easy as possible to write and read, so it's nice to be able to write title: My title instead of "title": "My title" etc. John --=20 You received this message because you are subscribed to the Google Groups "= pandoc-discuss" group. To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to pandoc-discuss+unsubscribe@go= oglegroups.com. For more options, visit this group at http://groups.google.com/group/pandoc= -discuss?hl=3Den.