From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30640 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: Tue, 31 May 2022 11:29:02 +0300 Message-ID: <25193173-1E8E-4A2B-81C2-9AB3BBE6DC12@gmail.com> References: <8ed092b504f248fa984c4284113f68ff@unibe.ch> <873d53586f8b4f968ac667b38da1796c@unibe.ch> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.100.31\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_7FC97D8C-03DB-4ADE-B511-DD03B692D0F8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31723"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBC2OTJELV4GRBUVD26KAMGQELQA343A-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue May 31 10:29:11 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wr1-f59.google.com ([209.85.221.59]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nvxFV-000825-D3 for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 31 May 2022 10:29:09 +0200 Original-Received: by mail-wr1-f59.google.com with SMTP id n3-20020a5d5983000000b0021021e3036esf1077258wri.19 for ; Tue, 31 May 2022 01:29:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1653985749; cv=pass; d=google.com; s=arc-20160816; b=U8UB9ekuqVb2tEC3+wz1ode4EmMLlTHefDM9pRBEXOnQvtRjfVc7KlCSjZvl2aadkp dBTSqu9sTnZxXYZp3sZrBgm50QCHYgxwo2GFus2dwgcwNl46R8oOg91Mwd6yzPavKYoY iANUPHuw2vvjYVf05ek/2RrdpzPxzjUCTPa4UIBcODiynHagv378OCb5RuKimGNJEVec zyrR7v7aSDRyVAYT7xTLANdRmZ417g6iOaq1YE2n3r5BLdEwMBLlHb4FgmOc5vHKSmup cYLqSMuTj+/hK9hbiRZvYYbdZIIVkMFZumZRqRgXAfsBzsw7RqFP3iQ6YoZYUKrQqmmv ymcA== 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:message-id:in-reply-to:to :references:date:subject:mime-version:from:sender:dkim-signature :dkim-signature; bh=Rx0MvOPTu5pdFSfA6gHVPCQaEYlb+DzeR1N2fOYnXGM=; b=jgSfOhotG5hSf4n1GMct71i89rk0k+zYISo43k10m8ZG9gSKbx741n8INiyTuYHtpD BHW/K2d31lddxq+JfQkl88nNOLo9ADYCcs5/zIwnX8Sn25OU0X+bs1MOjJUQd9MTrD3C /UHPQ4+zDvyLH77kFS9wO5qO40RHtHvKMqjqQ2NYNavta5LErHDxnuMM2axqsq3qZF8S AR4I2h4hz1ujryyON+E2kZOxDmQDK7HGVIAP7hP6RWdhQj0ffQWkTupgsuU/GdDGB6W5 gV/BHr8ww9b+YYwVSJon8F+PQa2ntZb+ZCliDmt2IKiq5dB+JBMlwre2+PIYOvCGmqkn /zuw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ZE5a3Tmj; spf=pass (google.com: domain of liesegang-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::42f 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:from:mime-version:subject:date:references:to:in-reply-to :message-id: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=Rx0MvOPTu5pdFSfA6gHVPCQaEYlb+DzeR1N2fOYnXGM=; b=oV56kl1vCBneTK3Rh3dCT6dXYKNhfPAYc0GOe6PKRYZvbQIQv3cuB37QXD/ed6CGu8 +y0/JdGMTRCxk5WYQb/ObFpVM7E45RZfTlqk4dA10wADXSlb14iD/U94OxIwcx/xD/pt HMyFAeS0gIFaueMizNUbuFgyEZPdPKcj7IaogQLbKHmxUujGtANj+tEApEXjJh6DA/Eo 2v5jIQeKX0uOCIqq4zITSYI5Eu9NFTprGLv4s5FeBZ1+vptqrYShbJymqs/xVak8qaVA EZxduobaQraxaVzdPb7lJVUYq2SAH9DZ63hOiw1PjmzOFx3Rxb6kPUJUN8j6j0nkF+Hw EPNw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:mime-version:subject:date:references:to:in-reply-to:message-id :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=Rx0MvOPTu5pdFSfA6gHVPCQaEYlb+DzeR1N2fOYnXGM=; b=My4OOb1JdUU4Sjfv+VTv7VSV1SsLYhOsdtlSnBpRw3Zzec7VbXLfbypvUQHX77a/lZ 3euI0+olmtrgHfWy5RIBWU/2zVkZIllg3uirW3T8OBCAr7Xv2CJrnzUY3panMrOiuFtv AXdYdUN5EZp6fj/D/coZQq5yM36LfotLtTHalCPVhahO2j62uE6vbnxxrl7apQO3MQ05 ACj5XwEBVSTfegFenaVt1LlxyPR7ed5m08OXZKcQVh8p5QlMK14iiQLSDZDKdOW3Hjid 1G54xo0zup/0Wlqb08SOKG+dn1J2+f73oY+eKUfUKR9rchrW5hb1BEAFfGL5Pdfjb4tk I3fQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:from:mime-version:subject:date:references :to:in-reply-to:message-id: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=Rx0MvOPTu5pdFSfA6gHVPCQaEYlb+DzeR1N2fOYnXGM=; b=ZsX4RqxIoeHTDOS+za72qL/NAYVsAoyu7356kGBmvmQdAamkpqjKAmNUz1HQO1Ve5Y E+2UoZALl8iva/N6lq3wDBwQyZNubsysWAeFKoIwMc+EeKaHuT+TKXutWX5nQJHN9jRX KGh6I5ox65YgN3/3Wq/uii6asQqFZbtT7wpGuWFsasNLwIrDYs3ivrtg40SdoMnsUxWI WXjZJs6r0SOcHjDqrtjK7zeOftebgcm+iB+5AK/57/CADRrAw1KaVc1uWKsdpKAiv5Sc QldAsEuk/gSI0DJ9sdJentzuBKm6y4r4yQUDjP6wlv0OLOQHqKQOXnDQeAP9qsFtyDS6 Peqw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532u9jwq2WcHQqhtBRlOhMjLU2b57/cyIku87sZdBYdiCYJZ9I6w 7uZiAY0G7Nro+a7o3qtDBfg= X-Google-Smtp-Source: ABdhPJz0mXyoDKu5REgWTiaPEBHWrwc8yBqQI9rQ9ywxw99gyUaSaau807pO3FmyT2uyfdCMGvk17Q== X-Received: by 2002:a05:600c:2285:b0:397:86a9:b828 with SMTP id 5-20020a05600c228500b0039786a9b828mr20307584wmf.35.1653985749057; Tue, 31 May 2022 01:29:09 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6000:1e0b:b0:20e:7a8a:8c81 with SMTP id bj11-20020a0560001e0b00b0020e7a8a8c81ls13105531wrb.1.gmail; Tue, 31 May 2022 01:29:05 -0700 (PDT) X-Received: by 2002:a5d:6c61:0:b0:20f:ef37:a9d0 with SMTP id r1-20020a5d6c61000000b0020fef37a9d0mr29930968wrz.140.1653985745356; Tue, 31 May 2022 01:29:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653985745; cv=none; d=google.com; s=arc-20160816; b=MlNg29TudVKGcL5zpGNKOIvCehpS1PuFrpYmUz+3anRiabSdAH9Zm/Iq/44G8ZIpXt WJY910c5t1iecjV7IXeyPYssL8ceLWTOHuOEbnY0lSkMCTWP5nyQ1sl6eYJsgBKYu+hE QP1Dw1oSyhQpTTsezhwbPr3/3Ck6d8NBtmPWHlpydxT/RfenwAFD9Z5lWGUDVx4TaYcs IjClhLQdRehLwnJAl0A9XG2I+g3zpxUAADj0mrSEvpzkynD54PS36WFvkxgsGNFnBH95 R+UYECj0Zeg7PGyC2iOP+P/O9Sijk0ARRWH5Hzp9yW92Rjx6a42IJ6AC3cugJw1Xd+Kp 54yQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:in-reply-to:to:references:date:subject:mime-version:from :dkim-signature; bh=L7dFajyBtZO0dXA9tIQWPZ4XsQW4Djetc0Btx/zD1N8=; b=fe4grp5Nls3Xo62LUfnP6X1Q8ic3ucUxHt1LKdTaptXLbC5p2lRes4MAtZOIxekUJd hZtoPB2bSYvpwII5oM9P5Di5S9rn8IH9w5A+x9qy2fNhXOFhlkk08LmzRZTa8bDfoPU7 p/eenojegDXeyMhc4WOOSMCBZn4n06J6+4Yx4MMwsXciznsOiInEHYTcEv0tg7APO6X0 TfTy2ach158qiDvBuM4HGGazVZJaDQml0fxg+YbxJ9Zo7/VMb9lFmRLaq7dRkKRTAi0U ggluPNo0vu3lMCLxCflrjiQHs5PdcXOmZVTNph+dx2vZ2fvDMrzQL1b3hMf/eiSSqZiQ R/ww== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ZE5a3Tmj; spf=pass (google.com: domain of liesegang-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::42f 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-wr1-x42f.google.com (mail-wr1-x42f.google.com. [2a00:1450:4864:20::42f]) by gmr-mx.google.com with ESMTPS id n32-20020a05600c502000b00396f5233248si92491wmr.0.2022.05.31.01.29.05 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 31 May 2022 01:29:05 -0700 (PDT) Received-SPF: pass (google.com: domain of liesegang-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::42f as permitted sender) client-ip=2a00:1450:4864:20::42f; Original-Received: by mail-wr1-x42f.google.com with SMTP id e25so6981943wra.11 for ; Tue, 31 May 2022 01:29:05 -0700 (PDT) X-Received: by 2002:a05:6000:384:b0:210:28d:29f1 with SMTP id u4-20020a056000038400b00210028d29f1mr24580396wrf.512.1653985744631; Tue, 31 May 2022 01:29:04 -0700 (PDT) Original-Received: from smtpclient.apple (br177-8.usj.edu.lb. [185.185.177.8]) by smtp.gmail.com with ESMTPSA id m126-20020a1c2684000000b003942a244f30sm1779579wmm.9.2022.05.31.01.29.03 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 May 2022 01:29:04 -0700 (PDT) In-Reply-To: <873d53586f8b4f968ac667b38da1796c-NSENcxR/0n0@public.gmane.org> X-Mailer: Apple Mail (2.3696.100.31) 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=ZE5a3Tmj; spf=pass (google.com: domain of liesegang-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::42f 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:30640 Archived-At: --Apple-Mail=_7FC97D8C-03DB-4ADE-B511-DD03B692D0F8 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Here they are in a gist.=20 https://gist.github.com/sjml/30b1f0093e48f37408871cc142d3dc12 My program deals a lot with ancient and theological sources and has very sp= ecific requirements for how certain citations look. I=E2=80=99m sure at lea= st *some* of this could be done by modifying a CSL (like using =E2=80=9C=C2= =A7=E2=80=9D instead of =E2=80=9Csec.=E2=80=9D in the locators), but others= are around specific works (like the Summa Theologica) or types of document= s (papal encyclicals), and as far as I can tell, CSL doesn=E2=80=99t have t= hat level of conditional processing. (I also speak Lua far better than I do= CSL. :) ) What really inspired this question was the institutional abbreviation filte= rs =E2=80=94 on a second citation of certain institutional sources, they sh= ould be referred to by their abbreviation. But until CSL 1.1, there=E2=80= =99s no support for short author names=E2=80=A6 so I track subsequent menti= ons, suppress the author, and add in the abbreviation after citeproc has do= ne its work. But when I=E2=80=99m trying to do that insertion into a citati= on with multiple sources, you see the kind of weirdness I do in that post-f= ilter . Would be great if I could just= look for a Span with an attribute that maps to a citation key or something= like that.=20 > On May 31, 2022, at 10:24 AM, wrote: >=20 > No, I=E2=80=99m not interested in anything in particular. Just general in= terest. > =20 > Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Im= Auftrag von Shane Liesegang > Gesendet: Montag, 30. Mai 2022 15:43 > An: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > Betreff: Re: Separating multiple citations in generated footnote > =20 > I haven't made the repository public yet, but would be happy to share a s= ubset -- is there anything in particular you're interested in, or just gene= ral interest in citation filtering? > =20 > 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 filte= rs ? > =20 > Best, > Denis > =20 > 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 > =20 > My institution has a few specific citation style requirements that stray = from the standard Chicago Style. The changes are mostly around specific wor= ks, so it's difficult-to-impossible to meet the requirements by making a ne= w CSL.=20 >=20 > 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 whatever= changes I need to; this might entail changing the style to SuppressAuthor,= making some capitalization/punctuation changes, etc. In general this works= well, but where it gets difficult is if a single Cite element contains mul= tiple citations. In that case, looking at the generated footnote, there's n= o hard indicator of which portion came from which citation. I've got someth= ing working based on scanning for semicolons, but I worry that's a little b= it fragile and will probably break on certain sets of reference data.=20 >=20 > Is there any good way of mapping portions of the footnote to citation key= s? I was thinking to wrap them in a span with some custom metadata, but I c= an 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 proc= ess itself, but I'm assuming since that's from a different library that it = is not exposed to Lua? >=20 > Like I said, I have something mostly working now, but any thoughts/advice= would be appreciated. > --=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= email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org . > To view this discussion on the web visit https://groups.google.com/d/msgi= d/pandoc-discuss/baf8fe27-c662-4825-981d-b49fb7b38d71n%40googlegroups.com <= https://groups.google.com/d/msgid/pandoc-discuss/baf8fe27-c662-4825-981d-b4= 9fb7b38d71n%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter>. > --=20 > You received this message because you are subscribed to a topic in the Go= ogle Groups "pandoc-discuss" group. > To unsubscribe from this topic, visit https://groups.google.com/d/topic/p= andoc-discuss/uIe_wOxcGUs/unsubscribe . > To unsubscribe from this group and all its topics, send an email to pando= c-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org . > To view this discussion on the web visit https://groups.google.com/d/msgi= d/pandoc-discuss/8ed092b504f248fa984c4284113f68ff%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= email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org . > To view this discussion on the web visit https://groups.google.com/d/msgi= d/pandoc-discuss/CAD7-qeusumC9zcpbCGbjevJ6J9Vdi4W8YJyTjiTmbR_yk5%2Bmrg%40ma= il.gmail.com . >=20 > --=20 > You received this message because you are subscribed to a topic in the Go= ogle Groups "pandoc-discuss" group. > To unsubscribe from this topic, visit https://groups.google.com/d/topic/p= andoc-discuss/uIe_wOxcGUs/unsubscribe . > To unsubscribe from this group and all its topics, send an email to pando= c-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org . > To view this discussion on the web visit https://groups.google.com/d/msgi= d/pandoc-discuss/873d53586f8b4f968ac667b38da1796c%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/25193173-1E8E-4A2B-81C2-9AB3BBE6DC12%40gmail.com. --Apple-Mail=_7FC97D8C-03DB-4ADE-B511-DD03B692D0F8 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="UTF-8" Here they are in a gist.&n= bsp;


