From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/26151 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: Fri, 11 Sep 2020 23:14:49 +0200 Message-ID: <64087dc0-cf6d-4c8d-c579-9b4312baec2e@mailbox.org> 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: text/plain; charset="UTF-8"; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37195"; mail-complaints-to="usenet@ciao.gmane.io" To: John MacFarlane , pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBAABBSG6QP5QKGQEO4CRW7Y-/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-qk1-f189.google.com ([209.85.222.189]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kIE3g-0009WE-Aa for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 15 Sep 2020 18:43:56 +0200 Original-Received: by mail-qk1-f189.google.com with SMTP id m23sf3316244qkh.10 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=YurwUg30k0QfAmsK9N9nOq9qXv2HjZG6HFbpDukICw2VSPphCLWwCddx76hvTnAISn +o4PAB1XyztqZwOcyKnLiJ20ZfZo61WD/IBAzKKW2oAbKl2ri+cyhZtNt95/fVb7cRxK uqw5vjcd93xEbmGx8FnDqkFt3d1scQhYcw4PjKlXf/vaNj6AiUZ3ZvGL8h3lr6q7kwgT pzvM82DchcmehFhgOM1TjpmuOsHgfBGl2P+Zxn+SLrBhUUkxnJSX5EFlC95b6pZETCfE vk7hKPh1kDzvjrepK+9uN0XGHosZtK0utZ2QBzI/8G7OsE4AAGMs57K0Sc+ESGb/m0zT 4vCQ== 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 :date:message-id:from:references:to:subject:sender:dkim-signature; bh=uKp7xhjrn8JAMxRn7Eh6DLrUkSXuCfrDogDTZsiE2XY=; b=iH+sRhKFmi2EGJmUBilTtAvYU1LovOpSpF2jO1rQ7cutdHlja3NUL8y7krrUvkLDR4 94GMU/TnfTLSntVo3CWMpGZMsR3tbMvq9ljiGivSuMV8Yo2h1xpWY5S13zguPCGgM0Jk zQYhlE5W0B4/A1Su2ziWqe2lrHctlecQ9zzBRX04L1hamnUjChXazk3VWUdsBlGd+C4V eoJ52pz/3HBzyR9Ig+5k+m6sO8/PeUJehCwp/R/DpYjAAQk7w8gvuZ9lMJp1M965+OF4 Bee9Rri/1cs1NkLERAg1htS4UCnsFzzaIsYew/1FdfmvZh1ZWgMV2N3S7RlTlbBcFvjv j+gg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=xsqCy1S7; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b="x8R3/A6f"; spf=pass (google.com: domain of denis.maier.lists-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org designates 80.241.56.151 as permitted sender) smtp.mailfrom=denis.maier.lists-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mailbox.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:subject:to:references:from:message-id:date: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=uKp7xhjrn8JAMxRn7Eh6DLrUkSXuCfrDogDTZsiE2XY=; b=i+bLj5JmB4UI4TjK6kxJXGmL3700V08XphgschxcDsmBjpaLuGe9sFzZXeV3+hI08p jL/62GkVJts18e8u0Bu9MUgbQLQmTHgXRbOp1h8jPZ6tRaBk3wBDgZ4Wis/T9Ol9CuF3 xVtrgbssECGYNAadnLap47U3BtDIHbG/59g1XQgtz1dY39Eeeh/r/2GMNkmsXi0t2yfv GOEugwPNng9hVz0BteGqUHl/QZHVlT+Qbpzb7fHLTHEhAa22xQ5qxKbHRNKmIibIsMIa knhhSS8fVzLXxDIsAKMzZyzVlG1XpAkoqjHuwNLmHfHEPdj3HIOlmSUeiW+rtyZZMsHb WFZQ== 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: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=uKp7xhjrn8JAMxRn7Eh6DLrUkSXuCfrDogDTZsiE2XY=; b=N8duIFOp4Q+um1X105wfyO8ukSRUFRz+SnTVFaQlZmVMnoErSleU8u0YFd1L0zyUiE aP/0CpuUz0Zx60RJ9AHVTCzNpSBMkxyQaHp4F0RIxRSQQw/mpxnzT7P+xgxsckvBhIYH OY4tvxoOrHiH88G4U4i9FA2sakWtIbEK0Lw7kOOp9H64OoccsjwRY7M3U/+CUttlo3QO mBdPk6MctyXROgy48AtuQQ3fSFQZMWTnYEaM7HaBUciwKzv4i7t4njFbKH2BTxXnlIpT 09GCNCCfQZIz1wGAXzIQ9nbFC4GLXjpJYIgWKm1MXfgEohmWnwgu3gFgvEhEZbP6pg4X lyzQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531DF9/8L1U3iQpOWapyEz3o83XF+LJB6q55UkFJVs42qsttd0Q6 qdX8Pnw6aUAsC8vjjQERXyc= X-Google-Smtp-Source: ABdhPJy4JLnzuiBcoPHt9grWbrc5PtgNOFz6vb/7+lOHD+3c014L+ynbGIqQb4/hPU1SuCKWglcmjw== X-Received: by 2002:ae9:e70c:: with SMTP id m12mr18286092qka.91.1600188235452; Tue, 15 Sep 2020 09:43:55 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a0c:bd24:: with SMTP id m36ls3441588qvg.6.gmail; Tue, 15 Sep 2020 09:43:52 -0700 (PDT) X-Received: by 2002:ad4:53a8:: with SMTP id j8mr18943843qvv.26.1600188232370; Tue, 15 Sep 2020 09:43:52 -0700 (PDT) Original-Received: by 2002:a05:620a:2224:b029:f1:b630:a9ab with SMTP id n4-20020a05620a2224b02900f1b630a9abmsqkh; Fri, 11 Sep 2020 14:15:01 -0700 (PDT) X-Received: by 2002:a2e:88c4:: with SMTP id a4mr1361197ljk.393.1599858900406; Fri, 11 Sep 2020 14:15:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599858900; cv=none; d=google.com; s=arc-20160816; b=Txmaco/Up0ZH93FKyy+N85mCqX1cAuFB+Asx/DBe3rPsnzXXyY7xF/RtMrr3r2bd7R 8FPip2XVzRuaqYG97yWIhmFqSF4O/g9V0jDsK6l4yT8zS12Wt2p2MxInBJcgr5wlSckj DppWkMG0iy7KP93EPzgPM956gIBESICGfDCmKcwlJJP7Q8K5hvTb7AxaZ8Kijhmy7YSI iCTwBVHUm5gRmqpjXIhNBzx138TWejTuNgIu9TvzOo57UOFM8ZdxVmwWFqO5EZGdRMVp 4b06tcSu1YUw91OPUYFLzKSRXQBpOWj7u66fZwAW/DtFLUl9k8AG052ngJ1jTctOWEVw ocEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:mime-version:date:message-id :from:references:to:subject:dkim-signature:dkim-signature; bh=2Wh/jf0NstR7kh72naPaU2BqAom3iCUbM8JmwKd0FSk=; b=nrS7cIlnY8TYv7CdoadxxNNXAKVzvIsazAp4kNPSqLj0WCNOpYo+M0LW1VTEPan7hd DlSBzbKsGYHQOU/93baWr9hS0TXI+2L250yB5aN4V+ciJaJt12SbPz7XDYu0gyE2K34t LPIRJGCicMVdAvmzf+L3Dtr2pZQUoOdd+/ozuMW/yjYQFR7XkQcN+Vs9jJDkML4ciHAL aMUemKtxZfI1PaG8BAIpExUwUJINIJgU5BmdiWFr1IVRlcnRHVU7GCq39R9EjAy8IoiC Mo+A3c7V8WRHlRUJSOV0IpZc8oUxEuhHzKQFSH5mmemA5ONga4rn3jYlGtr2PyFMFW4x L3fg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=xsqCy1S7; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b="x8R3/A6f"; spf=pass (google.com: domain of denis.maier.lists-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org designates 80.241.56.151 as permitted sender) smtp.mailfrom=denis.maier.lists-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mailbox.org Original-Received: from mout-p-101.mailbox.org (mout-p-101.mailbox.org. [80.241.56.151]) by gmr-mx.google.com with ESMTPS id 138si49551lfb.12.2020.09.11.14.15.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Sep 2020 14:15:00 -0700 (PDT) Received-SPF: pass (google.com: domain of denis.maier.lists-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org designates 80.241.56.151 as permitted sender) client-ip=80.241.56.151; Original-Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (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-101.mailbox.org (Postfix) with ESMTPS id 4Bp7nH56j6zKmhT; Fri, 11 Sep 2020 23:14:59 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Original-Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter02.heinlein-hosting.de (spamfilter02.heinlein-hosting.de [80.241.56.116]) (amavisd-new, port 10030) with ESMTP id uPcH35An6rhI; Fri, 11 Sep 2020 23:14:51 +0200 (CEST) In-Reply-To: X-Rspamd-Score: -6.88 / 15.00 / 15.00 X-Rspamd-Queue-Id: D812F786 X-Rspamd-UID: 55c553 X-Original-Sender: denis.maier.lists-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=xsqCy1S7; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b="x8R3/A6f"; spf=pass (google.com: domain of denis.maier.lists-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org designates 80.241.56.151 as permitted sender) smtp.mailfrom=denis.maier.lists-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mailbox.org 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:26151 Archived-At: 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. 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. > > The cito thing seems more special-case, but maybe that too. > > 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 >>> >> -- >> 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/msgid/pandoc-discuss/1adfb0c1-d745-a6dc-bf14-f790e3f1280f%40mailbox.org.