From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/540 Path: news.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: pandoc/citeproc issues: multiple bibliographies, nocite, citeonly Date: Wed, 24 Nov 2010 23:42:40 -0800 Message-ID: <20101125074240.GC12387@protagoras.phil.berkeley.edu> References: <20101121193229.GB25657@protagoras.phil.berkeley.edu> <4CE9AABB.1070705@informatik.uni-marburg.de> <4CEC6A61.1000309@trizeps.ch> <20101124033315.GC25133@protagoras.phil.berkeley.edu> <20101124050631.GA28014@protagoras.phil.berkeley.edu> <20101124205114.GB23284@eeepc.istitutocolli.org> 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 X-Trace: dough.gmane.org 1290671047 1451 80.91.229.12 (25 Nov 2010 07:44:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 25 Nov 2010 07:44:07 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncCO38oIeaEBDzprjnBBoE7xUMdA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Nov 25 08:44:03 2010 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-pv0-f186.google.com ([74.125.83.186]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PLWUs-0000Uf-K5 for gtp-pandoc-discuss@m.gmane.org; Thu, 25 Nov 2010 08:44:03 +0100 Original-Received: by pvb32 with SMTP id 32sf270505pvb.3 for ; Wed, 24 Nov 2010 23:44:01 -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; bh=onEqVseHUWZwyyI/YAzaBYPd6V2dkliw73KVIYnGrso=; b=PWx3QR0JphwyTuXYJJmMDdWpkQZGc44DlFrAqt7XxQA0y+lnxXwlOIZ0Y7ZeyaN4BJ ssVV63+YjF6cu0RmwnETU3jJ8QLk+6oHFpSs/hnB2GF5m755OMAWNncEwuV7RWbdN4Tk JBUxeSQ+SyY7lPjdRgUecNIwhQNiq5El0f0m8= 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; b=YalFv5Aooo68X5rwyVRZTr07NAnaIyoo2cq0NNuQpKylV4cEdA9LiPmTIQKJJS3Hqw FpReqxIXeiOfnNkZYBP8COcbyeOI8KJmXI9krSieTeA7Wnh+V/b7X477Cyl95JcQUXdV OALnrdWYEACrTEIJf311cmaVp0wiy9lwFK3wk= Original-Received: by 10.143.26.32 with SMTP id d32mr20753wfj.16.1290670963832; Wed, 24 Nov 2010 23:42:43 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.142.2.41 with SMTP id 41ls2382923wfb.0.p; Wed, 24 Nov 2010 23:42:42 -0800 (PST) Original-Received: by 10.142.216.16 with SMTP id o16mr302164wfg.40.1290670962080; Wed, 24 Nov 2010 23:42:42 -0800 (PST) Original-Received: by 10.142.216.16 with SMTP id o16mr302163wfg.40.1290670962048; Wed, 24 Nov 2010 23:42:42 -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 p40si559289wfc.6.2010.11.24.23.42.41; Wed, 24 Nov 2010 23:42:42 -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 1PLWTY-00068U-4P for pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; Wed, 24 Nov 2010 23:42:41 -0800 Original-Received: by protagoras.phil.berkeley.edu (Postfix, from userid 1000) id 3F2851317C2; Wed, 24 Nov 2010 23:42:40 -0800 (PST) In-Reply-To: <20101124205114.GB23284-j4W6CDmL7uNdAaE8spi6tJZpQXiuRcL9@public.gmane.org> 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:540 Archived-At: +++ Andrea Rossato [Nov 24 10 21:51 ]: > On Tue, Nov 23, 2010 at 09:06:32PM -0800, John MacFarlane wrote: > > PS. I'm sorely tempted to put off implementing these complexities > > til later, and release a simple version of pandoc/citeproc that just > > constructs a bibliography of works cited in the document and puts > > them at the end, more or less the way it does now. The one twist > > I'd add would be this: the bibliography is inserted only if the > > document ends with a Header. That way you could suppress the > > bibliography by not ending with a Header. > > If you do not want a bibliography you can just remove the > element from a style. This is the cleaner way to do > it I think. Makes sense. > > We could keep this convention later even if we implemented a > > element. So existing documents would not break. > > > > What we'd be missing: > > > > - ability to have multiple bibliographies > > - ability to include works not cited in bibliographies > > - ability to suppress works cited in bibbliographies > > - ability to filter bibliographies by fields (e.g. source=primary) > > > > These things would be nice for some users, but they add a lot of > > complexity and could be implemented later. > > I'm working to get the filtering options done. citeproc type signature > must be changed and I'd prefer to do it before a new release (since > the API has already been changed). > > citeproc would become: > > citeproc :: ProcOpts -> Style -> [Reference] -> Citations -> BiblioData > > with > data ProcOpts > = ProcOpts > { bibOpts :: [BibOpts] > } > > (the record could be extended at a later time). And: > > data BibOpts > = Select [(String, String)] > | Include [(String, String)] > | Exclude [(String, String)] > | Quash [(String, String)] > > (the tuple is (field,value)) > > Multiple bibliographies would require calling citeproc for everyone. > This means splitting the pandoc document - in other words, partially > rewriting Pandoc.Biblio. > > Can we do it now? If no I'm not going to work on the citeproc side any > longer for the time being. There's at least one thing that needs to be done anyway -- the spacing issue between multiple locators. (See the failing tests when you do 'make test'.) > For the syntax: I like the xml syntax you proposed. I'm a bit uncertain how to proceed, because the xml syntax seems unpopular (judging from responses on the list), and I don't have a good alternative in mind. Also, I'm not *sure* that the select/include/exclude/quash system is the best way to go on filtering. It works pretty well with the xml syntax, but less well with some of the other options. Hence the temptation to avoid solving all these problems and just release something workable. But let me think on it some more. John