From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/26108 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: proposed --citeproc option Date: Fri, 11 Sep 2020 11:51:49 -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> 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="5859"; mail-complaints-to="usenet@ciao.gmane.io" To: Albert Krewinkel , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBU4O575AKGQEFMTDBZI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Sep 11 20:52:07 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pg1-f187.google.com ([209.85.215.187]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kGo9X-0001NX-Kk for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 11 Sep 2020 20:52:07 +0200 Original-Received: by mail-pg1-f187.google.com with SMTP id g18sf6665382pgl.10 for ; Fri, 11 Sep 2020 11:52:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1599850326; cv=pass; d=google.com; s=arc-20160816; b=gRx1/DI6wq0GJycrY531GM9SN0UzLF1M6gGMmFO2g3LZQq1zN1KprB7OL9K8jKwCNZ xPBXPHQYL34oSmem4cldjarJT9WutJY77FDvZjsSvsnYphPARfM+FIrT/vaHSKG++CBQ qWQzIkO+sC5wvzLTgGX07LOJpsKYqNhAqRQ9cyVNpz+DhO+PNOVudm9CIRpzLObsS80Q fzWjQIwqHbfd9t2iU/bxayn+OX/TAYiYXGiCnvo0fuGOXNB+KYAyQIdZD4jkxBtONSjv bfBmNbuCtAXTm92I1BGUedTUu2YFJ0YdQQoY24VxoBaSmQzxQbx/z7SlbUoFDnHRik6h Exfw== 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=RRwl9Zsvr+SVmQLqFNYnJNX/sVc5G8kVXLMI7iEKeTg=; b=lfzaXnMjZVc3pvn2FfQ88gM8dArcfofPv/6wepiA/Z1/SEsBlCDDJ673bkQOzgr2Lq zdDCpLSu/Tm6j3OXCGJmBRv8Ip1Ba2xa8UhXmo5QIe01scN/LqoYpHusIc9gb4z9TorT dn2Wgf72S0b2sz/XQ1hxCvNSBcC2vCKSwmHJ1jBhd03qbTuK1Pin8zBoSvVIWK8vboHU UsuDT+8t6Memxl6XVpGXifNHCC0ZGueKLuK0z2iuhyAmZI7DMwTq6c9k2C19rsYVhbZH T9jXGCGvkqwVmTDHZS9bys2zmQvkukD+1H9aIw2OgG7e91578i9Oi4EvwHW5f37+FEZH E7rw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=As4ynUE0; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::434 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=RRwl9Zsvr+SVmQLqFNYnJNX/sVc5G8kVXLMI7iEKeTg=; b=eCgcw18j4RmqbdLsH2svjK8bEeaDfnRi2Kzneu0h7UhODVYqpgv2CiP8Nsc9dgP1MS cBBKj2t35Yxz8Rt6nLNoDXwv9JX8C1FKRmkS9K16HLC6MmoUw9UoUN5IeE1f4qygV8SB u1jRRLbWuxjjXdMxT0Zv9yz4Zt8gFGki87XuBTXdAdQaV/nwJ/GDe5FPxyDotfuQNVI8 bUMrmQ9G1oapHJymVpmp3gZVb0jFq5XlsYtWGGbSptZXB/wuUbE5i0SRgy22FD8OssRz lJVD5RBFj80IOwgLSzIU2+x6aXOip5alDgV1rfVy3ePVmOdxjb0otvvyuE+UVMsbEKOB zKaw== 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=RRwl9Zsvr+SVmQLqFNYnJNX/sVc5G8kVXLMI7iEKeTg=; b=mDbDiHq3st34Igc3npPpaUmAAsjoIXPx9HUe0TT0++4cjQdAgq5npftw6ZbsQoW23D EKttSANucc6GpEWdQ1Esf/uvuNJk8JxWSLFsqBzkEkfS1npuIbjeniK+1CFYPUtuF15A M+1BUubCsKXXFXzxwFDcpZddPkwHcz3FYfsffw5aOXGtGsV6FyDDeg9LMA5jPMJ9li2G tJJ68RQPOzwVuNPhrhVd84m2CZGFq0v7gcOdwQCwSXY5KfHg8qxftwDsb80FhwMCtkpt c3JJQDPuaKKHexPnSiWz9l5JAH9qL2p6WKuT3r3qne3CJjK3ANcxp5D7nyCHeltm1OlW Udyg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532Z8lkhf5qQcydHrC5U35vvVtpZC/P8Nded4NXmcThznQYcdONj 1R6JPDHLA9lACLfzCjA4xhI= X-Google-Smtp-Source: ABdhPJynqPQ5N6uATS5S5ZPdLtuGwfpyNtggMaWPaHPPdx2X5mIW9EtyhX6jp2WsUl6u9skCPOuaew== X-Received: by 2002:a17:90b:f0b:: with SMTP id br11mr3569298pjb.191.1599850326348; Fri, 11 Sep 2020 11:52:06 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:90b:2154:: with SMTP id kt20ls1420977pjb.1.gmail; Fri, 11 Sep 2020 11:52:02 -0700 (PDT) X-Received: by 2002:a17:90a:d704:: with SMTP id y4mr3571905pju.159.1599850322477; Fri, 11 Sep 2020 11:52:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599850322; cv=none; d=google.com; s=arc-20160816; b=puhKajnf1xRMlf2DkIsR2dbbWxUJ5H0iW1pgJYmaiYMQqtUL2Hm8jVD+GtAREOoFHK bwKLRPn5GYlFPGUHcuMZp3uiQcBwHzinLx98i554dY2KC7Iv1bDk/l80HCAFi8Xtw2vQ PstIQQb2t4jFUHItfXgCx+zr5sVzd7XSz1rRNNJJ7er7L11wqrL/HAhiEXnr3zmbqsk/ GHGFOy2919pptyS2BkU+aormLomITv8jL6I4oSeXPzK7RzS9W/g+91BTHYX16BNGQTjx oiPPR9XOlTRD6WezQvnifS87Jg1VSIrmHMPFP/ZKA5CxWV8oGkLA8BLqJ0zPs5/Y/0Je qZUw== 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=rwq08u4dYzDubEB/Qd5HSifCH2LKuWhrajvFXXXpd9I=; b=i/8I3GnBivwidkWZAnkTibSNsc6UGdfZlNxp1zcpf9GL4dc8HT4dsoRdeRHFBjWzci MQapqDb70Jr5ijtBzd2blCW+WtiwwwewhnF/bpuWaLAVgkIcyIib16Pa/eCqNKShBQbV QQogHPq8pkQaS1x7YCJdaZaUXTRMggL7i7nmGTmOGjhL86Y0u2A0cPCfZVTUBWBX+AVA pajpmhKVg4waDzuco/TM8wNutxhtLO3OgfQgFUGx4+eJ9RN3Px6i3oi5rB9FLynMYH94 gQWkHIGmNJhBUD2OFxvvfvCorm83JBOpjzWgID71YysvLZUJTlQXXRKPTT5I0Syw4zX5 vfZA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=As4ynUE0; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::434 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com. [2607:f8b0:4864:20::434]) by gmr-mx.google.com with ESMTPS id o98si387324pjo.1.2020.09.11.11.52.02 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 11 Sep 2020 11:52:02 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::434 as permitted sender) client-ip=2607:f8b0:4864:20::434; Original-Received: by mail-pf1-x434.google.com with SMTP id b124so8033538pfg.13 for ; Fri, 11 Sep 2020 11:52:02 -0700 (PDT) X-Received: by 2002:a63:4404:: with SMTP id r4mr2435616pga.29.1599850321542; Fri, 11 Sep 2020 11:52:01 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id k4sm2610785pjl.10.2020.09.11.11.52.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Sep 2020 11:52:00 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id DA78CA2A1; Fri, 11 Sep 2020 14:51:49 -0400 (EDT) In-Reply-To: <87ft7ol0rq.fsf-9EawChwDxG8hFhg+JK9F0w@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=As4ynUE0; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::434 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:26108 Archived-At: (Changing the subject to keep better organized.) I think I'd prefer just requiring --citeproc for citation processing, rather than making it automatic and providing a --no-citeproc escape. It's just conceptually simpler, and I think people might find it confusing that they can omit --citeproc, but it's not irrelevant, since it matters where it is placed. To allow --citeproc to be inserted at an arbitrary position in a sequence of filters, we'd have to add a new constructor for Filter, CiteprocFilter. Then we could just add the transformation to applyFilters (in T.P.Filter). It would also be good to add a deprecation warning for people who continue to use `--filter pandoc-citeproc`, suggesting that they use `--citeproc` instead. (This will still work, for the moment, but I don't plan to keep maintaining pandoc-citeproc after the new lib is published.) Currently the pandoc-citeproc filter is implicitly used when someone specifies --bibliography on the command line. That's a legacy feature going way back, which I'd planned to phase out. So maybe this is the time to do so.