From: Bastien DUMONT <bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: Separating multiple citations in generated footnote
Date: Tue, 31 May 2022 12:33:05 +0000 [thread overview]
Message-ID: <YpYLAcAJoMim72fX@localhost> (raw)
In-Reply-To: <CADAJKhCNRMrBE5erg3N2_vj-Y+W3=r-nwjDexzh89TnHTDrC4g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
And the sources in our favorite document format can be found here: https://bastien-dumont.onmypc.net/git/bdumont/CSL-Clio :-)
Le Tuesday 31 May 2022 à 01:43:20PM, BPJ a écrit :
> Ah I see now that they are PDFs, however if you import them into Google Docs
> there is a Translate menu item there too somewhere, same caveats applying, plus
> that layout formatting may become funny when you import PDF into Google Docs.
>
> Tip: Not only can you import PDFs into GDocs; you can re-export to docx and
> process with pandoc, but it's best to unwrap any multicolumn parts in GDocs
> first!
>
> /bpj
>
> Den tis 31 maj 2022 13:34BPJ <[1]bpj-J3H7GcXPSITLoDKTGw+V6w@public.gmane.org> skrev:
>
>
>
> Den tis 31 maj 2022 11:02Bastien DUMONT <[2]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 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: [3]https://zenodo.org/communities/csl-clio/
> search?page=1&size=20
>
> 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 ⋮ menu which will translate a page and all linked pages 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 — not that it will put me out of translation jobs
> anytime soon!
>
>
>
>
> Le Tuesday 31 May 2022 à 11:29:02AM, Shane Liesegang a écrit :
> > Here they are in a gist.
> >
> > [1][4]https://gist.github.com/sjml/30b1f0093e48f37408871cc142d3dc12
> >
> > My program deals a lot with ancient and theological sources and has
> very
> > specific requirements for how certain citations look. I’m sure at
> least *some*
> > of this could be done by modifying a CSL (like using “§” instead of
> “sec.” 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,
> CSL
> > doesn’t have that level of conditional processing. (I also speak Lua
> far better
> > than I do CSL. :) )
> >
> > What really inspired this question was the institutional abbreviation
> filters —
> > on a second citation of certain institutional sources, they should be
> referred
> > to by their abbreviation. But until CSL 1.1, there’s no support for
> short
> > author names… so I track subsequent mentions, suppress the author,
> and add in
> > the abbreviation after citeproc has done its work. But when I’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.
> >
> >
> >
> >
> > On May 31, 2022, at 10:24 AM, <[3][5]denis.maier-NSENcxR/0n0@public.gmane.org> <[4]
> > [6]denis.maier-NSENcxR/0n0@public.gmane.org> wrote:
> >
> > No, I’m not interested in anything in particular. Just general
> interest.
> >
> > Von: [5][7]pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <[6][8]
> pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> > > Im Auftrag von Shane Liesegang
> > Gesendet: Montag, 30. Mai 2022 15:43
> > An: [7][9]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][10]denis.maier-NSENcxR/0n0@public.gmane.org>
> wrote:
> >
> > I don’t 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][11]pandoc-discuss@googlegroups.com <[10]
> > [12]pandoc-discuss@googlegroups.com> Im Auftrag von Shane
> Liesegang
> > Gesendet: Montag, 30. Mai 2022 09:07
> > An: pandoc-discuss <[11][13]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
> 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 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][14]
> pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> > To view this discussion on the web visit [13][15]https://
> groups.google.com/
> > d/msgid/pandoc-discuss/
> > baf8fe27-c662-4825-981d-b49fb7b38d71n%[16]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][17]https://
> groups.google.com/d/
> > topic/pandoc-discuss/uIe_wOxcGUs/unsubscribe.
> > To unsubscribe from this group and all its topics, send an
> email to
> > [15][18]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> > To view this discussion on the web visit [16][19]https://
> groups.google.com/
> > d/msgid/pandoc-discuss/8ed092b504f248fa984c4284113f68ff%[20]
> 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][21]pandoc-discuss+unsubscribe@googlegroups.com.
> > To view this discussion on the web visit [18][22]https://
> groups.google.com/d/
> > msgid/pandoc-discuss/
> > CAD7-qeusumC9zcpbCGbjevJ6J9Vdi4W8YJyTjiTmbR_yk5%2Bmrg%[23]
> 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][24]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]
> > [25]pandoc-discuss+unsubscribe@googlegroups.com.
> > To view this discussion on the web visit [21][26]https://
> groups.google.com/d/
> > msgid/pandoc-discuss/873d53586f8b4f968ac667b38da1796c%[27]
> 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 [22][28]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> > To view this discussion on the web visit [23][29]https://
> groups.google.com/d/msgid/
> > pandoc-discuss/25193173-1E8E-4A2B-81C2-9AB3BBE6DC12%[30]40gmail.com.
> >
> > References:
> >
> > [1] [31]https://gist.github.com/sjml/30b1f0093e48f37408871cc142d3dc12
> > [2] [32]https://gist.github.com/sjml/30b1f0093e48f37408871cc142d3dc12
> #file-post-filter-institutional-abbreviations-lua
> > [3] mailto:[33]denis.maier-NSENcxR/0n0@public.gmane.org
> > [4] mailto:[34]denis.maier-NSENcxR/0n0@public.gmane.org
> > [5] mailto:[35]pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> > [6] mailto:[36]pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> > [7] mailto:[37]pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> > [8] mailto:[38]denis.maier-NSENcxR/0n0@public.gmane.org
> > [9] mailto:[39]pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> > [10] mailto:[40]pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> > [11] mailto:[41]pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> > [12] mailto:[42]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> > [13] [43]https://groups.google.com/d/msgid/pandoc-discuss/
> baf8fe27-c662-4825-981d-b49fb7b38d71n%40googlegroups.com?utm_medium=
> email&utm_source=footer
> > [14] [44]https://groups.google.com/d/topic/pandoc-discuss/uIe_wOxcGUs
> /unsubscribe
> > [15] mailto:[45]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> > [16] [46]https://groups.google.com/d/msgid/pandoc-discuss/
> 8ed092b504f248fa984c4284113f68ff%40unibe.ch?utm_medium=email&utm_source
> =footer
> > [17] mailto:[47]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> > [18] [48]https://groups.google.com/d/msgid/pandoc-discuss/
> CAD7-qeusumC9zcpbCGbjevJ6J9Vdi4W8YJyTjiTmbR_yk5%2Bmrg%40mail.gmail.com?
> utm_medium=email&utm_source=footer
> > [19] [49]https://groups.google.com/d/topic/pandoc-discuss/uIe_wOxcGUs
> /unsubscribe
> > [20] mailto:[50]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> > [21] [51]https://groups.google.com/d/msgid/pandoc-discuss/
> 873d53586f8b4f968ac667b38da1796c%40unibe.ch?utm_medium=email&utm_source
> =footer
> > [22] mailto:[52]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> > [23] [53]https://groups.google.com/d/msgid/pandoc-discuss/
> 25193173-1E8E-4A2B-81C2-9AB3BBE6DC12%40gmail.com?utm_medium=email&
> utm_source=footer
>
> --
> 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 [54]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit [55]https://groups.google.com/
> d/msgid/pandoc-discuss/YpXYx3Q4UnpWiN2j%40localhost.
>
> --
> 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 [56]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit [57]https://groups.google.com/d/msgid/
> pandoc-discuss/
> CADAJKhCNRMrBE5erg3N2_vj-Y%2BW3%3Dr-nwjDexzh89TnHTDrC4g%40mail.gmail.com.
>
> References:
>
> [1] mailto:bpj-J3H7GcXPSITLoDKTGw+V6w@public.gmane.org
> [2] mailto:bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org
> [3] https://zenodo.org/communities/csl-clio/search?page=1&size=20
> [4] https://gist.github.com/sjml/30b1f0093e48f37408871cc142d3dc12
> [5] mailto:denis.maier-NSENcxR/0n0@public.gmane.org
> [6] mailto:denis.maier-NSENcxR/0n0@public.gmane.org
> [7] mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [8] mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [9] mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [10] mailto:denis.maier-NSENcxR/0n0@public.gmane.org
> [11] mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [12] mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [13] mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [14] mailto:pandoc-discuss%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [15] https://groups.google.com/
> [16] http://40googlegroups.com/
> [17] https://groups.google.com/d/
> [18] mailto:pandoc-discuss%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [19] https://groups.google.com/
> [20] http://40unibe.ch/
> [21] mailto:pandoc-discuss%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [22] https://groups.google.com/d/
> [23] http://40mail.gmail.com/
> [24] https://groups.google.com/d/topic
> [25] mailto:pandoc-discuss%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [26] https://groups.google.com/d/
> [27] http://40unibe.ch/
> [28] mailto:pandoc-discuss%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [29] https://groups.google.com/d/msgid/
> [30] http://40gmail.com/
> [31] https://gist.github.com/sjml/30b1f0093e48f37408871cc142d3dc12
> [32] https://gist.github.com/sjml/30b1f0093e48f37408871cc142d3dc12#file-post-filter-institutional-abbreviations-lua
> [33] mailto:denis.maier-NSENcxR/0n0@public.gmane.org
> [34] mailto:denis.maier-NSENcxR/0n0@public.gmane.org
> [35] mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [36] mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [37] mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [38] mailto:denis.maier-NSENcxR/0n0@public.gmane.org
> [39] mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [40] mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [41] mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [42] mailto:pandoc-discuss%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [43] https://groups.google.com/d/msgid/pandoc-discuss/baf8fe27-c662-4825-981d-b49fb7b38d71n%40googlegroups.com?utm_medium=email&utm_source=footer
> [44] https://groups.google.com/d/topic/pandoc-discuss/uIe_wOxcGUs/unsubscribe
> [45] mailto:pandoc-discuss%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [46] https://groups.google.com/d/msgid/pandoc-discuss/8ed092b504f248fa984c4284113f68ff%40unibe.ch?utm_medium=email&utm_source=footer
> [47] mailto:pandoc-discuss%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [48] https://groups.google.com/d/msgid/pandoc-discuss/CAD7-qeusumC9zcpbCGbjevJ6J9Vdi4W8YJyTjiTmbR_yk5%2Bmrg%40mail.gmail.com?utm_medium=email&utm_source=footer
> [49] https://groups.google.com/d/topic/pandoc-discuss/uIe_wOxcGUs/unsubscribe
> [50] mailto:pandoc-discuss%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [51] https://groups.google.com/d/msgid/pandoc-discuss/873d53586f8b4f968ac667b38da1796c%40unibe.ch?utm_medium=email&utm_source=footer
> [52] mailto:pandoc-discuss%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [53] https://groups.google.com/d/msgid/pandoc-discuss/25193173-1E8E-4A2B-81C2-9AB3BBE6DC12%40gmail.com?utm_medium=email&utm_source=footer
> [54] mailto:pandoc-discuss%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [55] https://groups.google.com/d/msgid/pandoc-discuss/YpXYx3Q4UnpWiN2j%40localhost
> [56] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [57] https://groups.google.com/d/msgid/pandoc-discuss/CADAJKhCNRMrBE5erg3N2_vj-Y%2BW3%3Dr-nwjDexzh89TnHTDrC4g%40mail.gmail.com?utm_medium=email&utm_source=footer
--
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/YpYLAcAJoMim72fX%40localhost.
next prev parent reply other threads:[~2022-05-31 12:33 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-30 7:06 Shane Liesegang
[not found] ` <baf8fe27-c662-4825-981d-b49fb7b38d71n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-05-30 8:14 ` AW: " denis.maier-NSENcxR/0n0
[not found] ` <8ed092b504f248fa984c4284113f68ff-NSENcxR/0n0@public.gmane.org>
2022-05-30 13:42 ` Shane Liesegang
[not found] ` <CAD7-qeusumC9zcpbCGbjevJ6J9Vdi4W8YJyTjiTmbR_yk5+mrg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-05-31 7:24 ` AW: " denis.maier-NSENcxR/0n0
[not found] ` <873d53586f8b4f968ac667b38da1796c-NSENcxR/0n0@public.gmane.org>
2022-05-31 8:29 ` Shane Liesegang
[not found] ` <25193173-1E8E-4A2B-81C2-9AB3BBE6DC12-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2022-05-31 8:59 ` Bastien DUMONT
2022-05-31 11:34 ` BPJ
[not found] ` <CADAJKhDwb6p9DxUrN-d5Rja6q6cteESc5MBRZBZwkh8dx5UwEw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-05-31 11:43 ` BPJ
[not found] ` <CADAJKhCNRMrBE5erg3N2_vj-Y+W3=r-nwjDexzh89TnHTDrC4g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-05-31 12:33 ` Bastien DUMONT [this message]
2022-05-30 13:26 ` Albert Krewinkel
[not found] ` <87wne3cfem.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
2022-05-31 7:08 ` Shane Liesegang
2022-06-01 17:36 ` jcr
[not found] ` <d07b4bcd-8431-4fff-8b61-4d482ae382bcn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-06-01 18:43 ` AW: " denis.maier-NSENcxR/0n0
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YpYLAcAJoMim72fX@localhost \
--to=bastien.dumont-vwifzpto/vqstnjn9+bgxg@public.gmane.org \
--cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).