From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/26153 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Denis Maier Newsgroups: gmane.text.pandoc Subject: Re: WIP: better citation processing Date: Sat, 12 Sep 2020 08:45:36 +0200 Message-ID: References: <360dbe5b-f1ef-17f6-32e6-8c9f85204844@mailbox.org> <865f327e-d305-4409-dd6f-1659f6a884cc@mailbox.org> <87imckl2tg.fsf@zeitkraut.de> <87ft7ol0rq.fsf@zeitkraut.de> <1adfb0c1-d745-a6dc-bf14-f790e3f1280f@mailbox.org> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------AC68D21997B98DEE392831BC" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37268"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCQOJL5Q2QMRBSG6QP5QKGQEDNDHYJQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Sep 15 18:43:57 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-qv1-f64.google.com ([209.85.219.64]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kIE3g-0009WJ-C0 for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 15 Sep 2020 18:43:56 +0200 Original-Received: by mail-qv1-f64.google.com with SMTP id q21sf2515134qvf.22 for ; Tue, 15 Sep 2020 09:43:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1600188235; cv=pass; d=google.com; s=arc-20160816; b=eqb39tUB9+29/ATVKWb0IoW26eHMoAqnSq3xDbOGJ6QvLEHS53g/EbVL48Cqm5BKWq SSeHY0/j0Z+aJmKNvfLcWizYErm5njdmvUyP3aHScR8HAo1i3AZyKveywdTyXNXS/vfU 8/uU0nM0UA0PoS060j1UiFke624V7NnbPX9jtWOAEwBxlluexdlA4+Agt6G2gDFH8xm0 wivW1DIfKXgIKzRECJyzHQYMYeb4AjDSpl8/pNPXRurdIFTa8HvlMvl6mvwA/hbjBMM4 /S7KsIPuwWD4hakVvqDQk9/7gg3OGii1ydEM49G2qBGlz9yK55kVrrRvcVWrRNysW2F1 s8sg== 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:reply-to:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject:sender :dkim-signature:dkim-signature; bh=M869YuOxWpPy0GJdrk8xVnRxklQwVO/3bw4uQQB9gXs=; b=t/pXw0AADAWxGT5RnLIXhOmFCzqYbh2zjNZTPgM7hUcK9IOmc59GK+kRYDYTk5/TDe JzQVqfbbbCv67gO1O4TfbgzOmEK3u8RlwCc40AGTZuLKWcz9IV+bj5h6dKob1GvvgoGa j6B6gxDeyJyY6DcelV66LdlJf704SbtTlu2VnNdX2DprN8LVpLMmyEQtZNTkZlBwIsbC 8q1bfTi7si6UEd7yGzUGQBg0tB3BOmQnlU71iXp3mkO5PAMOsKg+yPXhEqwBsFOiBpz0 3/sM2VMoJseUw6nInBIQGvDDSb+7+rCLoi648HfNr+429N0P/ZlgCd4q+jbkbBgLeO5t RjjA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=P0Do1UgM; spf=pass (google.com: domain of maier.de-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::529 as permitted sender) smtp.mailfrom=maier.de-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=M869YuOxWpPy0GJdrk8xVnRxklQwVO/3bw4uQQB9gXs=; b=dsEwagD87YrZsisiZkjcKFAqh1NwtNCcOZUeV38cy/FoJZkdD6f7HeA0QDwJOcYE0c s1DQc2zFaSnHK0rtcBn4/at/nYsyc2rqmYrviucHsqe6QpaSSDgE4jjAHc1mzb8vI1IB irc3qJpMFBVmH5dXKuZSBBJOaq4rp9DJaSZOnCJ+NWrR7Qkvy0C1+aUdbLjr/PChD6WF 6BPwAJiimOyBq8nIo1/Rl6J1VuFqlLLiI3yJV//mGs1Gb/F382CTu2zhhJY3lrkJsqLW BoIohrNbg9UmTTpXIlUpg/GbFHpK/tGJE7lF04/tr/2+xd53h62P/D65QJjCGdWxEq/9 1/9Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=M869YuOxWpPy0GJdrk8xVnRxklQwVO/3bw4uQQB9gXs=; b=nM3k7wdQI1XTnEom/n67MkzggJzt4Nbra595cSo/Q/oqDJVPnwNfry0nAQmLZrKeLr L9E3sP1Nk4J3l1E53gD7ylGatxMdQr08QtWygq+zLdaGpwVXZngOXR3/uf8WbFA3Vr5c 2OaxZ8m+PxXG2Qa9S6X3Nv0aP5zUWpbwAWu1BHwsoXwFUsol18iysMxWVY5je8IyaN6h 7ozJNtAUEPLrwbFQjQwsM8LObLrX+ZnUpFMgAI5HkFhqDSiNdxayS6lVtmuQyriI/w2Q T6CU0nfMbNavg7QQlGYtBSnLnTDhSKz1S2etA3pvdPPciHK3CmxT8CYj6tQRBvcYZDBh vsYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=M869YuOxWpPy0GJdrk8xVnRxklQwVO/3bw4uQQB9gXs=; b=FjvrL7KFCylxPbbO6srAoCfGpI6J/eQHDoHEoGqlOFU5PqgGE8+ygACbXWRfgOOzsk tJsmucIFJd1thUmrjhgxvQjlv1BVJV0VdBStKXOyxiWQ+AufNiSPHmkJGPhUMoAXcEw0 GMCpEBQg5BZO0bhXOZI9SX8X8XEpSxmVAF1rg3al88X4jKzY7Ffwlu51FUgHYoZ39zU5 V1XzrT1K9XbOW0foFmdi0xnwVqZG7pVbTsaD/MLLepC3eJMyBva5nr3gIV8CPfBIAszT 9QkjqX/eOU2fzsvZksydKaWUK0mn44pAkPnls0CLo3LY99BzxVQ59eV7YGqRSrPkrIfv Zufw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531y43OsbVGBSuUQ2S8OHVHTyRy0RyV8U32sXQg2U9gmyuktjkYM DpPz0EhIXO3kglQ0N/FZvfI= X-Google-Smtp-Source: ABdhPJyVBozsvst6r7QPeTzUnXvnun6ZhVhJnvbWWF9leZITK/7iB79PAgm/VSWRuGpaNAM4rOO3Eg== X-Received: by 2002:ac8:3aa3:: with SMTP id x32mr18857027qte.327.1600188235536; Tue, 15 Sep 2020 09:43:55 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:ad4:4c91:: with SMTP id bs17ls3451876qvb.3.gmail; Tue, 15 Sep 2020 09:43:52 -0700 (PDT) X-Received: by 2002:a05:6214:a85:: with SMTP id ev5mr19445197qvb.1.1600188232367; Tue, 15 Sep 2020 09:43:52 -0700 (PDT) Original-Received: by 2002:a05:620a:151b:b029:116:1169:10df with SMTP id i27-20020a05620a151bb0290116116910dfmsqkk; Fri, 11 Sep 2020 23:45:42 -0700 (PDT) X-Received: by 2002:a17:906:cb92:: with SMTP id mf18mr5313259ejb.485.1599893141706; Fri, 11 Sep 2020 23:45:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599893141; cv=none; d=google.com; s=arc-20160816; b=q1tSQFyXqi1r45azxRFUh/ZhVyBuHDRtX0/PWSQ7eVv8BETL7bvuUa1yoHUhNWBhkg AvV/I1PS+dPOOmCGUJTNj/5+XM9oJSe5DHhQ5UJCqoG1MxFTmKkk9NfRfiD+ZZQPTufi VvAiFnbyd1VJ9EgJX+7kAhT27Tb/fAlYbmr5IF0GYc9q3LXwjvqL3uCeQRJas4Fbo+yr OY/oHQs0qs8FlSwApQ3xV+ORfG54V1zZizx//PjFIKtRhKP+paDJY04vhbHUpo28qjDK u2fuKjCe5ybX3V9x+htsTNYJMxZzZwM3rime8wcbT/QSl57CflhZqgIhu0hEG9ft1P/0 i7ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject:dkim-signature; bh=KoHYiqBx6JiBdHAdDTTZ2jYrj2ZS1gx05rcnZe8xQQk=; b=m6GVOlqDXdOHreK0hP5njCsroLOjfF9ma/WIOHN3xyKJPjzVFt2kUyloV5cGBWaMF+ yRLMtN41SnUkaj0+z0iLmo2MGZqnVJJ63vKyELIJpjehy8St3dXWUrzzL556ZHSpfovk cpoZShkucGbIYgQbEHBjZCAXAm3WQWhTmLAhogUPopPXK+dbH46FyS4PfP883fUbNVSY TC1mh0VjT7SNdiybLRUIuZRIttzT0WUAjZZDmVickL4pfobtN3QfXSAK+CYLZBlYpDqE drFP9oSplWOUE81cwTYFtao84zU7UZRYzNAIBRVU4xDsmzVYxRE6zDfz4Iqxi73Jsflp 4ZXg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=P0Do1UgM; spf=pass (google.com: domain of maier.de-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::529 as permitted sender) smtp.mailfrom=maier.de-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com. [2a00:1450:4864:20::529]) by gmr-mx.google.com with ESMTPS id k6si109970eds.3.2020.09.11.23.45.41 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 11 Sep 2020 23:45:41 -0700 (PDT) Received-SPF: pass (google.com: domain of maier.de-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::529 as permitted sender) client-ip=2a00:1450:4864:20::529; Original-Received: by mail-ed1-x529.google.com with SMTP id e22so1945620edq.6 for ; Fri, 11 Sep 2020 23:45:41 -0700 (PDT) X-Received: by 2002:a50:fc83:: with SMTP id f3mr6470097edq.256.1599893141206; Fri, 11 Sep 2020 23:45:41 -0700 (PDT) Original-Received: from ?IPv6:2001:171b:c9be:2090:999e:d0e:2411:8448? ([2001:171b:c9be:2090:999e:d0e:2411:8448]) by smtp.gmail.com with ESMTPSA id t10sm3765141edw.86.2020.09.11.23.45.40 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 11 Sep 2020 23:45:40 -0700 (PDT) In-Reply-To: X-Original-Sender: maier.de-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=P0Do1UgM; spf=pass (google.com: domain of maier.de-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::529 as permitted sender) smtp.mailfrom=maier.de-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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:26153 Archived-At: This is a multi-part message in MIME format. --------------AC68D21997B98DEE392831BC Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: quoted-printable Am 11.09.2020 um 23:14 schrieb Denis Maier: Am 11.09.2020 um 22:58 schrieb John MacFarlane: > Yes, we could definitely consider adding support for > these things at a later date. > > By-section citations would actually be pretty easy. Sounds great! > Multiple bibliographies is also simple IF it's just > a matter of separating items out of a formatted bibliography > into several separate ones.=C2=A0 But if it's going to affect > things like disambiguation then it would be trickier. As outlined on the github issue, I think a simple solution could be=20 allowing multiple bibliographies, each with filters applied that either=20 exclude or include specific items based on different criteria. Denis Maier writes: >> Am 11.09.2020 um 18:46 schrieb Albert Krewinkel: >>> John MacFarlane writes: >>> >>>> It would be good to get clear on this. We could expose >>>> a --citeproc and require it to be used to process citations. >>>> That would also give control of order; it could be treated as >>>> a built-in filter. So maybe it's the thing to do -- but I did >>>> like the idea of doing it automatically. >>> I agree, that's much nicer. Would an additional `--no-citeproc` >>> option make sense? It could suppress the automatic run. >>> >>>> It should be pretty straightforward to expose this to Lua >>>> filters. (But again, I'd be curious to hear why calling >>>> manually from Lua filters would be needed.) At heart it's just a >>>> Pandoc -> m Pandoc transformation in PandocMonad. >>> Indeed, that should be really easy then. :) >>> >>> Lua filters which call out to pandoc-citeproc, or which rely on a >>> special filter order: >>> >>> - cito: allows to add information about the semantic relation of the >>> cited work to the current document. Plugs into the citation syntax = and >>> requires citation IDs to be rewritten before pandoc-citeproc is >>> called. >>> >>> - section-refs: adds "References" for all first level sections; creates >>> temporary documents from sections, then calls `pandoc-citeproc` on >>> the temporary docs. >>> >>> - multiple-bibliographies: allows to partition references into >>> categories; implementation is similar to section-refs. >> Adding a `-citeproc` option would be a good option. >> But that aside, I think that these particular filters (or replacements >> thereof) could/should be included in the new citeproc library. >> >>> -- >>> Albert Krewinkel >>> GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124 >>> >> --=20 >> You received this message because you are subscribed to the Google Group= s "pandoc-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send a= n 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/1adfb0c1-d745-a6dc-bf14-f790e3f1280f%40mailbox.org. --=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/a3c8f8e1-c695-2cf7-ef74-7a6622debef8%40gmail.com. --------------AC68D21997B98DEE392831BC Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Am 11.09.2020 um 23:14 schrieb Denis Maier:

Am 11.09.2020 um 22:58 schrieb John MacFarlane:
Yes, we could definitely consider adding support for
these things at a later date.

By-section citations would actually be pretty easy.
Sounds great!

Multiple bibliographies is also simple IF it's just
a matter of separating items out of a formatted bibliography
into several separate ones.=C2=A0 But if it's going to affect
things like disambiguation then it would be trickier.
As outlined on the github issue, I think a simple solution could be allowing multiple bibliographies, each with filters applied that either exclude or include specific items based on different criteria.

Denis Maier <denis.maier.lists-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org> writes:

      
Am 11.09.2020 um 18:46 schri=
eb Albert Krewinkel:
John MacFarlane writes:

It would be good to get =
clear on this.  We could expose
a --citeproc and require it to be used to process citations.
That would also give control of order; it could be treated as
a built-in filter.  So maybe it's the thing to do -- but I did
like the idea of doing it automatically.
I agree, that's much nicer. Would an additional `--no-citeproc`
option make sense? It could suppress the automatic run.

It should be pretty stra=
ightforward to expose this to Lua
filters.  (But again, I'd be curious to hear why calling
manually from Lua filters would be needed.) At heart it's just a
Pandoc -> m Pandoc transformation in PandocMonad.
Indeed, that should be really easy then. :)

Lua filters which call out to pandoc-citeproc, or which rely on a
special filter order:

- cito: allows to add information about the semantic relation of the
   cited work to the current document. Plugs into the citation syntax and
   requires citation IDs to be rewritten before pandoc-citeproc is
   called.

- section-refs: adds "References" for all first level sections; creates
   temporary documents from sections, then calls `pandoc-citeproc` on
   the temporary docs.

- multiple-bibliographies: allows to partition references into
   categories; implementation is similar to section-refs.
Adding a `-citeproc` option would be a good option.
But that aside, I think that these particular filters (or replacements=20
thereof) could/should be included in the new citeproc library.

--
Albert Krewinkel
GPG: 8eed e3e2 e8c5 6f18 81fe  e836 388d c0b2 1f63 1124

--=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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<=
/a>.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc=
-discuss/1adfb0c1-d745-a6dc-bf14-f790e3f1280f%40mailbox.org.

--
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/msgid/p= andoc-discuss/a3c8f8e1-c695-2cf7-ef74-7a6622debef8%40gmail.com.
--------------AC68D21997B98DEE392831BC--