From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30639 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.text.pandoc Subject: AW: Separating multiple citations in generated footnote Date: Tue, 31 May 2022 07:24:03 +0000 Message-ID: <873d53586f8b4f968ac667b38da1796c@unibe.ch> References: <8ed092b504f248fa984c4284113f68ff@unibe.ch> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_873d53586f8b4f968ac667b38da1796cunibech_" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31061"; mail-complaints-to="usenet@ciao.gmane.io" To: Original-X-From: pandoc-discuss+bncBCZ27W53TUFBBFUF26KAMGQEPMXURLA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue May 31 09:24:10 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wr1-f61.google.com ([209.85.221.61]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nvwEb-0007xv-Tj for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 31 May 2022 09:24:09 +0200 Original-Received: by mail-wr1-f61.google.com with SMTP id t8-20020adff048000000b002102a5877d5sf830046wro.21 for ; Tue, 31 May 2022 00:24:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1653981849; cv=pass; d=google.com; s=arc-20160816; b=JFcpbVNawnB7ezVMbTXNP7VuFDmvCfQah2xzjp37+BO+UOlxtD2Vxpp0GDt5IhmCg5 7xdzD5lBz6g385kTaELRMRT9/Q0RwGbGQAXxILr1PIA7dRUucViKcoAGw6xq9dS5UESf Y6KOpg0vip4oPh5mXKs2K6sUZ5OA5j1JbHh3xhuWwT1ab4yuR1WIwvL0S6rK75UsybsF Bow+FaCVp6FjJCOOze00gszNc4XQEIdw6EBpSOKkck4OUIytvcgZOgdSXs0S61StApzM 6tOvZaGa9Ir9MdpvW4gQ/jTeRZF9li29/YBLUb7kWoxS1y32LFE7f7Lvxwq6aNo4cArZ PHrg== 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 :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:to:from:sender :dkim-signature; bh=IcXhrGKvrG+kRTA+F2crC3avAeaizvWHcPRNNskkavg=; b=qJMv3uA3ujIuNOiaNc4cw4DEIFlzE4jKV7RdFsy34NH3sLfG5JeYlKQMVmLYK/D4IK DvKxF79v5bVi7DRWhNQhgOpMF68ds09gnbKAAdkmVmYZPJdLMa1rVTg13dNyS42xq7MS aE0kvO6XQF9U1h2LMfcZgwPu2FBMS9RoJbF7f2TsXX25rMS4Zf9VqF5Em5dhTJp8W3Ms VZWpxnpSPGvzvQb7AUYEKg53kl4BO2UY59kBaCQic30qLREy9t42alrkSuSIfBtjg0Z2 zY0jH9hLVhoTqZD6AjTVNk1SCpZOi6Wjh1OjRgzuXlLrU9DyfewT6wbDfrZR71+P80Fp T3hw== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.0.84 as permitted sender) smtp.mailfrom=denis.maier-NSENcxR/0n0@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=unibe.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:from:to:subject:thread-topic:thread-index:date:message-id :references:in-reply-to:accept-language:content-language :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=IcXhrGKvrG+kRTA+F2crC3avAeaizvWHcPRNNskkavg=; b=TEPrfky4isFvk090TTYxs2T9B5PrNBl8p8SRBtsi1jVpqgkO+0etphHvDwQEVyANJg gkSzUhuIrza6KK6pFDseMfyg/SU2yzRZMybU2fWqH8QFnOT9ihkB7NAb6yeMixXA8R1e u+0ohmdbfRp+FlBdnARmzvC7E1l68zu3RQQT0LVZwggs6rvH03BA8juNx1SL7BgroP4z J+h2TZUIggQw4ij80vNqFKXR82dWu9ve1ZKTvhjnyqxMGC9HLC8p/1S9jdHXF9dWOWKO 9BZm4SoQyn830NNHMHAAQq9NHbVYjh3geYQIEZ/9VBf063sgxKJOcncIs7N0KJduEL7j QpGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:from:to:subject:thread-topic:thread-index :date:message-id:references:in-reply-to:accept-language :content-language: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=IcXhrGKvrG+kRTA+F2crC3avAeaizvWHcPRNNskkavg=; b=vHgvVE2iIKlXQIrZKLV1q122e/Px9Bz1fSooI4TIj9Qkwf7ndEQTmKTofQwZts0okO T/iCtEZmG3dgXb6f3PN7bb3ZktcP0iWfjHa5J/VzG2R+vt1QLC31kobK3e5B1PKaclHo lJT3P0xMBkzrgWLpbTxql0elI40tyjfNidcPUJ/gwmuaVtgsfJiV/rmQ0XdUrpwOTd0r LZVtSqafpsK9pS1RjyUs7mF6M/Kmgoyp2gCEL2oAaESN2TzJvbFKERUiws5uORpJrGYC fCiHarlCAnNI1a9Y+KuugZOUj7amiAC Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM5309MQO79SkGWWt4vu6Oo43RdKch0t9+EtRCt/AcwtlyUpMZHxGs 74c2kgdGYbSD/oFnWUIy4i4= X-Google-Smtp-Source: ABdhPJyShAGi8YVjPh2BUABArKdl21OSiiqvvBVR29pB1rNiroOjUY2x2ObM1RIWcIC9gwfYs/NA5Q== X-Received: by 2002:a05:600c:4894:b0:397:4ba5:ca97 with SMTP id j20-20020a05600c489400b003974ba5ca97mr22718563wmp.30.1653981849405; Tue, 31 May 2022 00:24: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-20020a0560001e0b00b0020e7a8a8c81ls12797839wrb.1.gmail; Tue, 31 May 2022 00:24:05 -0700 (PDT) X-Received: by 2002:adf:e611:0:b0:210:db:cb25 with SMTP id p17-20020adfe611000000b0021000dbcb25mr23665712wrm.59.1653981845552; Tue, 31 May 2022 00:24:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653981845; cv=none; d=google.com; s=arc-20160816; b=CtdZeyfTMOnahEYFIYuyryrMtQdruTzG4dfW9hXXxxAc6GdqeW5fIS8Z1lEMD9m620 UGQU60WGXPQiJz9WuZAB6NEy+RhVSf4/iiw2GFsY/Xz39XPsY80bWb3clQx73N/Swljl TkMN4x/CVK7xwCJ6cKOZfZPKOfz0BdQf83K5BZti8bPIh7Ru9qem/wOTOGINIR0qJqGH T1tpzbwgSVFtpkbqCDUqROuCViqcEox3o3lMIFrzyOy0UyN3iUzlKRnMPER01fF3Pn49 RTS+lUoHaoKuT7CQNBBAg8yj2RX0L9SfR9DGydpR5vvzUUf6NAm5OJokC1tTKFatNDxJ QNAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:to :from; bh=xLQy3Nmkw9PGL9pYsIdHLQkyx2lD0ltuUYOroz5fVds=; b=ZY0udbSnJpGN16IFf5adcna45gMQb0gKL2+fR52jMtOK3xrifLzCTtOyemJfUwbqu/ eSO7NFIV7xxfFFkQmITfisFXxNGkUPYRvJMqK2BNPavgGHnqQWbaBZnrzjM48eTQhO38 3i311hvEtoCFT6ASjwHCGxJebsNAm7bo7GMr2Q6ywGEPb04LQQYH7jXTl1i7Wu/l0CCP pD6e+0ww4rTpepPZXudNgMNhCKUSfdqgkjUwKX4/UNix5/9QaRuhOMGWkfRcMX5PBgK7 gMy3eesEewaima2wufhXwTrJiBdkUsmqfdxYpio60dQTA7qVe7FFFMC/1s6QKaMEx/16 dOtA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.0.84 as permitted sender) smtp.mailfrom=denis.maier-NSENcxR/0n0@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=unibe.ch Original-Received: from mailhub-lb3.unibe.ch (mailhub-lb3.unibe.ch. [130.92.0.84]) by gmr-mx.google.com with ESMTPS id l32-20020a05600c1d2000b0039469a105f3si69835wms.2.2022.05.31.00.24.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 May 2022 00:24:05 -0700 (PDT) Received-SPF: pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.0.84 as permitted sender) client-ip=130.92.0.84; X-Virus-Scanned: By University of Bern - MGW Original-Received: from mail.campus.unibe.ch (aai-edge-03.campus.unibe.ch [130.92.13.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailhub-lb3.unibe.ch (Postfix) with ESMTPS id 21E0C5000AC for ; Tue, 31 May 2022 09:24:04 +0200 (CEST) Thread-Topic: Separating multiple citations in generated footnote Thread-Index: AQHYc/PWVfFIWp9Q702YM9tXjaObxa03En+QgAA6SoCAAUn94A== In-Reply-To: Accept-Language: de-CH, en-US Content-Language: de-DE x-originating-ip: [130.92.13.161] X-Original-Sender: denis.maier-NSENcxR/0n0@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.0.84 as permitted sender) smtp.mailfrom=denis.maier-NSENcxR/0n0@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=unibe.ch 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:30639 Archived-At: --_000_873d53586f8b4f968ac667b38da1796cunibech_ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable No, I=E2=80=99m not interested in anything in particular. Just general inte= rest. Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Im A= uftrag 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 I haven't made the repository public yet, but would be happy to share a sub= set -- is there anything in particular you're interested in, or just genera= l 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 might= 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 fr= om 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 c= itation reference both before and after --citeproc runs and make whatever c= hanges I need to; this might entail changing the style to SuppressAuthor, m= aking some capitalization/punctuation changes, etc. In general this works w= ell, but where it gets difficult is if a single Cite element contains multi= ple citations. In that case, looking at the generated footnote, there's no = hard indicator of which portion came from which citation. I've got somethin= g 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't= exist yet) or after (when the multiple citations have already combined). W= hat would be truly ideal would be the ability to filter the citation proces= s 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 w= ould 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 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-b49fb7b38d71n%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://groups.google.com/d/topic/pan= doc-discuss/uIe_wOxcGUs/unsubscribe. To unsubscribe from this group and all its topics, send 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/8ed092b504f248fa984c4284113f68ff%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 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/CAD7-qeusumC9zcpbCGbjevJ6J9Vdi4W8YJyTjiTmbR_yk5%2Bmrg%40mail= .gmail.com. --=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/873d53586f8b4f968ac667b38da1796c%40unibe.ch. --_000_873d53586f8b4f968ac667b38da1796cunibech_ Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

No, I=E2= =80=99m not interested in anything in particular. Just general interest.

&nbs= p;

Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <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

 

I haven't made the repository public yet, but would = be happy to share a subset -- is there anything in particular you're intere= sted in, or just general interest in citation filtering?

 

On Mon, May 30, 2022 at 11:14 AM <denis.maier-NSENcxR/0n0@public.gmane.org> wrote:

I don=E2=80=99t have a particular suggestion = for what you need, but I might be interested in what you already do. could = you perhaps share your filters ?

 

Best,
Denis

 

Von: pandoc= -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
<= o:p>

 

My institution has a few specific citation style requirements that= stray from the standard Chicago Style. The changes are mostly around speci= fic 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 c= itation reference both before and after --citeproc runs and make whatever c= hanges I need to; this might entail changing the style to SuppressAuthor, m= aking 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 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, but 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 a= bility 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 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://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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/8ed092b504f248fa984c428411= 3f68ff%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 pandoc-d= iscuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAD7-qeusumC9zcpbCGbjevJ6J= 9Vdi4W8YJyTjiTmbR_yk5%2Bmrg%40mail.gmail.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/873d53586f8b4f968ac667b38da1796c%40unibe.ch.
--_000_873d53586f8b4f968ac667b38da1796cunibech_--