From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/26112 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "'Nick Bart' via pandoc-discuss" Newsgroups: gmane.text.pandoc Subject: Re: WIP: better citation processing Date: Sat, 12 Sep 2020 06:26:48 +0000 Message-ID: References: <360dbe5b-f1ef-17f6-32e6-8c9f85204844@mailbox.org> <865f327e-d305-4409-dd6f-1659f6a884cc@mailbox.org> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="b1_piX9kB8O6uXu0pKUpqtywkiX4xZrvlNCfpph7VOys" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11866"; mail-complaints-to="usenet@ciao.gmane.io" To: "pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org" Original-X-From: pandoc-discuss+bncBDR4BGVI44MRBNGU6H5AKGQE7SRXC7A-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Sep 12 08:27:05 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lj1-f189.google.com ([209.85.208.189]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kGz04-0002xz-OH for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 12 Sep 2020 08:27:04 +0200 Original-Received: by mail-lj1-f189.google.com with SMTP id i9sf4442394ljc.12 for ; Fri, 11 Sep 2020 23:27:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1599892024; cv=pass; d=google.com; s=arc-20160816; b=jysTfKZgPhVRPsOf+Th+6em9UGdfNJG4Rq06PMUbszgJxdtcTJC65F6qqbSeVARWOS Kwk49VBpqUXIivPq3EspDZ4RWUFDfV2+Hb1SLwo5xLmFMt0VOgfb1lR+Eveqm5nLnjPs kXPfYNnMTkJMtACFS08fXv+7OTZzWVB4HWgdutEFvtyPli7A6CTTd+ni/PzDZxcZ59sH 5uN8Upm25SRx/lEQgwa8rFZJntU2rz7D2jgD7jLP+CskEywf1U4mJo8ZMDoMfWTMSEkC 0cwiUqx7KBn3YKRE6FilKQDu23j41OrDiIubicXswfevICAAcLgXUXlbdB+CMSaGMaf8 wDtg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:subject:reply-to:from:to:date:dkim-signature; bh=1Vb5A9xcn30FuKXYFMx7klJhzE1TxLw1jaG65UvXmL0=; b=MXhcWOechBeBTzgyX5/g4tj32bFNighQWhqxupuvHUZ5Qh7d4DPsnWlP5PiJby4A1y JYiB4xHhWPpZqwT5Rt1VxSV+q9wiPj6ZkDggm2P3Iqm9PNLH4ojylej69dIi8IMIyt06 phAa9vtWR2jemK0/tDk0JK4ubJwpazeV+6FO/HpPBk2e8njW3u7or3m6r21brogcTGJY adJtNz5Yp6SdjfjSX8edJrvFARJQrNeJrQvuIOoR1utY2fdAgywW5htB0zsP2J4JIPxE dUV/6CWe6d4xdwzil9Wk3bLiT6JWUxW7yB1TsUErN0FCZjvCNVsC6uv2EwsIVRyFDBF0 Xpyw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail header.b=m9aH0soY; spf=pass (google.com: domain of njbart-g/b1ySJe57IN+BqQ9rBEUg@public.gmane.org designates 185.70.40.130 as permitted sender) smtp.mailfrom=njbart-g/b1ySJe57IN+BqQ9rBEUg@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=date:to:from:reply-to:subject:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=1Vb5A9xcn30FuKXYFMx7klJhzE1TxLw1jaG65UvXmL0=; b=QT6QyKzAaK7Qmr1oJ1NrcsuWG0XbdX0V8uEMbUoc9CnQjaRRzLGsguQL11jjWKbn77 hMuapQElqDlY7H8Beewr5T72YihuhKpAtO6sbwC6Vv+ITYhjAIQri4qYvPGwJnvGZzC0 2p107zjspR/R7S4pCAkBQpnXWeoUk0eDTdq4+EnG7vk8/lzjUPLP4aoMJfW/nV5B+FjO 92CuzMYXGLoJpKa7HyqgMNqISsxnq1eJf/X2ZsWk5u1mmjwlNfmwc+iYUNk/xeqlJoKe Ji0YGAN7OZJ79NJDmurCIu3C03hzuMwawhjjRZ1HgleheaFqmC7iPU00MuaSQtadBskF E09A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:to:from:reply-to:subject:message-id :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=1Vb5A9xcn30FuKXYFMx7klJhzE1TxLw1jaG65UvXmL0=; b=amypBpqQFM8ZpX44FCjkOMEbSAaLYhvV8cm+4q5irVv0rCe73BatQnstxfglqhGZ7P RxqgvjjlXPjON358zDuj4GbSu5sIpxhoJaZVjwny9mxD3ttD/+DWq9EbSHTLCTpp+3b0 Y+dpcUnkfcRtfTpmiNfcPu5cZ7DqiQwig7xf3dPJbBSyqlhcUFrTjfJo0IsTTkMKo0MN kx5f/Fd5H1FGGJVKhml0jGXuVY5bYK8UhhMEZqdBIoNZ65fuYch/WHSNh7kZzEUrYbzV 6dCAo3c7UcLpXxIDwRyG+oVyYu0SWRPj4qoFEeVcHfo+cBfCcI+p9QQFjKjUH0nNvVgF UjRg== X-Gm-Message-State: AOAM530ekbfo8xgCmgqV4yg7e8LKGgjUhIdAn7lirSS75/QEtMCJZ6I1 Bl0D/kjYk7TxCNiR7lMOR4Y= X-Google-Smtp-Source: ABdhPJwqbgmjE8TNFE0OZoF+2FGEp/TwsTuIoxo5olyDAzB6g5b8HAcu9w5IbounDzH2tBeuPd6hKg== X-Received: by 2002:ac2:5f50:: with SMTP id 16mr1460599lfz.533.1599892024013; Fri, 11 Sep 2020 23:27:04 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a19:6e4d:: with SMTP id q13ls963358lfk.1.gmail; Fri, 11 Sep 2020 23:26:59 -0700 (PDT) X-Received: by 2002:a19:894:: with SMTP id 142mr1426809lfi.559.1599892019230; Fri, 11 Sep 2020 23:26:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599892019; cv=none; d=google.com; s=arc-20160816; b=x2j/OL2OCNldTUfggKo7oM/C2z8IuRtniUBt+Xdt/IxNWTeWmzJq/BCjPIesXFFy85 wc7M3vSxJrWxXE8dGxsTggIrzwUH5YYw9O10m5sTSl4f/atN2ZBeYWPinFGWdegVLd9P Ze2pLmP9nLyE26/EPSHAVGp8mvA2E2n1JLW1kq4RQygZaDPaTv1nc1lsRm/ZhJFbeXy+ uwuLz3kwAn2dj5lZ95OzOtc2j9XEL1GNE7zcAPw/tVOhhOVGinoLNtwG2KR2n9I7ofoM 7/rKj308Iwo7xnBc03zWOwazwL+6JBMW1G0cV+qL90pNbFW9NIVU9hAR+G73hk7+CAKr nGog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:references:in-reply-to:message-id:subject:reply-to :from:to:dkim-signature:date; bh=sP4y78OdFNgV5mJu7YNwlNVBDO2keBezzAK6ukPsWxY=; b=0h8gkQ1Tg40IOZOZ0QmxNqNd+kVyLuz9aaqDvJqx8wiIVAkwdcl3N+PcVu5Omfdlt0 71rJ6pCXyLHYOsskzZSfeJBVwinxOYo5lqf24CVQJUmgQytM+FNLTfNu/iVbwOhUTPS9 p6/cK2M20MdxNhigQnFmMAyegypCU/RSEPu9gmy2tMiFX6xQCEwjaAR5SNsFVaHZYsUG i+W6ZajSllZ4zkfVLpWhzLRtgd9OZnjV7uQnTihTzuXNLMG0lZA+7g2qNRUbim8TEmBK /b5BIE8Efaxy9Bno9K0QNlJ4Cqhso3RxpmQF9LcMYZl5afssLJJ2h+YJNCM41mXwG5qE p8TA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail header.b=m9aH0soY; spf=pass (google.com: domain of njbart-g/b1ySJe57IN+BqQ9rBEUg@public.gmane.org designates 185.70.40.130 as permitted sender) smtp.mailfrom=njbart-g/b1ySJe57IN+BqQ9rBEUg@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Original-Received: from mail-40130.protonmail.ch (mail-40130.protonmail.ch. [185.70.40.130]) by gmr-mx.google.com with ESMTPS id y17si138054lfg.2.2020.09.11.23.26.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Sep 2020 23:26:59 -0700 (PDT) Received-SPF: pass (google.com: domain of njbart-g/b1ySJe57IN+BqQ9rBEUg@public.gmane.org designates 185.70.40.130 as permitted sender) client-ip=185.70.40.130; In-Reply-To: X-Original-Sender: njbart-g/b1ySJe57IN+BqQ9rBEUg@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail header.b=m9aH0soY; spf=pass (google.com: domain of njbart-g/b1ySJe57IN+BqQ9rBEUg@public.gmane.org designates 185.70.40.130 as permitted sender) smtp.mailfrom=njbart-g/b1ySJe57IN+BqQ9rBEUg@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com X-Original-From: Nick Bart Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:26112 Archived-At: This is a multi-part message in MIME format. --b1_piX9kB8O6uXu0pKUpqtywkiX4xZrvlNCfpph7VOys Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > I can imagine other people might want to generate citations in a filter a= nd have them processed. For example, in a Zotero -> zotxt -> pandoc workflow it is essential to be = able to call the pandoc-zotxt.lua filter _before_ (pandoc-)citeproc (see ht= tps://github.com/egh/zotxt/). =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Me= ssage =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 On Friday, September 11, 2020 3:05 PM, FI Apps wrote= : > Will it be possible to control when citation processing happens relative = to filters? Earlier in this thread, I saw that mancite could be emulated by= running a filter after pandoc-citeproc. I can imagine other people might w= ant to generate citations in a filter and have them processed. > > On Tue, Sep 8, 2020 at 8:16 PM John MacFarlane wrote: > >> Progress report: >> >> I have put the library at jgm/citeproc on GitHub. It still >> >> doesn't pass all the CSL tests, and it needs some work, but I >> >> think it's already quite a bit better than pandoc-citeproc. >> >> I've also been working on a version of pandoc that integrates the >> >> library (so that pandoc-citeproc won't be needed). That work is >> >> happening in the citeproc branch at jgm/pandoc. When I get a bit >> >> farther, I'll make a binary available so people can try it out. >> >> Citation processing will happen automatically if your document >> >> contains `bibliography` or `references` in the metadata, or if >> >> you use `--bibliography` on the command line. >> >> This is _much_ faster than using pandoc-citeproc. >> >> The pandoc-citeproc executable could also be used to convert >> >> between bibliographic formats. I'm planning to integrate that >> >> capability into pandoc, too. So, you can convert a bibtex >> >> bibliography to CSL json using `pandoc -f bibtex -t csljson`. >> >> You'll also be able to do, e.g., `pandoc -f bibtex -t html` to >> >> get a formatted HTML version of your bibliography. >> >> Denis Maier writes: >> >>> Am 21.08.2020 um 21:41 schrieb John MacFarlane: >> >>>>> That sounds amazing. As you know CSL 1.0.2 is about to appear soon, a= nd >> >>>>> 1.1 is also already pretty advanced. It would be great if it were eas= y >> >>>>> to integrate the new features in your library. >> >>>> Is there a list of changes in CSL 1.0.2 somewhere, so I can see >> >>>> what will need to be supported when it comes out? >> >>>> >> >>> >> >>> Yeah, there's a summary of changes here: >> >>> https://docs.google.com/document/d/1wY1cOOamDYYh8VNW7h_uleqieBDGOa_LYsR= iVdQy1RI/edit#heading=3Dh.wsywjzy5t4j6 >> >>> >> >>> As you can see it's a terms, types and variables release. That should b= e >> >>> trivial to support. (There were some changes to that list due to >> >>> comments during the comments period so that's not the final list of >> >>> changes.) >> >>> >> >>> 1.1 will be more complex, but we plan to document the new features with >> >>> a detailled changelog and new tests in the test-suite. >> >> -- >> >> You received this message because you are subscribed to a topic in the G= oogle Groups "pandoc-discuss" group. >> >> To unsubscribe from this topic, visit https://groups.google.com/d/topic/= pandoc-discuss/LaPbYbP8GU4/unsubscribe. >> >> To unsubscribe from this group and all its topics, send an email to [pan= doc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org](mailto:pandoc-discuss%2Bunsubscri= be-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org). >> >> To view this discussion on the web visit https://groups.google.com/d/msg= id/pandoc-discuss/m2bligt9ra.fsf%40MacBook-Pro.hsd1.ca.comcast.net. > > -- > You received this message because you are subscribed to the Google Groups= "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an= email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit [https://groups.google.com/d/msg= id/pandoc-discuss/CAGOSsd%3DXs6u6Xup9YugR-zd6FC_29QFs1asEcARA4m2UPts_vQ%40m= ail.gmail.com](https://groups.google.com/d/msgid/pandoc-discuss/CAGOSsd%3DX= s6u6Xup9YugR-zd6FC_29QFs1asEcARA4m2UPts_vQ%40mail.gmail.com?utm_medium=3Dem= ail&utm_source=3Dfooter). --=20 You received this message because you are subscribed to the Google Groups "= pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/cy_zB0ryMZZFLdb4qMo7kMPfyBvIZwVJI81wd5aRWS3_SYgyYoch4zRkj-LM= CAVRvnumZfgy_DG1kfG3pQem7P9HnuT7UQhPymOhc7DK-EQ%3D%40protonmail.com. --b1_piX9kB8O6uXu0pKUpqtywkiX4xZrvlNCfpph7VOys Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
> I can imagine other people might want to generate citations in a = filter and have them processed.

For example, i= n a Zotero -> zotxt -> pandoc workflow it is essential to be able to = call the pandoc-zotxt.lua filter _before_ (pandoc-)citeproc (see https://github.com/egh/zotxt/).

=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80= =90=E2=80=90 Original Message =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90= =E2=80=90=E2=80=90
On Friday, September 11, 2020 3:05 PM, FI= Apps <ffi.appdev-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org&= gt; wrote:

Will it be possible to control when citatio= n processing happens relative to filters? Earlier in this thread, I saw tha= t mancite could be emulated by running a filter after  pandoc-citeproc= . I can imagine other people might want to generate citations in a filter a= nd have them processed.

On Tue, Sep 8, 2020 at 8:16 PM John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> wrote:
=


Progress = report:



I have p= ut the library at jgm/citeproc on GitHub.  It still

=
doesn't pass all the CSL tests, and it needs some work, but I

think it's already quite a bit better than pando= c-citeproc.



I've= also been working on a version of pandoc that integrates the

library (so that pandoc-citeproc won't be needed).  Th= at work is

happening in the citeproc branch at= jgm/pandoc.  When I get a bit

farther, I= 'll make a binary available so people can try it out.



Citation processing will happen autom= atically if your document

contains `bibliograp= hy` or `references` in the metadata, or if

you= use `--bibliography` on the command line.


This is _much_ faster than using pandoc-citeproc= .



The pandoc-cit= eproc executable could also be used to  convert

between bibliographic formats.  I'm planning to integrate that<= br>

capability into pandoc, too.  So, you can= convert a bibtex

bibliography to CSL json usi= ng `pandoc -f bibtex -t csljson`.

You'll also = be able to do, e.g., `pandoc -f bibtex -t html` to

=
get a formatted HTML version of your bibliography.

> Am 21.08.2020 um 21:41 schrieb John M= acFarlane:

>>> That sounds amazing. A= s you know CSL 1.0.2 is about to appear soon, and

<= div>>>> 1.1 is also already pretty advanced. It would be great if = it were easy

>>> to integrate the new= features in your library.

>> Is there a= list of changes in CSL 1.0.2 somewhere, so I can see

>> what will need to be supported when it comes out?

>>

>

> Yeah, there's a summary of changes here:
<= div>

>

> As you ca= n see it's a terms, types and variables release. That should be
<= div>
> trivial to support. (There were some changes to tha= t list due to

> comments during the commen= ts period so that's not the final list of

>= ; changes.)

>

= > 1.1 will be more complex, but we plan to document the new features wit= h

> a detailled changelog and new tests in= the test-suite.



--

You received this message because you are= subscribed to a topic in the Google Groups "pandoc-discuss" group.


To unsubs= cribe from this group and all its topics, send an email to pandoc-d= iscuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.


--
You received this me= ssage because you are subscribed to the Google Groups "pandoc-discuss" grou= p.
To unsubscribe from this group and stop receiving emails = from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https:= //groups.google.com/d/msgid/pandoc-discuss/CAGOSsd%3DXs6u6Xup9YugR-zd6FC_29= QFs1asEcARA4m2UPts_vQ%40mail.gmail.com.

=

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msg= id/pandoc-discuss/cy_zB0ryMZZFLdb4qMo7kMPfyBvIZwVJI81wd5aRWS3_SYgyYoch4zRkj= -LMCAVRvnumZfgy_DG1kfG3pQem7P9HnuT7UQhPymOhc7DK-EQ%3D%40protonmail.com.=
--b1_piX9kB8O6uXu0pKUpqtywkiX4xZrvlNCfpph7VOys--