From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/548 Path: news.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: pandoc/citeproc issues: multiple bibliographies, nocite, citeonly Date: Sat, 27 Nov 2010 07:23:52 -0800 Message-ID: <20101127152352.GB535@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> <20101125074240.GC12387@protagoras.phil.berkeley.edu> <20101125080907.GD23284@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 1290871448 29643 80.91.229.12 (27 Nov 2010 15:24:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 27 Nov 2010 15:24:08 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncCO38oIeaEBCLxcTnBBoEnO-o9g-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Nov 27 16:24:04 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 1PMMdA-0001IF-05 for gtp-pandoc-discuss@m.gmane.org; Sat, 27 Nov 2010 16:24:04 +0100 Original-Received: by mail-px0-f186.google.com with SMTP id 7sf1095492pxi.3 for ; Sat, 27 Nov 2010 07:24:03 -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=UgWUsIlrR8f5J8Zvpex/QFeDQghN6/T85UnNTiUSHYo=; b=NP4yW1pw1L7mAYEoufi81ACF0hkyxEGqtMYmm/HHrfHFzWVH6ynbThroxIQv55lFkm leDqZBYPZkteyu46BfWK6cFC37PimTkO4pIaWjbbqt31kU/LU1WbVf+H00kcT1xlCvPx 1cJAofdY/V0jH8eLjdjlmpC3hUJBRspwQGOAQ= 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=mOME3hMhgB+cgWELDqLitNdONlFzvYaU9zU6zFI4d6EnORYGdRbYzxjlnpCYTODiRI nm0pdS10y2QgtTGaMcFr+05DR3XU7nztHWnszuozCEvwWhN3F0nTGHj9MQ84bc8AChkK pJ6QCzvzzyQkqjINMYV10+6X49DucBstJbfXc= Original-Received: by 10.142.248.35 with SMTP id v35mr133867wfh.34.1290871435815; Sat, 27 Nov 2010 07:23:55 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.142.6.9 with SMTP id 9ls5701958wff.3.p; Sat, 27 Nov 2010 07:23:55 -0800 (PST) Original-Received: by 10.142.221.10 with SMTP id t10mr2332556wfg.63.1290871435282; Sat, 27 Nov 2010 07:23:55 -0800 (PST) Original-Received: by 10.142.221.10 with SMTP id t10mr2332545wfg.63.1290871433826; Sat, 27 Nov 2010 07:23:53 -0800 (PST) Original-Received: from cm02fe.IST.Berkeley.EDU (cm02fe.IST.Berkeley.EDU [169.229.218.143]) by gmr-mx.google.com with ESMTP id y8si3560858wfj.5.2010.11.27.07.23.53; Sat, 27 Nov 2010 07:23:53 -0800 (PST) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 169.229.218.143 as permitted sender) client-ip=169.229.218.143; Original-Received: from protagoras.phil.berkeley.edu ([128.32.137.142]) by cm02fe.ist.berkeley.edu with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (auth plain:jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org) (envelope-from ) id 1PMMcy-0007kO-8a for pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; Sat, 27 Nov 2010 07:23:53 -0800 Original-Received: by protagoras.phil.berkeley.edu (Postfix, from userid 1000) id 71D681317C2; Sat, 27 Nov 2010 07:23:52 -0800 (PST) In-Reply-To: <20101125080907.GD23284-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.143 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:548 Archived-At: +++ Andrea Rossato [Nov 25 10 09:09 ]: > On Wed, Nov 24, 2010 at 11:42:40PM -0800, John MacFarlane wrote: > > +++ Andrea Rossato [Nov 24 10 21:51 ]: > > > 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'.) > > I mean that I'm not going to work on this specific issue anymore (I'll > leave it for the next release), to concentrate on the remaining issues > (page ranges, which involves also the problem you reported, style > version recognition, rich text formatting and flip-flopping, etc.). > > > > 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. > > If you want to wait I have no objections. Still I would like to change > the type signature of citeproc to include the ProcOpts parameter, so > that we don't need to change it at a latter time. > > Related to that: in pandoc.cabal the citeproc-hs dependency has been > set to: > > citeproc-hs >= 0.3 && < 0.4 > > Do we want to drop the upper bound? I think these upper bounds are generally a good idea. This way you can release a new version of citeproc-hs with an incompatible API, and pandoc will still build. I was looking a bit at the code in citeproc that parses locators. parseLocator :: String -> (String, String) parseLocator s | "b" `isPrefixOf` formatField s = mk "book" | "ch" `isPrefixOf` formatField s = mk "chapter" | "co" `isPrefixOf` formatField s = mk "column" | "fi" `isPrefixOf` formatField s = mk "figure" | "fo" `isPrefixOf` formatField s = mk "folio" | "i" `isPrefixOf` formatField s = mk "issue" | "l" `isPrefixOf` formatField s = mk "line" | "n" `isPrefixOf` formatField s = mk "note" | "o" `isPrefixOf` formatField s = mk "opus" | "para" `isPrefixOf` formatField s = mk "paragraph" | "part" `isPrefixOf` formatField s = mk "part" | "p" `isPrefixOf` formatField s = mk "page" | "sec" `isPrefixOf` formatField s = mk "section" | "sub" `isPrefixOf` formatField s = mk "sub verbo" | "ve" `isPrefixOf` formatField s = mk "verse" | "v" `isPrefixOf` formatField s = mk "volume" | otherwise = ([], []) where mk c = if null s then ([], []) else (,) c . concat . tail . words $ s Am I right that this will work for English and Italian, but not Swedish and Chinese? Is there a way to localize this and make it less language-centric? John