From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30633 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Shane Liesegang Newsgroups: gmane.text.pandoc Subject: Re: Separating multiple citations in generated footnote Date: Mon, 30 May 2022 16:42:31 +0300 Message-ID: References: <8ed092b504f248fa984c4284113f68ff@unibe.ch> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000006f271705e03ad344" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14079"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBC2OTJELV4GRBQET2OKAMGQE3VPMEIA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon May 30 15:42:28 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oa1-f62.google.com ([209.85.160.62]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nvff9-0003PW-Le for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 30 May 2022 15:42:27 +0200 Original-Received: by mail-oa1-f62.google.com with SMTP id 586e51a60fabf-f2bdeb5298sf7376677fac.5 for ; Mon, 30 May 2022 06:42:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1653918146; cv=pass; d=google.com; s=arc-20160816; b=Gwk7UcYmG6QlGY0bqomrjUmEk3O5s2D3FGWWgf8aE+lPA6qVutNtaElFcdmujzfNTd 89q8kqVEzFrXWL9qnk42XBxYuoig0VbdZxal9LOGxf/BPpmYwWDgZEE6ZAqAF/oyg+0E IEZXjiKyplOEyD5ZcnAHNk8tUYQz/kibQKs4sYsaCjeSAKmmqs6Bcyo54gPuaUlURraZ Kc957rKlLleWGUmPd2z9WF48wJUUYLb+jTX21OHvvtA68gASBQQuRBqNEJoAOIcizydx 4hkp2+svRlqR62byjAFNwU3oSZGaSL0t2MCwusYq9PCI83wtFV/1+GP/sXnT5JNOOjg3 +FYQ== 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:to:subject:message-id:date :from:in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=HUNyT0GfvpYu0H3E/hbj0PVZaulwlZzW/Z9jyl1JlsE=; b=c84t6n9j2g2YeTzYhRtjvQ+fssE4aWeHSW6xgcumpM9Y8z13QQgUGIjrtVviE0pne5 z71S7BG0GINh9vBAlpTePatpn9azeEY1mJEoOzot5dTwDGRMN74aTaln6MHFfvSX1NWn NKJxPitJI/hbRxUQJgNl+PyKtsoGojwpuIaEwCFgdVluNL6G3LzUwZVIs3MInhw5BLs6 UfC5y+AfUaD3tQ6NID3AdXT0T0Rj9w5+6/uByV5ai62fTkf20tmqzuakTyjV80zHIhp0 z+RVwZrZ7ia76rJSARKeSw6o2CVt5XkdIJ3zK+xOAv9oqdar5CFej25WKkVhE7s2ki5E vCkA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=oyBfXOm8; spf=pass (google.com: domain of liesegang-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::62d as permitted sender) smtp.mailfrom=liesegang-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:mime-version:references:in-reply-to:from:date:message-id :subject: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=HUNyT0GfvpYu0H3E/hbj0PVZaulwlZzW/Z9jyl1JlsE=; b=A5NKQhtarDluosIkP7iW2ADnuavpMOXaRR8IjcWw/uqh8HYVL42PxWWJMJJO+Ztn2o e2+XH56Upp9gs9Ttq80N/ZeuT6y1k30o9knPfZfM2t9ogPC2s0fT3kiXxMMOjd+Zgf0e m5zbqnNBBVT18KuAxLkdkdDwz6C+r/22ZK5F4QOC3WNwd9NMJAeJNe5hBhyCkWB/3HQf wxdBZlSYDWJfVcn3cfkf3jHgEcA9x8w9tj1CTI4JIrcTQlwxBx1hv64PrONsk6r9thT5 N5WbWthBKNYI1+FcXw7BRDjNGCItP7sRmwY2IB4GCvqlmPcQXS90pS9ropLp1bBc25kz egJQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject: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=HUNyT0GfvpYu0H3E/hbj0PVZaulwlZzW/Z9jyl1JlsE=; b=Q0SG1NB5VwHT0MeOJy9+AAG33ABYpbrKVL8rCeYLLjgUZsWi8arB4bO2m1nNZBRgsW n12aBHodIJfT55anTRdoT319YFZho33YVfeXTrJeRIMOBOQZo7u/SuDSfRyaWIdAS5CB aUkUafu7FsMd/jihu6cTfuQejhKFeBA7XUeh1P2CrZMGoyiE46DnghzbWReO8Ph9eAWv gPOKGWfXxa3Dfk86xkzB1E1gQRgAZqmh68CusJIXDav4qBtyivozaIAf090MYZljeZcj 1rVPjZFSCjED35SWefrmHRcfhkKsd05JJ3+eKVX/KqzR7cFK3niD+L11HxHJ8bbu4Lki DDAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:mime-version:references:in-reply-to:from :date:message-id:subject: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=HUNyT0GfvpYu0H3E/hbj0PVZaulwlZzW/Z9jyl1JlsE=; b=JSOegRuL3oTBp6XxASytSVkp/bjbUI5BmGbmAdodLo9YeaqqU3zYG4bzVLhH30eapf ZhAjbvjDWrqLOf4+KW4YWQf4BKIZBy47Fc+gLJJ15RJHzhZULgS62QUFTXeyQW/OZ1uW /HiCvziz1b5lTK61XoimFdoZeYF4P7ttiPvYNFSkyQ4k60u92eq6L67G/Fv3/GbXqGut k9UnL6Vc+yC+Mii59UwoQJklF8yheiT2/8rGvBfIywUSQNGJCRyzb0fTQrFrRkvObK/y utaInoKREGbAr1tnubsFuFcKPDFUd44sFUOrM+HRXSnPJyGEitWH3xiwVVIqLyhbiq9+ gdOw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530LcVjEpEZzO5D8N/+zPJcxu7thFd3WOMBwbYpKBAEluzv5uYM/ uPpm2jc6HMpPKSF+DAShE1U= X-Google-Smtp-Source: ABdhPJxdttKfTSd2ZQT2rBIkZesPUYfFXJGr4969Yzs6PS7iEvczevxJbp7pLNqGHdYvVGqFRnFZ+Q== X-Received: by 2002:a05:6808:248:b0:32b:6aa:6cbd with SMTP id m8-20020a056808024800b0032b06aa6cbdmr9512988oie.34.1653918146576; Mon, 30 May 2022 06:42:26 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6871:79b:b0:f1:f328:8e8a with SMTP id o27-20020a056871079b00b000f1f3288e8als12885648oap.7.gmail; Mon, 30 May 2022 06:42:24 -0700 (PDT) X-Received: by 2002:a05:6870:b605:b0:f3:375:fdba with SMTP id cm5-20020a056870b60500b000f30375fdbamr7142404oab.123.1653918144354; Mon, 30 May 2022 06:42:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653918144; cv=none; d=google.com; s=arc-20160816; b=Ztv9qY+ELUc6jgIh4WXZtoXsdkBDNfGOWb8irv5AVt4AqFACDd76oKNP7Gome4gzh6 XZwUtzFc8Gftvux0ZO3ElKJIAI/9nFLVl5ISROE9mh7V5alhbmCRVVUxLQv8zMUJAdp5 TXk2v8cXqPZBv2WqnrBdXxjcVi6YIBbWp5R/rETJKMUhBiiZCOtkHwVkFw3eyiWrjtsP LSkDIawb8mYEYqSUMpPhXyDPcEIniltRmJDI+PwSDjKmxKAnYbzC1X0gHzKyJbZIyjh4 cEJsMTgUe9HTp5xYqLodtBqgXDZZOdEYyUPu89u2p+LERRDmcdUtCTcExdug8bln+w9T M/Vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=g0PVrdjSWktOHCW/24DsGcq/e0WBTknPSMBdP8OL+9s=; b=FyeY4fePtwVZgIEwsuD0Z0HDMv+sorcKcdFEcSXa2DnfQCydxJNujkL0P1L3WeP14k k0Al6Ykpcw2DlAelzqj1pLGP02maocRvGOLs4qw4idn3k5rbAGi7li2GCOQF1KB6IacC zMUIcsQIvX1z8V0J/sKXNjWBpsFQUfkIP5TsBdUNE976hLelCMb40psC0PE5CPjVIPqQ PD369qzH7NO0eUlJq/91lQrbnNmGPTRZJ6Ts1w+ta5M60vUd3F/b2LDtMH4+kSS9uZhe 62ChsgeJGtlaZ9Fndyf7IUdbLTMstlU/7Tyo1dMigkiNbaWI20CxXgBdFpvmCBO0iy+L H9yA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=oyBfXOm8; spf=pass (google.com: domain of liesegang-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::62d as permitted sender) smtp.mailfrom=liesegang-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com. [2607:f8b0:4864:20::62d]) by gmr-mx.google.com with ESMTPS id g8-20020a4a9248000000b0035e8a81e5fcsi976463ooh.2.2022.05.30.06.42.24 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 May 2022 06:42:24 -0700 (PDT) Received-SPF: pass (google.com: domain of liesegang-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::62d as permitted sender) client-ip=2607:f8b0:4864:20::62d; Original-Received: by mail-pl1-x62d.google.com with SMTP id i1so10356491plg.7 for ; Mon, 30 May 2022 06:42:24 -0700 (PDT) X-Received: by 2002:a17:90b:180b:b0:1e3:2871:6be3 with SMTP id lw11-20020a17090b180b00b001e328716be3mr726011pjb.85.1653918143554; Mon, 30 May 2022 06:42:23 -0700 (PDT) In-Reply-To: <8ed092b504f248fa984c4284113f68ff-NSENcxR/0n0@public.gmane.org> X-Original-Sender: liesegang-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=oyBfXOm8; spf=pass (google.com: domain of liesegang-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::62d as permitted sender) smtp.mailfrom=liesegang-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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:30633 Archived-At: --0000000000006f271705e03ad344 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I haven't made the repository public yet, but would be happy to share a subset -- is there anything in particular you're interested in, or just general interest in citation filtering? On Mon, May 30, 2022 at 11:14 AM wrote: > I don=E2=80=99t have a particular suggestion for what you need, but I mig= ht be > interested in what you already do. could you perhaps share your filters ? > > > > Best, > Denis > > > > *Von:* pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org = *Im > Auftrag von *Shane Liesegang > *Gesendet:* Montag, 30. Mai 2022 09:07 > *An:* pandoc-discuss > *Betreff:* Separating multiple citations in generated footnote > > > > My institution has a few specific citation style requirements that stray > from the standard Chicago Style. The changes are mostly around specific > works, so it's difficult-to-impossible to meet the requirements by making= a > new CSL. > > For the most part I'm able to handle it with Lua filters. I intercept the > citation reference both before and after --citeproc runs and make whateve= r > changes I need to; this might entail changing the style to SuppressAuthor= , > making some capitalization/punctuation changes, etc. In general this work= s > well, but where it gets difficult is if a single Cite element contains > multiple citations. In that case, looking at the generated footnote, > there's no hard indicator of which portion came from which citation. I've > got something working based on scanning for semicolons, but I worry that'= s > a little bit fragile and will probably break on certain sets of reference > data. > > Is there any good way of mapping portions of the footnote to citation > keys? I was thinking to wrap them in a span with some custom metadata, bu= t > I can only see the citations either before --citeproc (when the footnote > doesn't exist yet) or after (when the multiple citations have already > combined). What would be truly ideal would be the ability to filter the > citation process itself, but I'm assuming since that's from a different > library that it is not exposed to Lua? > > Like I said, I have something mostly working now, but any thoughts/advice > would be appreciated. > > -- > 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/baf8fe27-c662-4825-981d-= b49fb7b38d71n%40googlegroups.com > > . > > -- > You received this message because you are subscribed to a topic in the > Google Groups "pandoc-discuss" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/pandoc-discuss/uIe_wOxcGUs/unsubscribe. > To unsubscribe from this group and all its topics, 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/8ed092b504f248fa984c4284= 113f68ff%40unibe.ch > > . > --=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/CAD7-qeusumC9zcpbCGbjevJ6J9Vdi4W8YJyTjiTmbR_yk5%2Bmrg%40mail= .gmail.com. --0000000000006f271705e03ad344 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I haven't made the repository public yet, but would be= happy to share a subset -- is there anything in particular you're inte= rested in, or just general interest in citation filtering?