My progra= m deals a lot with ancient and theological sources and has very specific re= quirements for how certain citations look. I=E2=80=99m sure at least *some*= of this could be done by modifying a CSL (like using =E2=80=9C=C2=A7=E2=80= =9D instead of =E2=80=9Csec.=E2=80=9D in the locators), but others are arou= nd specific works (like the Summa Theologica) or types of= documents (papal encyclicals), and as far as I can tell, CSL doesn=E2=80= =99t have that level of conditional processing. (I also speak Lua far bette= r than I do CSL. :) )

What really inspired this question was the institutional abbreviation= filters =E2=80=94 on a second citation of certain institutional sources, t= hey should be referred to by their abbreviation. But until CSL 1.1, there= =E2=80=99s no support for short author names=E2=80=A6 so I track subsequent= mentions, suppress the author, and add in the abbreviation after citeproc = has done its work. But when I=E2=80=99m trying to do that insertion into a = citation with multiple sources, you see the kind of weirdness I do in = that post-filter= . Would be great if I could just look for a Span with an attribute that= maps to a citation key or something like that. 
=


On May 31, 2022, at 10:24= AM, <denis.maier@uni= be.ch> <denis.= maier-NSENcxR/0n0@public.gmane.org> wrote:

=
No, I=E2=80=99m not interested in anything in particular. Just general in= terest.
<= o:p class=3D""> 
Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-discuss@googl= egroups.com> Im Auftrag von <= /b>Shane Liesegang
Gesendet: Montag, 30. Mai 2022 15:43
An: <= a href=3D"mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org" class=3D"">pandoc-discuss= @googlegroups.com
Betreff: Re: Separating multiple citations i= n generated footnote
 
