From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/26110 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: WIP: better citation processing Date: Fri, 11 Sep 2020 13:58:37 -0700 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: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7025"; mail-complaints-to="usenet@ciao.gmane.io" To: Denis Maier , pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBC6K575AKGQEPKIHNAY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Sep 11 22:58:56 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ua1-f64.google.com ([209.85.222.64]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kGq8E-0001hH-TP for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 11 Sep 2020 22:58:54 +0200 Original-Received: by mail-ua1-f64.google.com with SMTP id r22sf895408uao.20 for ; Fri, 11 Sep 2020 13:58:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1599857934; cv=pass; d=google.com; s=arc-20160816; b=Yi6RMNw6bb04HkaqAFbTNwIf5NDIfu6t7r5XSRo1cwOc5mFUNWnOFCMK49F3rYS8U/ vitNE1tYxWgDVIcq1nkui9rSYu4aGMA7BCLBgxOtug1n2u6h75xpk+AzQ1UiWw6+QElP L3fZFPyofoUJmG35OLssp1rP0jjjg2P3Em5XIhOdHm/ZY6zAWW1mTZT8nMafnBit3h3a XixUpwcKxMj/L6NtloIvzQ2Y7hEMDts7Uwbc3YYqTSdIRYKWFQd9cSkVJsZjpHfMG8rh 7F65Wk4+69cyFVBxw6gUBPhtRUplVHK0DaWsvFwujacc5oucBIu23hv/LU2629CvHUrw DoPw== 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:references:in-reply-to:subject:to:from:sender:dkim-signature; bh=Cv9fqky3vVRGtNmdRISdIMqN4SR72w/G5gyZdoABBZ8=; b=w8wpX3bnTMoGYCPh9HlUxjMBM4v+hIkSv3KveDjIZ4zPhAiS4PzeKFbqXPcE7BxJjp 6H3yeQmCFGoPatoIgWexR3Z377XEi5iuLL+Kmt/fCT6f0lgelCjG6AA7/gksHlmHjXfx muS+whLDIp9QV0Wy58TZm2fmP1GRW9y++cTATi01+A4022Xd6PA4Ns2PuRFO//y5Lb2Q hTf4U7RJU/AoQBJE1aK2CSAsrAZEdkjTZqN+CXBLprxsSxvv2PoaxkBHeOpGh3xdEJFR 6oWSztg4Kny4qEo5yORVeeHxKiDaLilsPF5WypQziSHENtMWI+PfIE/wKfcOLCg3DCtc DiiQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=SJ3yoA9u; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1036 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:subject:in-reply-to:references: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=Cv9fqky3vVRGtNmdRISdIMqN4SR72w/G5gyZdoABBZ8=; b=DblJu8xoK6A+nlAEJph49475fyo2GT9XZKBT3FU7Daj2/ma/gPgEn84J2l1b1GWH76 k++ha77pCBsITXfDA5eY382L68NByPEtRJeOSsF8Ezi4q0xyKEVxqoNOB0LDEzMVF9nJ n6GvdCTy7A09GlBRKMcaRDAF6EGnjOu3itDRbJqdb4Rlgyvh8g3vLDQJXnj8nb4IiSUD Ec2NokPcFOLHkhAvDp+GmLMBdPve8YFFpGIQ3LCfkDmSXk5Moht8BQcM5oV7v6tIeqPF s1qchkmKJEz4xAfsspH+vkfiBk3N3GbKUaXI/Hd/npFy0/NyBCGO/3VQfIfiNumFVTcW 1fFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :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=Cv9fqky3vVRGtNmdRISdIMqN4SR72w/G5gyZdoABBZ8=; b=uB/duj1dGOU2FaGCihtsmctELXa3CPGuzXGejxq0vqYnTqCI0uZ6G07F4FGE5MQIQT CKjly9uoMQekjckHawmnEMhUKNLQa+b4/8QhjRh4R2+7G7wrzoRfoqKgeQidb/PmBltw SLn7X+JJX8/bU4G9ZB0zalwnDZx7IPQUftYdAB9rD5UfVsFQcJ4Qaig+mrxsjXdTNJLx k8V/CL8GO37FHW0WCFpLrx9QDh3hG6jlPTc8pOP/vlQfWm2WPUJ4DvhmLRXyQU7cNlrC Jr76UbS4RuNy+VI97Py+vidpv4rCfePS3TjoUtQKZ3oOtkbHt0/HWtmYprsefOq0WLp8 TITA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533H5tGHpo7SZYH5Dekq4/M8PtqU/NJJ3nuT60+zSjLLkBBMzUjI d8v5sGLLf7dd1aId5NIpcFM= X-Google-Smtp-Source: ABdhPJyLFgeQw/IJOy2F9Nd7D2xwkakYbI9ZuWjkh3NU7rBcbT3DrNIdchvUyUrGGV+6rbF8j5ArJQ== X-Received: by 2002:a67:e190:: with SMTP id e16mr2585808vsl.5.1599857933932; Fri, 11 Sep 2020 13:58:53 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6102:3d1:: with SMTP id n17ls492104vsq.2.gmail; Fri, 11 Sep 2020 13:58:50 -0700 (PDT) X-Received: by 2002:a05:6102:205b:: with SMTP id q27mr2470580vsr.105.1599857930854; Fri, 11 Sep 2020 13:58:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599857930; cv=none; d=google.com; s=arc-20160816; b=ukpmA2TnLxqLC+5ntkundeUeO49jFWWh5rKfzvsa7XBSLgmHKtAdiFdhC3BQoawGNU L2oAgKOVAtXOaiqIB9loTgSqVfVSeS0btMr/E3mK7DgTzzOLCEXKIqRmncpoKyjrPBsE G2J88l5r3mtgWTyL+CXWQ7LuXeLelkt4L95uGo3hFyYNEPdk/tlRqr1l/gT/T5I+ZJ0a P0AYTB9tnVX6vfmpmgAA8tn83rPfpAg/0e/haEzyuba3C2RDbClUInwyPF/Ti5NTWoid yOIQdQFFecnupoKnZBgYDAh+XXrmZCimrLUk9ic6HVgn7J6vTVNgwkhv8xIlm04fZ/Oo lQEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :dkim-signature; bh=xSJEFdU38dPwOdyheoY1EzrvhPhcLJuNjemKNnzWRWs=; b=YO82nRuW56wElkmSmiG5bp7WGrg5Of6CQH4C/xiM/CAPUvrSGRRhKgoZj1fszEuoqa +mz9tbEev+ovVJAT2L5UY/AwxB0VWqwAWK5xr3XuKNAJOYmXgbSqh0mzOW4uK5R7hfq2 HQtPSCsLnhxe9UgX79JSCxoqBNEgYgOjP2nxP12gQofugm4zQmLSm33n5wJEPwh3kgOl 9DLtiy3DPh06W5ewjAUPZn/9mKC3y2stbCCzSweN9FeQ3HOBhHEHugdf7k0Q5QNE5Fkk fBtiRQoVk7h5C5M4p8n5ZG/Wnw+W6mCknmth5+Ek7AIsojEKpmGSUJAluGYzwHeSvNUa C8mA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=SJ3yoA9u; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1036 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com. [2607:f8b0:4864:20::1036]) by gmr-mx.google.com with ESMTPS id s11si200756vsn.1.2020.09.11.13.58.50 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 11 Sep 2020 13:58:50 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1036 as permitted sender) client-ip=2607:f8b0:4864:20::1036; Original-Received: by mail-pj1-x1036.google.com with SMTP id o16so2297861pjr.2 for ; Fri, 11 Sep 2020 13:58:50 -0700 (PDT) X-Received: by 2002:a17:902:9881:b029:d1:2f29:15c5 with SMTP id s1-20020a1709029881b02900d12f2915c5mr4005726plp.5.1599857929361; Fri, 11 Sep 2020 13:58:49 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id g7sm3137832pfr.150.2020.09.11.13.58.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Sep 2020 13:58:48 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 7278DA2A1; Fri, 11 Sep 2020 16:58:37 -0400 (EDT) In-Reply-To: <1adfb0c1-d745-a6dc-bf14-f790e3f1280f-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org> X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=SJ3yoA9u; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1036 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@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:26110 Archived-At: Yes, we could definitely consider adding support for these things at a later date. By-section citations would actually be pretty easy. 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. 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.