From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/552 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 11:34:56 -0800 Message-ID: <20101127193456.GB3576@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> <20101127152352.GB535@protagoras.phil.berkeley.edu> <20101127190139.GE32527@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 1290886514 2985 80.91.229.12 (27 Nov 2010 19:35:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 27 Nov 2010 19:35:14 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncCO38oIeaEBDjusXnBBoE-7LHMA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Nov 27 20:35:09 2010 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-pw0-f58.google.com ([209.85.160.58]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PMQY8-0002XA-3i for gtp-pandoc-discuss@m.gmane.org; Sat, 27 Nov 2010 20:35:08 +0100 Original-Received: by pwj10 with SMTP id 10sf1155338pwj.3 for ; Sat, 27 Nov 2010 11:35:06 -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=XcRUcDtslwnIxyGVq84+CUl8f+JZxOYhVy1VhDCl614=; b=0+k8VI//gd6aQ7RPWwADDqG3YsUHgGLCmUCFGKCnRS8axTDmHLjm6zZAO/Sr5OSbWb S9y/Uqy8w+7L+J194a6YmkI2pvUng+dixe3w7AHf7VYYL/Hbm6LaKx/Nbp+3F2Euf8QQ uf1tZNfSIdwhuQ42bD+txbH4jEb5UDhK6xGh4= 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=x0CW2ne5Md5OcD8nWLTqyF1iPWEQCwLOsHLRlFXc8/QzFQj8LX36opJMS9fbOhuexV zT1jbbWi48GMLrPSK8HDRalMNz+b3CQ9GPGL0FSSOSvyxlsf/CYnGSmZxOV3JPSgjZm4 WcYVDSEcnRwhu31IsMfux6fWdwzNcJEABQtYo= Original-Received: by 10.142.249.18 with SMTP id w18mr142353wfh.43.1290886499313; Sat, 27 Nov 2010 11:34:59 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.142.6.9 with SMTP id 9ls5876754wff.3.p; Sat, 27 Nov 2010 11:34:58 -0800 (PST) Original-Received: by 10.142.199.7 with SMTP id w7mr2466052wff.15.1290886498748; Sat, 27 Nov 2010 11:34:58 -0800 (PST) Original-Received: by 10.142.199.7 with SMTP id w7mr2466051wff.15.1290886498728; Sat, 27 Nov 2010 11:34:58 -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 n6si3768392wfl.7.2010.11.27.11.34.58; Sat, 27 Nov 2010 11:34:58 -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 1PMQXx-0001N2-3R for pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; Sat, 27 Nov 2010 11:34:58 -0800 Original-Received: by protagoras.phil.berkeley.edu (Postfix, from userid 1000) id D84831317C2; Sat, 27 Nov 2010 11:34:56 -0800 (PST) In-Reply-To: <20101127190139.GE32527-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:552 Archived-At: +++ Andrea Rossato [Nov 27 10 20:01 ]: > On Sat, Nov 27, 2010 at 07:23:52AM -0800, John MacFarlane wrote: > > I was looking a bit at the code in citeproc that parses locators. > > > > parseLocator :: String -> (String, String) > > parseLocator 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? > > > Possibly other European languages should be covered too. I do not see > any simple solution. I'll have a look at what citeproc-js does (Frank > works in Japan and is very committed to multi-language support, so I > hope he'll be able to help me). > It seems to me that the needed information is already in the locale files. E.g. in the US english file: bk. chap. col. fig. f. no. op. p. pp. para. pt. sec. s.v. s.vv. v. vv. vol. vols. And there are counterparts in the others. Couldn't you just extract this information and use it instead of the hard-coded values? John