I h= aven'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 i= nterest in citation filtering?
 
On Mon, May 30, 2022 at 11:14 AM <denis.maier-NSENcxR/0n0@public.gmane.org> wrote:
<= div style=3D"margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif= ;" class=3D"">I don=E2=80=99t have a partic= ular suggestion for what you need, but I might be interested in what you al= ready do. could you perhaps share your filters ?
 
Be= st,
Denis
 
Vo= n: p= andoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org&nb= sp;<pando= c-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>&nb= sp;Im Auftrag von Shane Liesegang
Gesendet:=  Montag, 30. Mai 2022 09:= 07
An: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Betreff: Separ= ating multiple citations in generated footnote
=
 
My institution has a few specific citation style requirements that s= tray from the standard Chicago Style. The changes are mostly around specifi= c 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 an= d make whatever changes I need to; this might entail changing the style to = SuppressAuthor, making some capitalization/punctuation changes, etc. In gen= eral this works well, but where it gets difficult is if a single Cite eleme= nt contains multiple citations. In that case, looking at the generated foot= note, 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 th= at's a little bit fragile and will probably break on certain sets of refere= nce 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 meta= data, but I can only see the citations either before --citeproc (when the f= ootnote doesn't exist yet) or after (when the multiple citations have alrea= dy 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 lib= rary that it is not exposed to Lua?

Like I sai= d, I have something mostly working now, but any thoughts/advice would be ap= preciated.
-- 
You received this message bec= ause you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, s= end an email 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-9= 81d-b49fb7b38d71n%40googlegroups.com.
=
-- 
You received this message because you are subscribed to= a topic in the Google Groups "pandoc-discuss" group.
To unsu= bscribe from this topic, visit <= /span>https://groups.google.com/d/topic/pandoc-discuss/uIe_w= OxcGUs/unsubscribe.
To unsubscribe from this group and al= l its topics, send an email to <= /span>p= andoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this = discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/8ed092b504f248fa984c= 4284113f68ff%40unibe.ch.
=
-- 
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view t= his discussion on the web visit = https://groups.google.com/d/msgid/pandoc-discuss/CAD7-= qeusumC9zcpbCGbjevJ6J9Vdi4W8YJyTjiTmbR_yk5%2Bmrg%40mail.gmail.com.
-- 
You = received this message because you are subscribed to a topic in the Google G= roups "pandoc-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/p= andoc-discuss/uIe_wOxcGUs/unsubscribe.
To unsubscribe from this group and all its topics, send a= n email to pandoc-dis= cuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msg= id/pandoc-discuss/873d53586f8b4f968ac667b38da1796c%40unibe.ch.

--
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/p= andoc-discuss/25193173-1E8E-4A2B-81C2-9AB3BBE6DC12%40gmail.com.
--Apple-Mail=_7FC97D8C-03DB-4ADE-B511-DD03B692D0F8--