From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/26149 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:21:54 +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> <64087dc0-cf6d-4c8d-c579-9b4312baec2e@mailbox.org> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37029"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBAABBSG6QP5QKGQEO4CRW7Y-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Sep 15 18:43:56 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-qk1-f185.google.com ([209.85.222.185]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kIE3g-0009WU-HR for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 15 Sep 2020 18:43:56 +0200 Original-Received: by mail-qk1-f185.google.com with SMTP id 125sf3342882qkh.4 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=R3uh2x9KyplT1rfi8MdZLkaCCGcWz8FZKFLrVRMbBYuuaoPPBX/d/ZtFkfXp3M5ndk fXpL2G7ZXQRpRRk4Ohl5Su3ksplG86lpXuQlugdvYuf5kmFrcG7tE8nGYRHbNBiJs1ck RxGHloMX3hbe5rue2P0nszvlgZLEwtHFSULL4kZtreED8trqwjMNuERB1Ehw7LEiV61e HGs5R1W2sG50u8/5Mb/BobNNPLcwAZ4KGDhstca7ACCB+6nWn9mTLO3g12yAMkx3Goy3 /EneqkRc4QcpluxfvcMQwoT3F7O7/Y4ufh0Q+9zsNOKMWhYIVigjMhksiHtXGou6OeUP wAbA== 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:content-transfer-encoding :in-reply-to:mime-version:date:message-id:references:to:from:subject :sender:dkim-signature; bh=S5h5affyA39fdhGbIdUgK9b6KIfwXiBQcR1/eY0OJ+E=; b=yTTKSN1QGyAl68YTrl4kywOkfosOSlePd+xE+9jap3TY09jb12Yhe1jfKPBwMMzhEs bbQeeFhfPXkmkW8EtFpDs2+OPcVTIzIhYVMX+eAIw5JAPbZypA2cBu6nXpYk0kb3RMzj LiWtVdm8RvqbndfhVIkc40ZejvBrvBasjS8yvFnFy3GOyx+mdKSuNiIPXign6pdcBKx5 QjDp8t7KlymSqXOERJVOKswGC7dMjOG6TkI+nf8mZSohZ/sG8h7RM7CpRmyK8VTTYBIQ oqa2MSFEnA0TH2kVVoawHs+Rcn+8+Lbt7rg/J5/h7r5K6dXSFAVzdewXSgduV+VZj+FO U2CQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=Mr3XzNKg; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=oKAvsxjW; spf=pass (google.com: domain of denis.maier.lists-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org designates 2001:67c:2050::465:101 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:from:to:references:message-id:date:mime-version :in-reply-to:content-transfer-encoding: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=S5h5affyA39fdhGbIdUgK9b6KIfwXiBQcR1/eY0OJ+E=; b=ZYrGmefNFLlaVNvEjvoLaM8LhhJf+CDbUzrV36UKOAxm02hd8oNv7Emk6Lmc2WCsQk XmDUXLl63koC7qIjy4JvUjasLs2WGrhWOkvzolKaEswDMvEfIK7nqeGD5M106bDpOh9n zR2Mzu0KziWPX1bRLb7SHlMI2nOuvsNrcTnZ7a+ogX74+fA0DkacPNAXlfpr8FsmEQUd 9fPNI5R1jmBQxKXOEltoBFmrD5kCm4R868EyTNu6UZmk7bJonNYLj9azLYcmAFP6yzu/ NCe7r/YAo9hfAABuPhCVWVGt3CjBdbioGZLDItpfmZCSPrWA6lwhNr3w6p+1bKHEs7fZ dmNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:subject:from:to:references:message-id :date:mime-version:in-reply-to:content-transfer-encoding :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=S5h5affyA39fdhGbIdUgK9b6KIfwXiBQcR1/eY0OJ+E=; b=AEZk82/snx8haLYeWjajn1SSkRGf4icCqBaQbfuwJhq+8QmX020SHTgCwahS5omc5A z7hQWJ6YitAXjgYQeFvYiJqi9kdwhasx4irxfQOsetsk0R/MkLi9WSLblcJPxiWJ9jvm /7VZnKz0TeacFXdr2qenQB5EI52bWOJw3M93MAZflqr6NL0A2jFJaxi/sIaaxVgkZZpy jR2RRnKIuE8/ZkvtDqkrC/aaTS22Tc7xvzQChFTX/xf6QtkblZJu4zC2z5/xE7hiHfaP ZH9Z1W1x5KiwBAjjx7riSzXMK9rWHYbv3uO0pHTfGKl3MLD7RMjMx16K3sqyUWdLDTP0 gE1g== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533bWhRO1+HXzBFF22HeS7oKnFMwwJMfTGWzKIR6cCpB0TDBncyB pWEcwG6t3b5daGT97P/rCRQ= X-Google-Smtp-Source: ABdhPJydcrscUOpVhQe8hCSsm3rbtlbruz80rrYcnZrHa6OUeUEyBje0QPAXEVzAALZOQqWLZdk92w== X-Received: by 2002:ac8:f23:: with SMTP id e32mr6603499qtk.168.1600188235605; Tue, 15 Sep 2020 09:43:55 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a37:f50b:: with SMTP id l11ls6931716qkk.6.gmail; Tue, 15 Sep 2020 09:43:52 -0700 (PDT) X-Received: by 2002:a37:9a0b:: with SMTP id c11mr18636370qke.310.1600188232371; Tue, 15 Sep 2020 09:43:52 -0700 (PDT) Original-Received: by 2002:a05:620a:2145:b029:102:b6b:b400 with SMTP id m5-20020a05620a2145b02901020b6bb400msqkm; Fri, 11 Sep 2020 14:22:02 -0700 (PDT) X-Received: by 2002:a19:2d07:: with SMTP id k7mr780287lfj.507.1599859321574; Fri, 11 Sep 2020 14:22:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599859321; cv=none; d=google.com; s=arc-20160816; b=Glxs2VvZIRfriPzPeWE2uPB8M0OHFobJptI/IllnRdJ3yDFwqvuCgfbtGMued0OYe5 SoCg1cNkwjp698izK9lDFPtyXuNZUGZE1srvOI4PPD+BjL0v9Ts4WS7dwFMHXkWKoZTZ bNcyaTpnCwOQMVY6ut1uJBHYtWBrKKyVG0zry39PI4wG1k3cyxUsyYp6LqR1RnnKk81m 4bO3xJtQoFNIwtfiC0i8X2m4RZRqe3b5wc6Nkv9VF8lJ4qijdcFSaHNUUz/7QR9E0mWY sYvDfsthyFWPK6nFN/FJqfShiUjErjC6O6Du9V7vO8EnEESFFQ7ee0FaN139xRq3J2T0 A0dg== 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 :references:to:from:subject:dkim-signature:dkim-signature; bh=FHCn1OAsyPx47gw5tBTRipElBkKELMgNp2pzAK0LhXA=; b=dqaKNK/2dsWxBEzedMf4rwrDWPrKDBiemNlkx4CT25lvbSwtiPz/1SQ7pTn0JHst9r WJEUvX0/9zwroDNft0XroxczxR+2mmhyjie5WzsJZDT1VtqLQHhtpaB1Nhp1AZR4M5+2 JeeenzUAq4oxTL4Ta3ANI8nglPdotrdxZmkkQQu7L5oT8WsJXpQkb8x0vF0KnS98BltU nonQJcDajEthzmKMqAEKyrqIS8NXyLbUEMID53RR9BV1+qZKqeyEqu1pGA+519n/IM7s AlTvEAdPjpy5F1VPfa6mf3nEIw8rX3S0FNXIT3fTkPJsp6RybUBLBW4WfY7Yd650Y14C scYQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=Mr3XzNKg; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=oKAvsxjW; spf=pass (google.com: domain of denis.maier.lists-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org designates 2001:67c:2050::465:101 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. [2001:67c:2050::465:101]) by gmr-mx.google.com with ESMTPS id t80si44427lff.9.2020.09.11.14.22.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Sep 2020 14:22:01 -0700 (PDT) Received-SPF: pass (google.com: domain of denis.maier.lists-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org designates 2001:67c:2050::465:101 as permitted sender) client-ip=2001:67c:2050::465:101; 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 4Bp7xN6rzdzKmhT for ; Fri, 11 Sep 2020 23:22:00 +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 orREwxi7JlMD for ; Fri, 11 Sep 2020 23:21:57 +0200 (CEST) In-Reply-To: <64087dc0-cf6d-4c8d-c579-9b4312baec2e-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org> X-Rspamd-Score: -7.88 / 15.00 / 15.00 X-Rspamd-Queue-Id: AC45B1702 X-Rspamd-UID: 1a14f2 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=Mr3XzNKg; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=oKAvsxjW; spf=pass (google.com: domain of denis.maier.lists-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org designates 2001:67c:2050::465:101 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:26149 Archived-At: 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=20 > 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.=C2=A0 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.=C2=A0 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.=C2=A0 (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 >>>> =C2=A0=C2=A0=C2=A0 cited work to the current document. Plugs into the = citation=20 >>>> syntax and >>>> =C2=A0=C2=A0=C2=A0 requires citation IDs to be rewritten before pandoc= -citeproc is >>>> =C2=A0=C2=A0=C2=A0 called. >>>> >>>> - section-refs: adds "References" for all first level sections;=20 >>>> creates >>>> =C2=A0=C2=A0=C2=A0 temporary documents from sections, then calls `pand= oc-citeproc` on >>>> =C2=A0=C2=A0=C2=A0 the temporary docs. >>>> >>>> - multiple-bibliographies: allows to partition references into >>>> =C2=A0=C2=A0=C2=A0 categories; implementation is similar to section-re= fs. >>> 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. >>> >>>> --=20 >>>> Albert Krewinkel >>>> GPG: 8eed e3e2 e8c5 6f18 81fe=C2=A0 e836 388d c0b2 1f63 1124 >>>> >>> --=20 >>> You received this message because you are subscribed to the Google=20 >>> Groups "pandoc-discuss" group. >>> To unsubscribe from this group and stop receiving emails from it,=20 >>> send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>> To view this discussion on the web visit=20 >>> https://groups.google.com/d/msgid/pandoc-discuss/1adfb0c1-d745-a6dc-bf1= 4-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/af98c088-941f-36d1-ac9b-a263fc46a219%40mailbox.org.