From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/26172 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: Thu, 17 Sep 2020 19:30:19 +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: multipart/alternative; boundary="------------CC2798216CFEA91BD189338C" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8528"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDAN5ZVOUMHBBMV2R35QKGQEAVD42ZQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Sep 17 19:30:31 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lf1-f57.google.com ([209.85.167.57]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kIxjq-00028O-Mq for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 17 Sep 2020 19:30:30 +0200 Original-Received: by mail-lf1-f57.google.com with SMTP id j17sf477766lfm.9 for ; Thu, 17 Sep 2020 10:30:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1600363830; cv=pass; d=google.com; s=arc-20160816; b=zTvgwZ+BMbKb19/X5VbrIfCAHSctmvcjytbAOEdD2Pu511wcSyEHPBik6zus/ENObR 90RzRtS9l2JgXyH3Ps1yAVXD6SRpD7iDY9Ln2cUCDC94J4NTRebkJRQ5W6PL7RVB8aI/ C2o8rdnQF7DtOVo3OuPv+AxfgIs3iNOj9jIg5NBC88jp2DxvVkYcHkur0SyujgYhnhFF /J49d8uvqgQiJq/MJ3Fbda74CXxKt3jCSXaKGF4tqHz7gtmz2wu9Aw8n074kJ6sCWtvG zWiZR6zjFiTfUSiOswkYR4ILgNqbtr6tf65xTTolwrXUpcomZ9rPPdMr+nGhhqR2Q3TD uPfw== 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=GSdkPwi2KeGs1+leTKfKI1EIUrWjuv6CPmSdSRf1VaA=; b=p07vsDa60DAz3QFzCZtVlxweckx/xNw6X3qMU5S5DcoS9KV869Bc5bsFjDNhd41Af7 obfBxHrG8bfgf7B6FCpPtq7tGNe8l0SxfGqSxC4XcUlLmDUq9IP21EzoT3R48OEHLjpq RIX0U4JhI9ujTrghcmabzva8Beh6C24xJVkW1/5jAubz01ZczrXX1knRbcrdMhMSnZe+ 3tQiHhbYxPcglPuotl/WuyVpoarYNOENMaj8HCPjBWO6hxe0LPhnJZCG0kp44e7DJ5FK uqHPqVa/uTBmI6RhhL0FUEyOVp7WRf4ex8jK0QGAgMYSvDrFW7eJ5UaTFY2ZDZwQr8BQ iQdA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=npA3whsT; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=g9R2JCWo; 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: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=GSdkPwi2KeGs1+leTKfKI1EIUrWjuv6CPmSdSRf1VaA=; b=R2Rj6ltULzmWDu5EQNkhGXj/AONLCsuE2IWYkVPJ0gTs57QkCiVglxQcwAr0PHu5wa Xscw80fzfdpLixOxibMuo8DsXoOX4uLLYM/PrEBocsRm3xuUAXvyWV/IDS3Mn+KAPL8u /xcYBl8Kzifbp/FChCzu+71VACcRMpDNTQdLAGy6AFrv+rD8NNwVdIaiDGoCvDDbS8EN 2oKeAT7sy+5WMANXI3emQ7qA4FwzXmN1fhczhf6vzUt/px0oTi1+RMaWVJWX6wXw0E7P 2j/VjyfBZ2zCeBP2yNTlP6i2QTi8+Vl90JCzjKBAPpSl0/EKJmVE0HRhVkuSUy5b3tBJ z9PA== 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=GSdkPwi2KeGs1+leTKfKI1EIUrWjuv6CPmSdSRf1VaA=; b=mKJDRr9kW5rT+flpfe7TdjAG8EF3n3j28x8OfCB7oU+rRdAtZBaAH4sQmrJibddP0y Tog6epBsLunF+LFzrIX0blZX6M0v6LmtW+jYrzpSU/UgUVMYRBXa/zQNL8c8Ol1K2zyB KjtrzipDlwOxSHX42UGI7wFnM4Nk44pZ7QCTc4WJ4BbqQpkoJLJNnEc4pbZcqA3IxoAw AhMwlLd3UfjFWaYuoULgHvH4lQnEjhUxi08HVA5sR0TEr7g0J2IRrBOjIDYrYz60UMXW MaOoL1TBhlrh19hDWsHDBOeM/qMzExMTuleV5VtilskWmIw7sBgt/qR/aiXPxolgDHBU zm9A== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530mpP9QqMi2M6ITjK8dTe+NoH9mnAROwIKv1RIDnkvePuUCDxvE ZyP1Kuz22IxFKLVr5uz2FaY= X-Google-Smtp-Source: ABdhPJyulw6Rz/HARW/dNIwgBbH2F9l9X6nulVZ2OkjBhynW4wmS6diskWdH7aYIdD8+xksZXGOGoA== X-Received: by 2002:a19:7e02:: with SMTP id z2mr10322490lfc.130.1600363830107; Thu, 17 Sep 2020 10:30:30 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a2e:9a93:: with SMTP id p19ls447475lji.7.gmail; Thu, 17 Sep 2020 10:30:25 -0700 (PDT) X-Received: by 2002:a05:651c:104:: with SMTP id a4mr10941508ljb.273.1600363825434; Thu, 17 Sep 2020 10:30:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600363825; cv=none; d=google.com; s=arc-20160816; b=xL1NYYURSNjyvSLPedbrrh76KT3L/cjijROVSVTQVgStPi5GjlVS8wZXPVBXBOJ2cj cU7gIWG6prmseUcdS66jG0XjeAR1T7nrhQQlxK99/MGJoDBifshdyNTzEboTGGXSMke2 uG2KHwHeKmSbsjCPTDkoXfPNfzPz0dV+7/NoLk6ILfRIIFpcfPwcb1Te6xsI42sdE5i5 QPgrCxa9iOsK6P+vdPTyrw+VvL4rkJPfVZOIcQZrwO5xEnpyMPoQsxsYT9eu3zD4D2AX gJR3BnNKAYQrMmKXiXrEPAcKiLFB2oRO+WcbgZGozune2FzP+u45VCOFDmGu72kiOqWW mVLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:mime-version:date:message-id:from:references:to:subject :dkim-signature:dkim-signature; bh=GDeTgwy/n/Q1gSB8Xq2fCPeKREe9mvD/UJuaJojjCgY=; b=CR+9hlQTvM26KuanvFySgIy4HKb9hHDqS7kE8iknnbIb0UHd21Ig/wWNkkRhXOuFpa Kj+gbADRw49W85+Gak1BOpHfJcpTF94CTi4vhl8q07Pa9j9plwotqOc4hUkyn/Swp5fn 4jOztArXsZYOdW8ecwwMrvxUc2RMH+BzPuVuJ2GTyTRrbjy3AFX2iTZIAV1if4gsdiL6 HN4lwGgSRwpAoloJCuT6rJNdCzxCY+21j0tr46SlWv8EQA+WlM+4bTVKhDE/jQI7pft+ RgASluPvLOGHSUvsXkVw5+0sufbB2dGsxjUUkOoPceeSQDChWrzb7JAOidJNG+jQrad1 xz2Q== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=npA3whsT; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=g9R2JCWo; 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 k10si12489ljj.0.2020.09.17.10.30.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Sep 2020 10:30:25 -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 smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (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 4BskWN33DxzKmbK for ; Thu, 17 Sep 2020 19:30:24 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Original-Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter06.heinlein-hosting.de (spamfilter06.heinlein-hosting.de [80.241.56.125]) (amavisd-new, port 10030) with ESMTP id hXzcVihEi_F4 for ; Thu, 17 Sep 2020 19:30:20 +0200 (CEST) In-Reply-To: X-Rspamd-Score: -4.50 / 15.00 / 15.00 X-Rspamd-Queue-Id: 056351838 X-Rspamd-UID: 495ef5 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=npA3whsT; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=g9R2JCWo; 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:26172 Archived-At: This is a multi-part message in MIME format. --------------CC2798216CFEA91BD189338C Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: quoted-printable Awesome. Thanks. We should also add this to the ConTeXt writer. Side issue: Why is the Frege example "=C3=9Cber sinn und bedeutung" sentenc= e=20 cased? Best, Denis Am 17.09.2020 um 19:18 schrieb John MacFarlane: > Progress report: I've added support for CSL display attributes to the=20 > LaTeX writer in the citeproc branch. =C2=A0 (Still TODO: docx, HTML, othe= rs?) > Some examples: > > Screen Shot 2020-09-17 at 10.12.43 AM.pngScreen Shot 2020-09-17 at=20 > 10.13.22 AM.png > Screen Shot 2020-09-17 at 10.13.44 AM.png > On Tuesday, September 15, 2020 at 9:43:57 AM UTC-7 Denis Maier wrote: > > > > 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. 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 > allowing multiple bibliographies, each with filters applied that > 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. 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-discus...-/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-b= f14-f790e3f1280f%40mailbox.org. > > > --=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, send=20 > an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org=20 > . > To view this discussion on the web visit=20 > https://groups.google.com/d/msgid/pandoc-discuss/d7317035-fba6-466b-8d6e-= 699f82ae5445n%40googlegroups.com=20 > . --=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/a3a6d888-3a82-e29d-d723-7a754c7b964c%40mailbox.org. --------------CC2798216CFEA91BD189338C Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Awesome. Thanks. We should also add this to the ConTeXt writer.

Side issue: Why is the Frege example "=C3=9Cber sinn und bedeutung" sentence cased?

Best,
Denis


Am 17.09.2020 um 19:18 schrieb John MacFarlane:
Progress report: I've added support for CSL display attributes to the LaTeX writer in the citeproc branch. =C2=A0 (Still TODO: docx, HTML, others?)
Some examples:

3D"Screen3D"Screen
3D"Screen
On Tuesday, September 15, 2020 at 9:43:57 AM UTC-7 Denis Maier wrote:


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. 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
allowing multiple bibliographies, each with filters applied that either
exclude or include specific items based on different criteria.

>
> The cito thing seems more special-case, but maybe that too.
>
> Denis Maier <denis.ma...@mailbox.o= rg> 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-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
>> To view this discussion on the web visit https://groups.google.com/d/msgid/pand= oc-discuss/1adfb0c1-d745-a6dc-bf14-f790e3f1280f%40mailbox.org.

--
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-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.org= m.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-d= iscuss/d7317035-fba6-466b-8d6e-699f82ae5445n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid= /pandoc-discuss/a3a6d888-3a82-e29d-d723-7a754c7b964c%40mailbox.org.
--------------CC2798216CFEA91BD189338C--