From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30631 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: Mon, 30 May 2022 08:14:45 +0000 Message-ID: <8ed092b504f248fa984c4284113f68ff@unibe.ch> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_8ed092b504f248fa984c4284113f68ffunibech_" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33193"; mail-complaints-to="usenet@ciao.gmane.io" To: Original-X-From: pandoc-discuss+bncBCZ27W53TUFBB57Z2GKAMGQEWP3YBKQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon May 30 10:14:52 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wm1-f64.google.com ([209.85.128.64]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nvaY8-0008T9-0T for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 30 May 2022 10:14:52 +0200 Original-Received: by mail-wm1-f64.google.com with SMTP id c125-20020a1c3583000000b003978decffedsf5207768wma.5 for ; Mon, 30 May 2022 01:14:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1653898491; cv=pass; d=google.com; s=arc-20160816; b=osiX+iSjLP3SRkYgWVj3JL+7iGKU1uvtUB3DRo5QG0ldXKSk7c5oqs15TsIjTWv2GJ abf8Hdcr3DTsfqjX6X05Kd34FynrQT5BQplMLMs77o7TJQb2BHHRhfzxElvKM/YIYv0Y mUOHWc/lIz6ZOY8S5pu46nnKFXYxsEGixeeBjfzHiKT2Ru47m3VzkPsWpLl94ecB69gg f98NSFKVGIVSCy15MBifT2Ga0cHxEnWXw9r/7tPp2zyZ1m7Q+utin1bu8TRiqCxcEoYY 5rvrv80+llsOPkDHWJEkbL3P1mabBTY5AtXS9l1/OCDwx+vB6Aqn5wDueETmlumdOF7U b/LA== 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=PG4tEuZA8mRkkowR0mD93XwvN+XCSLRkr54W4iVQEz0=; b=dulTNP3i7GGjrKS0LCSTpkL0EhUgLuPQTZOfcyOjNmTTDKTakpVRAyPhfe/eZIXLUJ gR4/0523nayCPr4dJ2oBEuE2TUthZHsVEEaO45diIDYl200+vSFM38ZKspwf92tiSXlq JcP5zY87wWB8c5zt2gN5fwlrRIp0d9aqwh0aVPW93iQHdTqtbBOpSzbvNcXOjNsNwsu4 DXfi0pDSy/1CbzJMVXV2kucfRXCUPzQrKOpWNcg6DJ28Pq1YBlAFzyDfcNmRo7YUWqz6 CbH30b0U8nV/Z7NcITdFOgeyv8qi3XJTCP/hvXipQTEaR0PU1/+SS89Z4yJ5mTYWik+D hItQ== 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.83 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=PG4tEuZA8mRkkowR0mD93XwvN+XCSLRkr54W4iVQEz0=; b=Ka4+qpqwr6HltsAZMKgkEDDtbTIwxLSIIrd4dFfT10nFDPoZFL2eST5gOyr9Ety/C5 x+pSbaiyJS9ajhUi+U9MZNas0DrAPhyzVB171VA+M/75uFR2Zo3yXT4xb2jp2fyJU0bP qp5XuzPj0kdO2bBfqSAvpX/qY7IE+y80wkq4lDJ17rw/Sr21iGIqde01wC/wvh1RBkuw bXrnVsaMJjA6iwgKqdw6ENNPzxm8u53jDWk1otCW9h8W0yz+g2AvetrquDLQ6NnaW4P/ nvFsBw5cXpk2sRI5t6JGh4lyOzKMl/VwkdfK9AVqhSa5WZgSoAV6mU7WMjOWnaSd+2K3 +c8w== 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=PG4tEuZA8mRkkowR0mD93XwvN+XCSLRkr54W4iVQEz0=; b=n5tc77RhDh2LdfxQnOhZg3JP8oPNeXJmVXvKSFFgthe7IpXj64By01hcw5t1zvqKE0 aOUBoBUfO7j8F+L+hm0X5ookqsZMw6CKFaXYz9hiRTpGNQc7CpTaOo6TCOtYYAFhjY/U mbWKV7FgPmdNC74kgVpDl3cqYNg49WBRnrhn1BU5Ud069+OhzWJglBc6/kgb78MUcSMu eqAL/GxU1txBMfbqqjbfky6v0KIK10RTnZY8sKJJLY8WUqPmJuuNS2wwWt6YU5VtLOku Vf+v9ZVPUbGybDSfHt1w2JX8JvdC9Fo Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM5312mMdtAEgiwpDlAn3SszRZMRM6+8AWNau13MtzOVbuOOxqTnDf 0vPQR54pcBKXPxUvDQ40k/k= X-Google-Smtp-Source: ABdhPJwB6T7VAQFQnL4aZi9fldPQR+ugyhOIcHaHq69XojMxkco0S01fXsMLlzgHTovv4XD79lBhlg== X-Received: by 2002:adf:ce03:0:b0:210:32ec:50fd with SMTP id p3-20020adfce03000000b0021032ec50fdmr3784062wrn.407.1653898491564; Mon, 30 May 2022 01:14:51 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6000:1563:b0:210:11d0:6765 with SMTP id 3-20020a056000156300b0021011d06765ls8221266wrz.3.gmail; Mon, 30 May 2022 01:14:47 -0700 (PDT) X-Received: by 2002:adf:eb91:0:b0:20f:fcc2:475c with SMTP id t17-20020adfeb91000000b0020ffcc2475cmr21310733wrn.40.1653898487117; Mon, 30 May 2022 01:14:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653898487; cv=none; d=google.com; s=arc-20160816; b=UUu+s4vuOjOpYw0I6cIeUneYz1F23lNab/6mFnpC7TxuQqreoqAuZvF9XoYlAbQB2Z +HLz9qDQ3VIgjdvUUTvG6cNXb0ulEx3zNm0xkIr711tbJaqSKydKT+MEBaM1e7nIV0sW VkAKw4ygHZDMMDZFYYVewwL1UGSVPwvMTrmrermcC0yYbU7HmAmQRnsD37QaieSiWoZ5 jR/qbzKLtINJCILo50PAHcAW8OvRLv8/lQgzwUxG2APxeM3fjxmpBlPZQZVSbMv5sDft 1/y+/fTUxdi15vmjFV7kvxypG2qQN/0fKfMctsWRk15qBxZOhU5jD2yarsHrbs8MAt3r vnjQ== 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=dvURT89fsnuSM02uF9ys380JB1GK2Jt6pUZtmjeogyo=; b=BKt0b/HyucmzvoswzEVE1i+/R/J5DAMwTLypEHaPgfO26YnmwXkIYKMyCHN6L8FK+r l/PO3nBhr0d2D9b3X1B1qij9L3J0TxjjXntQ31VX237e6S61pIH7mViHpJUpqxcmL0Gf j3uiP46K8n31jmPuSwoxk2EkQKMZnGw8Xtcpb/cnx60MLKjD6Bo5ksK1V6mhrPgMyC+8 BLYh22jWulL+HWHLbHe7xZ3Yyrw3aEyC6O+UPqJEGqEBePb9UKBLaRTU8Jlvg+u6i/D0 mwL4SIiPMv4luX1nhhISz5dVepq3X/nVcwWdiW7/PVZBjWPhc5cx9hL/AvokKOmv+9Oa r9ig== 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.83 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-lb2.unibe.ch (mailhub-lb2.unibe.ch. [130.92.0.83]) by gmr-mx.google.com with ESMTPS id i7-20020a1c5407000000b0039469a105f3si371136wmb.2.2022.05.30.01.14.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 May 2022 01:14:47 -0700 (PDT) Received-SPF: pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.0.83 as permitted sender) client-ip=130.92.0.83; 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-lb2.unibe.ch (Postfix) with ESMTPS id BF19F5000BD for ; Mon, 30 May 2022 10:14:45 +0200 (CEST) Thread-Topic: Separating multiple citations in generated footnote Thread-Index: AQHYc/PWVfFIWp9Q702YM9tXjaObxa03En+Q In-Reply-To: Accept-Language: de-CH, en-US Content-Language: de-DE x-originating-ip: [172.18.72.2] 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.83 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:30631 Archived-At: --_000_8ed092b504f248fa984c4284113f68ffunibech_ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 A= uftrag 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. --=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/8ed092b504f248fa984c4284113f68ff%40unibe.ch. --_000_8ed092b504f248fa984c4284113f68ffunibech_ Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

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 f= ilters ?

 

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

 

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 requir= ements 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-d= iscuss+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 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/8ed092b504f248fa984c4284113f68ff%40unibe.ch.
--_000_8ed092b504f248fa984c4284113f68ffunibech_--