From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/108900 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Denis Maier Newsgroups: gmane.comp.tex.context Subject: Re: Citeproc Date: Mon, 5 Oct 2020 14:55:54 +0200 Message-ID: <416e6b30-0357-73bd-fb7a-0d183585c78a@mailbox.org> References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5424949694664892883==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32146"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users , Aditya Mahajan Original-X-From: ntg-context-bounces@ntg.nl Mon Oct 05 14:56:20 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kPQ2N-0008Ga-Hp for gctc-ntg-context-518@m.gmane-mx.org; Mon, 05 Oct 2020 14:56:19 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id DD9EE1A8E24; Mon, 5 Oct 2020 14:55:59 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ue8FfgvL4Kni; Mon, 5 Oct 2020 14:55:58 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id CB3AB1A9184; Mon, 5 Oct 2020 14:55:58 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id F2A6E1A9184 for ; Mon, 5 Oct 2020 14:55:56 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7fQm5xvtkEcH for ; Mon, 5 Oct 2020 14:55:56 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=80.241.56.171; helo=mout-p-201.mailbox.org; envelope-from=denis.maier.lists@mailbox.org; receiver= Original-Received: from mout-p-201.mailbox.org (mout-p-201.mailbox.org [80.241.56.171]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 207931A8E24 for ; Mon, 5 Oct 2020 14:55:56 +0200 (CEST) Original-Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4C4gZM5x0FzQlLp; Mon, 5 Oct 2020 14:55:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mailbox.org; h= content-type:content-type:in-reply-to:mime-version:date:date :message-id:from:from:references:subject:subject:received; s= mail20150812; t=1601902550; bh=6FzJEF6cGvN9r122LlFiXQSxAkhtS1ycU wC4Sym0g9c=; b=Ok0ksjL2Y4+odiToQtmgI0KF+sRuKY6Fm3hTA78Rtx7NHGGam oA4cpWFAYUmENUc2tzMZMTmqVo74luyW/kQAE5ENhVX98AwC6KaWZu9F5rSB1UBz tVi4K8GOUwfgX704BpBrfg1BC+37bDr8DH9RBewXk1WDqG+bE4c9mUugtb2sPSXK 4/CFebOCi94LIm/qu2yDEbx/OSeRAI0VXDd/2OkfKtL4VmyW+s9wUo4MD3SJP3MF HSlEdGAT6DWbukE5o1KB77Jt1A/KM3wV6O13+9UTZgqzdYG0ATUWvulSRIp0OPqi wgaeF4AMt96VaV2tQneMksUkIZB9R83olmvdQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1601902553; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=7hP79EFjvGf9aT32UI0zbdvOCu8VCns4LboUE8d5C1Q=; b=NxrjURtHVqasdPHZh65Ufv0jLQyi6/eRLNub1MQxSgp4tw/w56UoQ6ZUtGLUALSUMIUq/d 97EvoqELa20FQ3huOBlTkBdnJx9QIGEkdLQNOsWYug5vSzS0pU7kRV3lFDoqFWGuhAnR+l yIhVMoHTR1sdJDs+eeWeB3oRwXQJn1ebFCgeY8ir77yxK2+9QyntM4blmjq84XDT59PKjo Ao8S/OfrNrPo3xUMOugzLqMd3fiM16XFmyD6sBpa2d91n3IyrT+D7kaunL9jVV0ntgnwcW UVeIPStWDs9jqUFs42+mZx37p860rrbU17G7HoLTjYU2SMJDmM6TYPVvDTihYg== X-Virus-Scanned: amavisd-new at heinlein-support.de Original-Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter01.heinlein-hosting.de (spamfilter01.heinlein-hosting.de [80.241.56.115]) (amavisd-new, port 10030) with ESMTP id wzJwl1wTUJMi; Mon, 5 Oct 2020 14:55:50 +0200 (CEST) In-Reply-To: X-Rspamd-Score: -0.70 / 15.00 / 15.00 X-Rspamd-Queue-Id: 585AF1709 X-Rspamd-UID: 593b2f X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:108900 Archived-At: This is a multi-part message in MIME format. --===============5424949694664892883== Content-Type: multipart/alternative; boundary="------------73B28FE7FEF31876B0A6737D" This is a multi-part message in MIME format. --------------73B28FE7FEF31876B0A6737D Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Am 05.10.2020 um 02:47 schrieb Aditya Mahajan: >> John MacFarlane, the developper of Pandoc, has released a new Citeproc >> that generates citations and bibliographies using CSL style files (CSL= >> citation style language). While it is written in Haskell and while it's >> primarily intended for use with Pandoc, it can also be used in other >> contexts. Provided with a JSON encoded list of references via stdin, it >> can produce formatted output. > The man page of the new citeproc executable, for those who are > interested: > > https://github.com/jgm/citeproc/blob/master/man/citeproc.1.md Thanks for adding this. > >> I know that ConTeXt has its own infrastructure to format bibliographies >> and citations, but, given the enormous amount of available styles in >> CSL, I nevertheless think that this could be a worthwile addition. What >> would be necessary to make such a toll usable with ConTeXt? How >> complicated would that be? > In principle, this should be trivial. [...] > > Note that this scheme has a few drawbacks: [...] But I do agree that > it will provide us with the ability to use the large number CSL styles. Thanks for outlining what would be needed. > Of course, a better option will be write a CSL processor in Lua, but > that is a lot of tedious (but relatively simple) task. I wonder if > there is already a CSL processor written in Lua. Yeah, a Lua citeproc would be the best way to go. I contemplated some time ago doing this as a learning project, but I have serious doubts I'd be able to actually produce something usable by others. There was one being developped, but a computer hazard destroyed it somewhere along the way Besides, the person who did it told me Lua has somd shortcomings that make it a suboptimal tool for this task. But I can't really tell... Best, Denis --------------73B28FE7FEF31876B0A6737D Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit Am 05.10.2020 um 02:47 schrieb Aditya Mahajan:
John MacFarlane, the developper of Pandoc, has released a new Citeproc
that generates citations and bibliographies using CSL style files (CSL=
citation style language). While it is written in Haskell and while it's
primarily intended for use with Pandoc, it can also be used in other
contexts. Provided with a JSON encoded list of references via stdin, it
can produce formatted output.
The man page of the new citeproc executable, for those who are interested:

https://github.com/jgm/citeproc/blob/master/man/citeproc.1.md
Thanks for adding this.

I know that ConTeXt has its own infrastructure to format bibliographies
and citations, but, given the enormous amount of available styles in
CSL, I nevertheless think that this could be a worthwile addition. What
would be necessary to make such a toll usable with ConTeXt? How
complicated would that be?
In principle, this should be trivial. [...]

Note that this scheme has a few drawbacks: [...] But I do agree that it will provide us with the ability to use the large number CSL styles.
Thanks for outlining what would be needed.
Of course, a better option will be write a CSL processor in Lua, but that is a lot of tedious (but relatively simple) task. I wonder if there is already a CSL processor written in Lua.
Yeah, a Lua citeproc would be the best way to go. I contemplated some time ago doing this as a learning project, but I have serious doubts I'd be able to actually produce something usable by others. There was one being developped, but a computer hazard destroyed it somewhere along the way Besides, the person who did it told me Lua has somd shortcomings that make it a suboptimal tool for this task. But I can't really tell...

Best,
Denis --------------73B28FE7FEF31876B0A6737D-- --===============5424949694664892883== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============5424949694664892883==--