From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/114866 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Rik Kabel via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: Citeproc-lua Date: Fri, 6 May 2022 18:56:19 -0400 Message-ID: <2389745d-9f18-a065-5f99-67894f61c133@panix.com> References: <6c184146c2104abebdec56e56eaf914a@unibe.ch> <206BFE27-9FD0-4E48-8D03-85346FA27D94@elvenkind.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5890792778416934487==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9984"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0 Thunderbird/91.8.1 Cc: Rik Kabel To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sat May 07 01:16:07 2022 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 1nn7B7-0002KN-0w for gctc-ntg-context-518@m.gmane-mx.org; Sat, 07 May 2022 01:16:05 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 7056B3605EA; Sat, 7 May 2022 01:15:25 +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 nWz6-W2oe987; Sat, 7 May 2022 01:15:21 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 71E043605EB; Sat, 7 May 2022 01:15:21 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6AD263605EB for ; Sat, 7 May 2022 01:15:19 +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 vlXTUngP88iK for ; Sat, 7 May 2022 01:15:17 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=166.84.1.75; helo=l2mail1.panix.com; envelope-from=rik@panix.com; receiver= X-Greylist: delayed 1133 seconds by postgrey-1.36 at zapf.ntg.nl; Sat, 07 May 2022 01:15:16 CEST Original-Received: from l2mail1.panix.com (l2mail1.panix.com [166.84.1.75]) (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 F0B8A3605EA for ; Sat, 7 May 2022 01:15:16 +0200 (CEST) Original-Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by l2mail1.panix.com (Postfix) with ESMTPS id 4Kw5XS1bQXzDRB for ; Fri, 6 May 2022 18:56:24 -0400 (EDT) Original-Received: from [192.168.1.106] (cpe-69-204-136-231.nycap.res.rr.com [69.204.136.231]) by mailbackend.panix.com (Postfix) with ESMTPSA id 4Kw5XN4mmLzp8V for ; Fri, 6 May 2022 18:56:20 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=panix.com; s=panix; t=1651877780; bh=4Qn7BqDF1ILQoepPf/hGTuJTFD8N/rVKHOO3PUlgVVA=; h=Date:Subject:To:References:From:In-Reply-To; b=lfDX4XsBwMahG9S/+/iQRnPKEtLH++kpRInAlH+YomfGYYGShLyIW2uLEXL1K717h Biz7zuaC5Purnh8wexhD8uBnyiHHxd8NKlaZyCx4H4AljqpIDyj3N2C0XtW6sPtE21 HJL/86wVwM58lL5jVzc6tQC7ZvAgPwwO0OYSV60k= Content-Language: en-US In-Reply-To: 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:114866 Archived-At: This is a multi-part message in MIME format. --===============5890792778416934487== Content-Type: multipart/alternative; boundary="------------dwelkojtNMMdqbLJONTO54Ym" Content-Language: en-US This is a multi-part message in MIME format. --------------dwelkojtNMMdqbLJONTO54Ym Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 2022-05-06 17:44, Hans Hagen via ntg-context wrote: > [...] > A bit like this: > > - Convert the whole bibliography database to html using pandoc in the > preferred cs rendering. That should be fast. > > - Use the normal context commands for referencing a citation (the cite > part is normally easy as there is not much variation in that; if > needed one can cheat and also pregenerate that). That's then just some > relatively small plugin mode. > > - When placing the bibliography, filter the right entries from that > html file (easy) using info that got stored in the tuc. > > It is also fast. The only depdency then is pandoc but that is widely > available (irr). But I would need to see an example of that kind of > out first. We basically treat the (formatted) bibliography as an > external resource but in some format that we can easily parse (and if > needed tweak). > > Hans > This is similar to my strategy today. I create a pandoc markdown file from my ConTeXt source using a simple script and generate ConTeXt output containing just the bibliography using pandoc. This output needs some minor tweaks, again scripted, to do things like replace the space in /Vol. 999/ with a non-breaking space to keep the following number on the same line and to convert /\em/ and such to taggable macros that I define in my environment. The result is ConText source that can be further edited (if necessary) and inserted where needed/./ I have not extended it to multiple bibliographies in  a single document, although that should not be difficult. Another possibility would be for ConTeXt, under control of a flag or setting, to generate an editable bibliography file that could be included under control of a second flag or setting. -- Rik --------------dwelkojtNMMdqbLJONTO54Ym Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit


On 2022-05-06 17:44, Hans Hagen via ntg-context wrote:
[...]
A bit like this:

- Convert the whole bibliography database to html using pandoc in the preferred cs rendering. That should be fast.

- Use the normal context commands for referencing a citation (the cite part is normally easy as there is not much variation in that; if needed one can cheat and also pregenerate that). That's then just some relatively small plugin mode.

- When placing the bibliography, filter the right entries from that html file (easy) using info that got stored in the tuc.

It is also fast. The only depdency then is pandoc but that is widely available (irr). But I would need to see an example of that kind of out first. We basically treat the (formatted) bibliography as an external resource but in some format that we can easily parse (and if needed tweak).

Hans

This is similar to my strategy today. I create a pandoc markdown file from my ConTeXt source using a simple script and generate ConTeXt output containing just the bibliography using pandoc. This output needs some minor tweaks, again scripted, to do things like replace the space in Vol. 999 with a non-breaking space to keep the following number on the same line and to convert \em and such to taggable macros that I define in my environment. The result is ConText source that can be further edited (if necessary) and inserted where needed. I have not extended it to multiple bibliographies in  a single document, although that should not be difficult.

Another possibility would be for ConTeXt, under control of a flag or setting, to generate an editable bibliography file that could be included under control of a second flag or setting.

--
Rik

--------------dwelkojtNMMdqbLJONTO54Ym-- --===============5890792778416934487== 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== --===============5890792778416934487==--