From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/26109 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 22:31:35 +0200 Message-ID: <1adfb0c1-d745-a6dc-bf14-f790e3f1280f@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> 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="9808"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDAN5ZVOUMHBBLN5575AKGQE3P3ZHZA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Sep 11 22:31:47 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lf1-f60.google.com ([209.85.167.60]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kGphy-0002Sh-HZ for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 11 Sep 2020 22:31:46 +0200 Original-Received: by mail-lf1-f60.google.com with SMTP id m9sf934609lfr.11 for ; Fri, 11 Sep 2020 13:31:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1599856306; cv=pass; d=google.com; s=arc-20160816; b=lQ+AbG+ww8ZVog0fgKZ4YXD7KkjVe3/6VdY2ZFQvgMbpp/JYjoJCnKr44bipaO0tgk l7TywR7otbbkRO5ATILBuvqYuX9owqfW3eqFrVq+lpqB1rHc97Z15yZeYti/EtYrDPHu C9Q2dm/sCNa0zrjuRVVc06gkJESId9EsOMJW4d/P/y7VLzXJNBOb5/R5aKfpGw/N1ANl Ff47HotNaBGw5oN3npHb4w2BTijj1c3Ih5CZr9+a5O7/SvezKaITMw0dQpNa4k+Tk0hD vyXffe2QPwj5zvoqRH9ahVAwkDEm8VFJgN79rLGxI5vEHk2zD6+Rk0/abP/OIihqoMc4 a/yQ== 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=9hwL/0mbxTc6m3rm3wbT4E9V87we6pCtA2VMwP2HuYI=; b=hVZlZE9/Pfix9bT4w3QW1+jiad+lTfmIgN1u5gRwYxhc+YbDOokJYNJ8/dH90jLB0l xiXvLmWX2K+F1PMzY74XZXOhYlN6fepNSqHnxi/ZIb0035IFyN9OtO0/N+bT0mfYiGik CfduVVrPbyyNb7tAzprRPkjpSMl+7LwcXtMAKBia4EBw1t17B/QpXygpe8NgiqkE4smi GMRGywGPQMwQrs8BeEC+FARPuNiUwkKWMMI3t/ss99TghRxo//7NJrSv0T+eP+TplYay ViO1dR3uUAmi5d3F8lt5Zz1YLCqBwS+3TAUeBKMk6+IyCsYOCbjB9JghUkT2nau5mEqo yDlA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=eR3nNd2T; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=xEZzc0Hz; spf=pass (google.com: domain of denis.maier.lists-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org designates 80.241.56.171 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=9hwL/0mbxTc6m3rm3wbT4E9V87we6pCtA2VMwP2HuYI=; b=o25x/wXBpw3XoMIPd+07oldplX2T7n7FEywD7lxRr5xoc/4iH43J/rk9xt82eY7z4D 8DOLgX+IB0IPw4gcVkLEZpay6yj2ohmrj/Eg+utKkSCOrcTcli1XmWTVXV0YhhE3Yl3m TTpOeu3GejhMe+B8UkfYSj1sQrfJjLQwoMMXrzDutFbxy6IOW8HbyzUZoMba5R4HNaB8 8cJntuj//G2x6OMCLiJVvUkGFZAN7pgzQzDT3n6Q1OyESug+vYMwpFMqsEuUXVwicaVJ tr2lMqXfywH4UuYSX1gZ524RSDPCyksA/0KPyuLWNDxB7dhuNCZXB02NOhZi8rLhGMZm 7tEw== 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:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=9hwL/0mbxTc6m3rm3wbT4E9V87we6pCtA2VMwP2HuYI=; b=LzAbpSZQqJXZfTYTr8P6JuhLATeZ+m+NfnLBEvSW2qc9LkBDQ2ozKPL5PSypZoVgDd JVLqpGNik/Qq/esaErfCK1mEGvpiyZpkmpbDMhqZF3LSzotJuUUgJvwIkVADBJbrwBaX vaorc9jdEhpoAPamw8w9RBgvkAeDLRoS0IB1GqU/SKx0TAAYvf5IggALGbG2m6ixFICp fvXeD5RTfMmLF1qy1DA8jR8ZCEw6Pd3BzcC2eLvG5FQV2yvJ5/mXfzO8JbbI9wL1GJ19 USwjHGUnHlxj8auD2L97UiKpWeRozrEyt8P7HbT3iQm00YNs7tcyLPVJjxed/2W9Y0+y uGMA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531XSbGdN3FH5SCmj/XqC1u5B/txOZDcHiEIi9L9DCrDpoNFDtkm surfKQifWqwWbhV8ILnVvHY= X-Google-Smtp-Source: ABdhPJz7vTqdUAxcguBrJsNrUz9MjJAjGxWai7qrG5wmFsZJwhecQoJD9NTehMIBCKXzdHi8NJfGiw== X-Received: by 2002:a05:6512:36cd:: with SMTP id e13mr1362263lfs.165.1599856306028; Fri, 11 Sep 2020 13:31:46 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a19:c7c8:: with SMTP id x191ls571463lff.0.gmail; Fri, 11 Sep 2020 13:31:40 -0700 (PDT) X-Received: by 2002:ac2:54b4:: with SMTP id w20mr1346150lfk.13.1599856300514; Fri, 11 Sep 2020 13:31:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599856300; cv=none; d=google.com; s=arc-20160816; b=ezIKQKLS2o4KwjKJ4pJ5rm8kl8Pv6OeOqFWNVQ9JKt7bMkSc10jUHmu7ud2jXA/xWR KPV0KhqpJ7Vr2elPr34Jw/jQYH5MwC5wbkQj+oGyl39cyrY+mDv91NglVwymjxWbGVed pNUjFALYlK2Bf74Vb2DgFAwf9/k48hva6eJCAeXBwALtGn08OlAPeIirWriTr8AQyon7 aZs1q5ZmoSNLML3rs1AZi1b5SMp3bhtBfiQK0n4AlQLOjnLPLiy0Hd79DnkNTco8LW6l XvoJIjLOnW6woJ2QHABgt6k7dV64HyD+1BCPyYp5zmerrehai258WrmbZMOmhWQXkqiv lV8w== 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=qskJeToD0xIy8Hq8z2gq6TghWRjEcE/mtRAYQ6dx8FY=; b=hJstoL4CltucnMRA2wJR2G23ykg1aHttCy5yptjZnMnwe+zftawkgBblgdz8aMgHDG hT++mpDcSo3lY2SXKbY5mJ3u5jT586ZP0wbGHk9FmywsKxUnb6D53lanaM50v0OkaBJo +IV1p785YhlZPEdVtXqoriv8jGyWBCQLLfh8hvgYAH9fZASWRLGyJMr4zkahn/MG0Tea q+QZtu6to0ixb7uvgypHQYyQEyrNo1BYKejxR8x1JGLFo4SiRWB8Vrmm1yGD36nN6mnt GqziLFTnP5tgFDN7g7qJws6al/DnqwM9QJUf1rFuMNbfZ/DZkUQrf6jCHZ0kQ52+Cynd iYrg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=eR3nNd2T; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=xEZzc0Hz; spf=pass (google.com: domain of denis.maier.lists-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org designates 80.241.56.171 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-201.mailbox.org (mout-p-201.mailbox.org. [80.241.56.171]) by gmr-mx.google.com with ESMTPS id r6si109390lji.4.2020.09.11.13.31.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Sep 2020 13:31:40 -0700 (PDT) Received-SPF: pass (google.com: domain of denis.maier.lists-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org designates 80.241.56.171 as permitted sender) client-ip=80.241.56.171; 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-201.mailbox.org (Postfix) with ESMTPS id 4Bp6qH6f8szQlKc for ; Fri, 11 Sep 2020 22:31:39 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Original-Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter04.heinlein-hosting.de (spamfilter04.heinlein-hosting.de [80.241.56.122]) (amavisd-new, port 10030) with ESMTP id IZZBqXVLb-if for ; Fri, 11 Sep 2020 22:31:36 +0200 (CEST) In-Reply-To: <87ft7ol0rq.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org> X-Rspamd-Score: -4.27 / 15.00 / 15.00 X-Rspamd-Queue-Id: D92ED16FC X-Rspamd-UID: b6e8c0 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=eR3nNd2T; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=xEZzc0Hz; spf=pass (google.com: domain of denis.maier.lists-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org designates 80.241.56.171 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:26109 Archived-At: 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 >