From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30642 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: BPJ Newsgroups: gmane.text.pandoc Subject: Re: Separating multiple citations in generated footnote Date: Tue, 31 May 2022 13:34:00 +0200 Message-ID: References: <8ed092b504f248fa984c4284113f68ff@unibe.ch> <873d53586f8b4f968ac667b38da1796c@unibe.ch> <25193173-1E8E-4A2B-81C2-9AB3BBE6DC12@gmail.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000dfd5d605e04d26f0" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37215"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCWMVYEK54FRBN7226KAMGQEYRQ7SWQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue May 31 13:34:20 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lj1-f188.google.com ([209.85.208.188]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nw08i-0009TR-7h for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 31 May 2022 13:34:20 +0200 Original-Received: by mail-lj1-f188.google.com with SMTP id e17-20020a2e9851000000b00253bc1c3232sf2471423ljj.10 for ; Tue, 31 May 2022 04:34:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1653996859; cv=pass; d=google.com; s=arc-20160816; b=ZJEVrkx2qMBMZ1BemNVRaUYt05pvmqadCll4yU8+CC+yhhwpNFlCQKtb7/Fz2PBW/a W9Q39NyJu2kbd1sRzWLQkN1Op/6l5g3SoysfYFjSbDwY+iJNvFXLA0Kmxo8tzo44OIQU 4Sq1IrkgqgzDZnGwZ4lC+PaqBmIB2ZsmnVzrq++HsmN0E2K8M1eDRWZXWRfRomuNJhsl ixacbwm46QQOitPDDADKpqnypDtZjmuZ+apIwf6jmnVFZfPlDUho/F4nwo/g27YHjEDH QZ5eHXPWQuCQqAuWIHr8ndURQ9K0DIkaxzXjgdmc9X3TtDuAQGSFFq5A4bt6JZGa6Cl5 VLlA== 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:to:subject:message-id:date:from :reply-to:in-reply-to:references:mime-version:sender:dkim-signature; bh=WHJc+9u4tr2WTKmjAey0RgOtZediFzbBK9qCC6RXo7M=; b=LTi6WhzjVzgB1SF5uaBz9RHCU8WdLPQ9kbuezCYjYmPSVz7CBuQKlHyw8vQ55T+zWc AGZ4KqHl7zHGIsfL9atT8CfZC53x0/dmQE0kr3JmZigiSfuEtC9woL771dzDqR4xOqFe 7131r6JP47EPKtAaflEwFuyk+TUjoMgEUR8T/xQxOGpJYnC8BHq70YL99piPP8j9ZpQH 4A2W8MlY522sl8FS9kYT3XG7bKzd2tSqI1dl7M6JKTCrUh/lDhbRVHJqRcxarMnlWLhN j3bUnmfvC0MjaMHfMzgzyzkQt2q7MW0f/CQ4AQU+9LjZ3XuXG8kx3dYljNOwaAyokwoY 0x6w== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.218.43 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:mime-version:references:in-reply-to:reply-to:from:date :message-id:subject:to:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=WHJc+9u4tr2WTKmjAey0RgOtZediFzbBK9qCC6RXo7M=; b=SgJ8W7t91btByv889hypvcI2Z6DaaeZccgKsvBRnXEJ4Qzuau4Hx5uYiriZYzGguUK 6GbSSULJvEFRimv6MhH62JQftXUw1SDGJCa6jINMqJHqTrB9XyvJV+1zcK4qeftdt5LD 4HMTrA/FwVK+TROPnvZzIWof53s9YmI42zogf+1HtBWE2LbSaiFcV2kMRCeB9PPo/sAs MJ/+lagrfyCH6QXkqC6JOoYodq/ncCXNtwIaOxc7hXo0s3/8iqfeEA3RhTAhWVzCeNc+ wdviHFIxMOlWww5jz3Ihx9hOF1D5GO0H0aa6FaRktIP7JKemgZU/8n1RF+9Bzs/Ul4VK 9ejQ== 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 :reply-to:from:date:message-id:subject:to:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=WHJc+9u4tr2WTKmjAey0RgOtZediFzbBK9qCC6RXo7M=; b=AJbOKlPeYdf7+fOgAPp+2ImBe8lI93l5o8mM9MJipUA+dnQ9M3ukyMcxup+26QWZ22 AVc33jKrEyuCoIDw6O1Nf6rcXC2IYuQS86S4Dksd/AgepMVCD/jTG9HmPRMOSBTv80/o 7xNeh3pLhp0tg6FwrsYAV7nNoQ6EEPeB3vmiIPsEaQHN/7dQ02kPJzsmaxpY9yRyZQ4P M5NQeszWAx/hrmxBJlEWVhx6ZEEunyRFcCOGZesgdsDdmtuiAN3tgPoE7jzeLeor8r7U cdzXb83wqvGS4FC8vcunB7JYhQHiCfEj5v7xZbg2csVrQfR2gucIEiKhNrvVOrTv+pKj v6tw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531lmYG/txr3wFCaY2vEkG6gRxHkfNK/yXsU4oXs5ngqa3LEzVyg NDjoyYH8Q1tlbivnLnnpurE= X-Google-Smtp-Source: ABdhPJz1EAopeH9MLDKPIHzGyRQmKq3x7HsjIKi1oOOOMy8joi9GUTqocLUUJuxRy7iRG/uO6WBGpQ== X-Received: by 2002:a05:6512:33cb:b0:477:aa55:5f3e with SMTP id d11-20020a05651233cb00b00477aa555f3emr44772960lfg.488.1653996859681; Tue, 31 May 2022 04:34:19 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:651c:1789:b0:255:4eec:4231 with SMTP id bn9-20020a05651c178900b002554eec4231ls786922ljb.7.gmail; Tue, 31 May 2022 04:34:14 -0700 (PDT) X-Received: by 2002:a2e:7c15:0:b0:253:e242:1897 with SMTP id x21-20020a2e7c15000000b00253e2421897mr29045572ljc.72.1653996854137; Tue, 31 May 2022 04:34:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653996854; cv=none; d=google.com; s=arc-20160816; b=WxqCTKJv6xSAEwP/XulZ2VmLhR4PtsQHud0TpW12z6wELksub0gKvwT8a2R3hGb4F7 rfe/eEubE8bFaROXVrCUbjJ3zK7fSqfGmXYHs9zNXfgdDkvlFfOFPrCyYsUsK00GJtuS Z7qnjihtZq6S9Wz4rLX2pOsHh7QqYEh7onLiiiPdu0Yj/fxe30hxNoXWwqyMggQFRpDq 4OIAo/bQoEd9nb1gFz2hqlPiFRXVrbNN/zPdU1dEMAgb8N25eIRw1fjfT28PHFjkPA7n 12kenvUtgyMYOP11nSDOZ2WGNE408bp0Bxvk1+5soKpslNzbeN3tTJr1+aWSmO4o5TbI kVAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version; bh=eKWzyuqmN0CyGvJlyfbzwipU3q7jmcyA6uPQjSYNhqM=; b=p7NbsKQAJSjs9KYGzKKWY5mVYkm/FNOfwUiSXJGMDSQSG18OyZdY4/uCk+UXjMsYs2 dKa+DKDlfnqpZTlQF2mxiwP0QapJG7hvF9rWBAFZmjOZfhwauOU1AN0iEl5lMfbg3kL8 0ut0E9Krf01w2h5Im6ZZwmM+EZu/UE4L7ZWnaMzDHLeTSKsFZSqnX5Rg/rB3A/RbTeap z8mrYTtJbbjrT0X5B2HkINQx3Cnev5ZWndcqWY8g4PWLhDiE1M4pHmWoQ/PaQ7Oe9Y+j jHtoR10179muXdvqAeddzVkyzzrBgVCNomU99vkP2/eOjCuEPpOPHACFgzFwmCM7lBt3 +5eg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.218.43 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Original-Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com. [209.85.218.43]) by gmr-mx.google.com with ESMTPS id k22-20020a2ea276000000b0024da01a8c6dsi604846ljm.1.2022.05.31.04.34.13 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 31 May 2022 04:34:13 -0700 (PDT) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.218.43 as permitted sender) client-ip=209.85.218.43; Original-Received: by mail-ej1-f43.google.com with SMTP id y13so26057586eje.2 for ; Tue, 31 May 2022 04:34:13 -0700 (PDT) X-Received: by 2002:a17:907:7d91:b0:6fe:efb8:8f97 with SMTP id oz17-20020a1709077d9100b006feefb88f97mr36354660ejc.717.1653996852858; Tue, 31 May 2022 04:34:12 -0700 (PDT) In-Reply-To: X-Original-Sender: melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.218.43 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.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:30642 Archived-At: --000000000000dfd5d605e04d26f0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Den tis 31 maj 2022 11:02Bastien DUMONT skrev: > I have met the problem of adapting CSL to specific requirements too... > Although I study History, it seems that we are facing common drawbacks. I > defined a set of conventions for the recording of bibliographical entries > in Zotero and wrote a sample style. You can find the style and the > documentation here: > https://zenodo.org/communities/csl-clio/search?page=3D1&size=3D20 > > I don't think that you will want to take it as is, but I hope it could be > inspiring. It is in French, but you can retrieve the source of the manual > and translate it automatically if you don't read this language. > In the android Chrome app (and I suppose other Chrome versions too) there is a "Translate page" (or something similar, I have the Swedish version! :-) item in the =E2=8B=AE menu which will translate a page and all linked p= ages on the fly. It's Google Translate of course so results may be funny at times but translation where one of the languages is English usually are passable for on-the-fly reading =E2=80=94 not that it will put me out of translation= jobs anytime soon! > Le Tuesday 31 May 2022 =C3=A0 11:29:02AM, Shane Liesegang a =C3=A9crit : > > Here they are in a gist. > > > > [1]https://gist.github.com/sjml/30b1f0093e48f37408871cc142d3dc12 > > > > My program deals a lot with ancient and theological sources and has ver= y > > specific requirements 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 around specific works (like the Summa > Theologica) > > or types of documents (papal encyclicals), and as far as I can tell, CS= L > > doesn=E2=80=99t have that level of conditional processing. (I also spea= k Lua far > better > > 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, they 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 auth= or, 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 [2]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, <[3]denis.maier-NSENcxR/0n0@public.gmane.org> <[4] > > denis.maier-NSENcxR/0n0@public.gmane.org> wrote: > > > > No, I=E2=80=99m not interested in anything in particular. Just gene= ral > interest. > > > > Von: [5]pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <[6] > pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > > Im Auftrag von Shane Liesegang > > Gesendet: Montag, 30. Mai 2022 15:43 > > An: [7]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 interested in, or > just > > general interest in citation filtering? > > > > On Mon, May 30, 2022 at 11:14 AM <[8]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: [9]pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <[10] > > pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Im Auftrag von Shane Liesegang > > Gesendet: Montag, 30. Mai 2022 09:07 > > An: pandoc-discuss <[11]pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > > 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 an= d > make > > whatever changes I need to; this might entail changing the styl= e > 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 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 > 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 [12]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit [13] > 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 [14] > https://groups.google.com/d/ > > topic/pandoc-discuss/uIe_wOxcGUs/unsubscribe. > > To unsubscribe from this group and all its topics, send an emai= l > to > > [15]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit [16] > 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 > > email to [17]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit [18] > 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 Groups "pandoc-discuss" group. > > To unsubscribe from this topic, visit [19] > https://groups.google.com/d/topic > > /pandoc-discuss/uIe_wOxcGUs/unsubscribe. > > To unsubscribe from this group and all its topics, send an email to > [20] > > pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit [21] > https://groups.google.com/d/ > > msgid/pandoc-discuss/873d53586f8b4f968ac667b38da1796c%40unibe.ch. > > > > > > -- > > You received this message because you are subscribed to the Google Grou= ps > > "pandoc-discuss" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email > > to [22]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit [23] > https://groups.google.com/d/msgid/ > > pandoc-discuss/25193173-1E8E-4A2B-81C2-9AB3BBE6DC12%40gmail.com. > > > > References: > > > > [1] https://gist.github.com/sjml/30b1f0093e48f37408871cc142d3dc12 > > [2] > https://gist.github.com/sjml/30b1f0093e48f37408871cc142d3dc12#file-post-f= ilter-institutional-abbreviations-lua > > [3] mailto:denis.maier-NSENcxR/0n0@public.gmane.org > > [4] mailto:denis.maier-NSENcxR/0n0@public.gmane.org > > [5] mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > [6] mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > [7] mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > [8] mailto:denis.maier-NSENcxR/0n0@public.gmane.org > > [9] mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > [10] mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > [11] mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > [12] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > [13] > https://groups.google.com/d/msgid/pandoc-discuss/baf8fe27-c662-4825-981d-= b49fb7b38d71n%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter > > [14] > https://groups.google.com/d/topic/pandoc-discuss/uIe_wOxcGUs/unsubscribe > > [15] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > [16] > https://groups.google.com/d/msgid/pandoc-discuss/8ed092b504f248fa984c4284= 113f68ff%40unibe.ch?utm_medium=3Demail&utm_source=3Dfooter > > [17] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > [18] > https://groups.google.com/d/msgid/pandoc-discuss/CAD7-qeusumC9zcpbCGbjevJ= 6J9Vdi4W8YJyTjiTmbR_yk5%2Bmrg%40mail.gmail.com?utm_medium=3Demail&utm_sourc= e=3Dfooter > > [19] > https://groups.google.com/d/topic/pandoc-discuss/uIe_wOxcGUs/unsubscribe > > [20] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > [21] > https://groups.google.com/d/msgid/pandoc-discuss/873d53586f8b4f968ac667b3= 8da1796c%40unibe.ch?utm_medium=3Demail&utm_source=3Dfooter > > [22] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > [23] > https://groups.google.com/d/msgid/pandoc-discuss/25193173-1E8E-4A2B-81C2-= 9AB3BBE6DC12%40gmail.com?utm_medium=3Demail&utm_source=3Dfooter > > -- > 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/YpXYx3Q4UnpWiN2j%40local= host > . > --=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/CADAJKhDwb6p9DxUrN-d5Rja6q6cteESc5MBRZBZwkh8dx5UwEw%40mail.g= mail.com. --000000000000dfd5d605e04d26f0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


