From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/26107 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Albert Krewinkel Newsgroups: gmane.text.pandoc Subject: Re: WIP: better citation processing Date: Fri, 11 Sep 2020 18:46:17 +0200 Message-ID: <87ft7ol0rq.fsf@zeitkraut.de> References: <360dbe5b-f1ef-17f6-32e6-8c9f85204844@mailbox.org> <865f327e-d305-4409-dd6f-1659f6a884cc@mailbox.org> <87imckl2tg.fsf@zeitkraut.de> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39531"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCZJF7XJTILRBX6T535AKGQEG76HFWI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Sep 11 18:46:26 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ed1-f55.google.com ([209.85.208.55]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kGmBu-000AD6-GF for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 11 Sep 2020 18:46:26 +0200 Original-Received: by mail-ed1-f55.google.com with SMTP id n25sf4858494edr.13 for ; Fri, 11 Sep 2020 09:46:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1599842786; cv=pass; d=google.com; s=arc-20160816; b=RBQz4MIHlmAAdS+Ga06Mun6lffR+Tl9jGriTO6lJtxDbqaNK1yO08BrtVySDtK4a18 NyHZOiYAvO8nRoIOkI88IIwdUwmSIwWlxT9OjEv0povn3b41PdhWJcy3JsKp4twupQvh +vD1KOC6rD4hqaHSNgvJlREMT+NPuHrr2RZKZnKBODezJuXTjd6YPfGt3yEDrkOZvei+ wTCyX9U//ZSf7oggqoEXeb0sgc3W3b8vMiNGp2a8HVvwNOWqAHWsNNsNaw+83YQhWtjG bNP75Ksgzxj7X/z0PYoC6hvrPy2Y1OChJyqvArSRbaH3rVb10CIDmaDQMKH+C18PNuYx 0hJQ== 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:mime-version:message-id :date:in-reply-to:subject:to:from:references:sender:dkim-signature; bh=d7SZakVR0ouvv/Y5dtfAVDnPL+0BSU8Awu3g46JtTR0=; b=ewLbLchlCrVcJW5YMaOo0RTPBoVqYknTW7XxkCuel6Jh6fER5nC5z4Ulk0M8PGB07l FYwYl7N78etICRByRPmSYHO275ZxGUfQ9bTVZD15K/KJNJaYEZHZztEZD6vfrzodfbtZ xlAUvJU6p/1IFMk52aS4wKTWg/T8jWyXKwYyZsBGGvCMWENUM4y/U5Vs+hTtiJWBeaFO 1ZQ2FE/LUW21oGsfxCaULTA2HL7+TQr4jIJ7ntOiUs7yPg1QFBZ+/o3cEx82RJY6EEFD CiCniwnzJggrVfblDFyWDNAZUJ4J1ZmVhtFrlOfek/H/cfy2L7O36T1TdDcOzjom5wha /x9g== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 2001:67c:2050::465:102 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:references:from:to:subject:in-reply-to:date:message-id :mime-version: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=d7SZakVR0ouvv/Y5dtfAVDnPL+0BSU8Awu3g46JtTR0=; b=ExAd+n6koD6GYhHiexzZWga+TYLfP555ZBzImLO0muOhrmpH/Q73IJmXTeyWQY8gdx mwR/w5tS9A/beHqAUww7OuZWY9AXDz6dhJiHnnAeSixltK7b0veavbsgjCTBbj9EAKoR XQ/C48xvvLh4YDEZmdCaqTsvOotYlbQKemlA9jUyO4QIkdntsA+MeXLLFUntjLv9FvhZ oo4CzEZre5S+gJmU175mM6z5lgMKT25I4nJRfTl3KUK667ga5QrfN/PYErRo3qrHnTf1 xGMpCl6xTvFoqMezgOc/WL78WjmepVHYAl60+6s+UdP6UiG8Vf/GfcD+DWD9/6ygfHUl x9TA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:references:from:to:subject:in-reply-to :date:message-id:mime-version: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=d7SZakVR0ouvv/Y5dtfAVDnPL+0BSU8Awu3g46JtTR0=; b=oZr3id1qzcEgrugacPztxcQJzKYxivU9UKhzT6wiJ9wgW79q8jRyVRakZKx5jdaN/i fBQ2LDOrB/ed4oLSoL/GMXQM5Hi/olyIXlhdySZLNKc1y2kBThC+OkWLnOZo+hmKbHsY HQ0HdloOHg/4JZ+LxLjf36q03YIisUsL8gFYYNPU8kLRlYzbiOF2HKeAG4mehzwnazzL qNXUhaMLEjUQozMldBAo24lFC4CdCtDfX89D/YEl17Ec1R+Mgxju9lFK+uPku1GIZkDM Rlevny8k7q7bASpCVlTwSV3YXzWCGg+wseExpJPZvv7/bJqMW6tKCCZQKCuq9zCIA1sP rQmA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531Zcc+WIt++XGYyvGoSFbCzaZu2tRFjgOXgLmTsQbsFqV+Jhq7Z qiKw6tpfpr3YcuIaKhCyThA= X-Google-Smtp-Source: ABdhPJxrSVzLJsunR+ofzd0D8iXayw9S1YMR/4NWPxA4W9JCNFyP6dYiQLl4d27Rk2ju8ke5mL8vGw== X-Received: by 2002:a50:8881:: with SMTP id d1mr3101709edd.306.1599842786251; Fri, 11 Sep 2020 09:46:26 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:906:f849:: with SMTP id ks9ls1315439ejb.11.gmail; Fri, 11 Sep 2020 09:46:22 -0700 (PDT) X-Received: by 2002:a2e:818b:: with SMTP id e11mr1164848ljg.0.1599842782341; Fri, 11 Sep 2020 09:46:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599842782; cv=none; d=google.com; s=arc-20160816; b=g1zjWTkTlfOwUTIF7R2mLKFxKOAknU4RDWOPaUX0/8Uj03KkwPMasr/lc3y9yhM0Qk n2YccbEX+v2oH2DiRNGJtG/YFVbfIuurdyoMsU+qZ9foTd/K59A7w53nJMrjFCS+dCuR En3WRmOTA1YUgAo2oye/D0tO8sAd72DPNUSkDseW7ddwdLzCh6Fg0oH562jGk6JUxiEN UBJnTMGztaB21excQB8J+WxMNxoPfBQcSCKTpAx+eCwVEUkbmdYnx0JWDwlVXZPKKx6X h0o4GarLIo8uKHptoV//XL7djSJ3DSB2Fn7qALQaiBJpPenB0loB1WeMrsaSTREoi5Mz +Y+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:in-reply-to:subject:to:from:references; bh=TQpbZB1/9//yPq8Aow33xNkoMt9xt3Nfq0m1BLerxLk=; b=V3erILgZHifu6FG2ClbQSmxYbQCsaPAE1QLQ/5almxxPbtWPURYyEQn3mcEPwmWWax TOgRaOwPhOLe0P/Uuv4gkVrZyPtbYfuxpTOTHh9At0ohGffN0ariTvqQckX/syq/1fnB 5snwJUx9eT2GsZceALhxgWEyWF/JAmvb16DVTLEcc7dQ64jtTwETMEIhRWALIlkrm+d+ pOo0UA/HknRFlGgLre7quuu4TXRCzqm72Mc5suIOoWFd7CVw2qgKC9EzivcWZR9W4Pcf 0mOI3SAjF1bTYplEWD9Wq/6wwYvlP1/tnU+aem9bj4SMu0PvrUvJYLFtMSfJPiFjxDq8 lDhA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 2001:67c:2050::465:102 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org Original-Received: from mout-p-102.mailbox.org (mout-p-102.mailbox.org. [2001:67c:2050::465:102]) by gmr-mx.google.com with ESMTPS id h22si90480ljh.7.2020.09.11.09.46.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Sep 2020 09:46:22 -0700 (PDT) Received-SPF: pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 2001:67c:2050::465:102 as permitted sender) client-ip=2001:67c:2050::465:102; Original-Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:105:465:1:1:0]) (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-102.mailbox.org (Postfix) with ESMTPS id 4Bp1qK4KLBzKmLK for ; Fri, 11 Sep 2020 18:46:21 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Original-Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter01.heinlein-hosting.de (spamfilter01.heinlein-hosting.de [80.241.56.115]) (amavisd-new, port 10030) with ESMTP id Ij-iYSaGWR9D for ; Fri, 11 Sep 2020 18:46:18 +0200 (CEST) In-reply-to: X-Rspamd-Score: -2.22 / 15.00 / 15.00 X-Rspamd-Queue-Id: 96314150C X-Rspamd-UID: 2e5a3d X-Original-Sender: albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 2001:67c:2050::465:102 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.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:26107 Archived-At: 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. -- Albert Krewinkel GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124