On Mon, May = 30, 2022 at 11:14 AM <denis.maie= r@unibe.ch> wrote:

I don=E2=80=99t have a particul= ar suggestion for what you need, but I might be interested in what you alre= ady do. could you perhaps share your filters=C2=A0?

=C2=A0

Best,
Denis

=C2=A0

Von: pan= doc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Im Auftrag von Shane Liesegang
Gesendet: Montag, 30. Mai 2022 09:07
An: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Betreff: Separating multiple citations in generated footnote<= u>

=C2=A0

My institution has a few specific citation style req= uirements that stray from the standard Chicago Style. The changes are mostl= y around specific works, so it's difficult-to-impossible to meet the re= quirements by making a new CSL.

For the most part I'm able to handle it with Lua filters. I intercept t= he citation reference both before and after --citeproc runs and make whatev= er changes I need to; this might entail changing the style to SuppressAutho= r, making some capitalization/punctuation changes, etc. In general this works well, but where it gets difficult is i= f a single Cite element contains multiple citations. In that case, looking = at the generated footnote, there's no hard indicator of which portion c= ame from which citation. I've got something working based on scanning for semicolons, but I worry that's a little = bit fragile and will probably break on certain sets of reference data.

Is there any good way of mapping portions of the footnote to citation keys?= I was thinking to wrap them in a span with some custom metadata, but I can= only see the citations either before --citeproc (when the footnote doesn&#= 39;t exist yet) or after (when the multiple citations have already combined). What would be truly ideal would be the a= bility to filter the citation process itself, but I'm assuming since th= at's from a different library that it is not exposed to Lua?

Like I said, I have something mostly working now, but any thoughts/advice w= ould be appreciated.

--
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 pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/baf8fe27-c662-4825-981d-b4= 9fb7b38d71n%40googlegroups.com.

--
You received this message because you are subscribed to a topic in the Goog= le Groups "pandoc-discuss" group.
To unsubscribe from this topic, visit https://g= roups.google.com/d/topic/pandoc-discuss/uIe_wOxcGUs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to p= andoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.goo= gle.com/d/msgid/pandoc-discuss/8ed092b504f248fa984c4284113f68ff%40unibe.ch<= /a>.

--
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://group= s.google.com/d/msgid/pandoc-discuss/CAD7-qeusumC9zcpbCGbjevJ6J9Vdi4W8YJyTji= TmbR_yk5%2Bmrg%40mail.gmail.com.
--0000000000006f271705e03ad344--