Den tis 31 maj 2022 11:02Bastien DUMONT <bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org> skrev:=
I have met the problem of adapting= CSL to specific requirements too... Although I study History, it seems tha= t we are facing common drawbacks. I defined a set of conventions for the re= cording of bibliographical entries in Zotero and wrote a sample style. You = can find the style and the documentation here: https://zenodo.org/communities/csl-clio/search?p= age=3D1&size=3D20

I don't think that you will want to take it as is, but I hope it could = be inspiring. It is in French, but you can retrieve the source of the manua= l and translate it automatically if you don't read this language.

In the= android Chrome app (and I suppose other Chrome versions too) there is a &q= uot;Translate page" (or something similar, I have the Swedish version!= :-) item in the =E2=8B=AE menu which will translate a page and all linked = pages on the fly. It's Google Translate of course so results may be fun= ny at times but translation where one of the languages is English usually a= re passable for on-the-fly reading =E2=80=94 not that it will put me out of= translation jobs anytime soon!



Le Tuesday 31 May 2022 =C3=A0 11:29:02AM, Shane Liesegang a =C3=A9crit : > Here they are in a gist.
>
> [1]https://gist.github.= com/sjml/30b1f0093e48f37408871cc142d3dc12
>
> My program deals a lot with ancient and theological sources and has ve= ry
> specific requirements 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 around specific works (like the Summa Th= eologica)
> or types of documents (papal encyclicals), and as far as I can tell, C= SL
> doesn=E2=80=99t have that level of conditional processing. (I also spe= ak Lua far better
> 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, they should be = referred
> to by their abbreviation. But until CSL 1.1, there=E2=80=99s no suppor= t for short
> author names=E2=80=A6 so I track subsequent mentions, suppress the aut= hor, and add in
> the abbreviation after citeproc has done its work. But when I=E2=80=99= m trying to do
> that insertion into a citation with multiple sources, you see the kind= of
> weirdness I do in [2]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.
>
>
>
>
>=C2=A0 =C2=A0 =C2=A0On May 31, 2022, at 10:24 AM, <[3]denis.maier@= unibe.ch> <[4]
>=C2=A0 =C2=A0 =C2=A0denis.maier-NSENcxR/0n0@public.gmane.org> wrote:
>
>=C2=A0 =C2=A0 =C2=A0No, I=E2=80=99m not interested in anything in parti= cular. Just general interest.
>=C2=A0 =C2=A0 =C2=A0
>=C2=A0 =C2=A0 =C2=A0Von: [5]pandoc-discuss-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.org= m <[6]pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>=C2=A0 =C2=A0 =C2=A0> Im Auftrag von Shane Liesegang
>=C2=A0 =C2=A0 =C2=A0Gesendet: Montag, 30. Mai 2022 15:43
>=C2=A0 =C2=A0 =C2=A0An: [7]pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org=
>=C2=A0 =C2=A0 =C2=A0Betreff: Re: Separating multiple citations in gener= ated footnote
>=C2=A0 =C2=A0 =C2=A0
>=C2=A0 =C2=A0 =C2=A0I haven't made the repository public yet, but w= ould be happy to share a
>=C2=A0 =C2=A0 =C2=A0subset -- is there anything in particular you'r= e interested in, or just
>=C2=A0 =C2=A0 =C2=A0general interest in citation filtering?
>=C2=A0 =C2=A0 =C2=A0
>=C2=A0 =C2=A0 =C2=A0On Mon, May 30, 2022 at 11:14 AM <[8]denis.mai= er-NSENcxR/0n0@public.gmane.org> wrote:
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0I don=E2=80=99t have a particular sug= gestion for what you need, but I might be
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0interested in what you already do. co= uld you perhaps share your
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0filters ?
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Best,
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Denis
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Von: [9]pandoc-discuss@g= ooglegroups.com <[10]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0pandoc-discuss@googlegro= ups.com> Im Auftrag von Shane Liesegang
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Gesendet: Montag, 30. Mai 2022 09:07<= br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0An: pandoc-discuss <[11]pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Betreff: Separating multiple citation= s in generated footnote
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0My institution has a few specific cit= ation style requirements that
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0stray from the standard Chicago Style= . The changes are mostly around
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0specific works, so it's difficult= -to-impossible to meet the
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0requirements by making a new CSL. >
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0For the most part I'm able to han= dle it with Lua filters. I intercept
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0the citation reference both before an= d after --citeproc runs and make
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0whatever changes I need to; this migh= t entail changing the style to
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0SuppressAuthor, making some capitaliz= ation/punctuation changes, etc. In
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0general this works well, but where it= gets difficult is if a single
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Cite element contains multiple citati= ons. In that case, looking at the
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0generated footnote, there's no ha= rd indicator of which portion came
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0from which citation. I've got som= ething working based on scanning for
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0semicolons, but I worry that's a = little bit fragile and will probably
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0break on certain sets of reference da= ta.
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Is there any good way of mapping port= ions of the footnote to citation
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0keys? I was thinking to wrap them in = a span with some custom metadata,
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0but I can only see the citations eith= er before --citeproc (when the
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0footnote doesn't exist yet) or af= ter (when the multiple citations have
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0already combined). What would be trul= y ideal would be the ability to
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0filter the citation process itself, b= ut I'm assuming since that's from
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0a different library that it is not ex= posed to Lua?
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Like I said, I have something mostly = working now, but any thoughts/
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0advice would be appreciated.
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0You received this message because you= are subscribed to the Google
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Groups "pandoc-discuss" gro= up.
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0To unsubscribe from this group and st= op receiving emails from it, send
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0an email to [12]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0To view this discussion on the web vi= sit [13]https://groups.google.com/
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0d/msgid/pandoc-discuss/
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0baf8fe27-c662-4825-981d-b49fb7b38d71n= %40googlegroups.com.
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0You received this message because you= are subscribed to a topic in the
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Google Groups "pandoc-discuss&qu= ot; group.
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0To unsubscribe from this topic, visit= [14]https://groups.google.com/d/
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0topic/pandoc-discuss/uIe_wOxcGUs/unsu= bscribe.
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0To unsubscribe from this group and al= l its topics, send an email to
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[15]pandoc= -discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0To view this discussion on the web vi= sit [16]https://groups.google.com/
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0d/msgid/pandoc-discuss/8ed092b504f248= fa984c4284113f68ff%40unibe.ch.
>
>=C2=A0 =C2=A0 =C2=A0--
>=C2=A0 =C2=A0 =C2=A0You received this message because you are subscribe= d to the Google Groups
>=C2=A0 =C2=A0 =C2=A0"pandoc-discuss" group.
>=C2=A0 =C2=A0 =C2=A0To unsubscribe from this group and stop receiving e= mails from it, send an
>=C2=A0 =C2=A0 =C2=A0email to [17]pandoc-disc= uss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
>=C2=A0 =C2=A0 =C2=A0To view this discussion on the web visit [18]https://groups.google.com/d/
>=C2=A0 =C2=A0 =C2=A0msgid/pandoc-discuss/
>=C2=A0 =C2=A0 =C2=A0CAD7-qeusumC9zcpbCGbjevJ6J9Vdi4W8YJyTjiTmbR_yk5%2Bm= rg%40mail.gmail.com.
>
>=C2=A0 =C2=A0 =C2=A0--
>=C2=A0 =C2=A0 =C2=A0You received this message because you are subscribe= d to a topic in the
>=C2=A0 =C2=A0 =C2=A0Google Groups "pandoc-discuss" group.
>=C2=A0 =C2=A0 =C2=A0To unsubscribe from this topic, visit [19]https://groups.google.com/d/topic
>=C2=A0 =C2=A0 =C2=A0/pandoc-discuss/uIe_wOxcGUs/unsubscribe.
>=C2=A0 =C2=A0 =C2=A0To unsubscribe from this group and all its topics, = send an email to [20]
>=C2=A0 =C2=A0 =C2=A0pandoc-discuss+unsubscri= be-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
>=C2=A0 =C2=A0 =C2=A0To view this discussion on the web visit [21]https://groups.google.com/d/
>=C2=A0 =C2=A0 =C2=A0msgid/pandoc-discuss/873d53586f8b4f968ac667b38da179= 6c%40unibe.ch.
>
>
> --
> You received this message because you are subscribed to the Google Gro= ups
> "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send= an email
> to [22]pandoc-discuss+unsubscribe@googlegro= ups.com.
> To view this discussion on the web visit [23]https= ://groups.google.com/d/msgid/
> pandoc-discuss/25193173-1E8E-4A2B-81C2-9AB3BBE6DC12%40gmail.com.
>
> References:
>
> [1]
https://gist.github= .com/sjml/30b1f0093e48f37408871cc142d3dc12
> [2] https://gist.github.com/sjml/30b1f0093e48f374= 08871cc142d3dc12#file-post-filter-institutional-abbreviations-lua
> [3] mailto:denis.maier-NSENcxR/0n0@public.gmane.org
> [4] mailto:denis.maier-NSENcxR/0n0@public.gmane.org
> [5] mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [6] mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [7] mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [8] mailto:denis.maier-NSENcxR/0n0@public.gmane.org
> [9] mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [10] mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [11] mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [12] mailto:pandoc-discuss+unsubscribe@goog= legroups.com
> [13] https:= //groups.google.com/d/msgid/pandoc-discuss/baf8fe27-c662-4825-981d-b49fb7b3= 8d71n%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter
> [14] https:/= /groups.google.com/d/topic/pandoc-discuss/uIe_wOxcGUs/unsubscribe
> [15] mailto:pandoc-discuss+unsubscribe@goog= legroups.com
> [16] https://groups.goog= le.com/d/msgid/pandoc-discuss/8ed092b504f248fa984c4284113f68ff%40unibe.ch?u= tm_medium=3Demail&utm_source=3Dfooter
> [17] mailto:pandoc-discuss+unsubscribe@goog= legroups.com
> [18] https://groups.google.com/d/msgid/pandoc-discuss/CAD7-qeusumC9zcpbC= GbjevJ6J9Vdi4W8YJyTjiTmbR_yk5%2Bmrg%40mail.gmail.com?utm_medium=3Demail&= ;utm_source=3Dfooter
> [19] https:/= /groups.google.com/d/topic/pandoc-discuss/uIe_wOxcGUs/unsubscribe
> [20] mailto:pandoc-discuss+unsubscribe@goog= legroups.com
> [21] https://groups.goog= le.com/d/msgid/pandoc-discuss/873d53586f8b4f968ac667b38da1796c%40unibe.ch?u= tm_medium=3Demail&utm_source=3Dfooter
> [22] mailto:pandoc-discuss+unsubscribe@goog= legroups.com
> [23] https://groups= .google.com/d/msgid/pandoc-discuss/25193173-1E8E-4A2B-81C2-9AB3BBE6DC12%40g= mail.com?utm_medium=3Demail&utm_source=3Dfooter

--
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@googlegroups.= com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discu= ss/YpXYx3Q4UnpWiN2j%40localhost.

--
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/CADAJKhDwb6p9DxUrN-d5Rja6q6cteESc5MBRZBZw= kh8dx5UwEw%40mail.gmail.com.
--000000000000dfd5d605e04d26f0--