[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [wip-cite-new] Adjust punctuation around citations
From: |
Bruce D'Arcus |
Subject: |
Re: [wip-cite-new] Adjust punctuation around citations |
Date: |
Sat, 12 Jun 2021 17:41:02 -0400 |
I'm not able to test this closely ATM, but a few things ...
On Sat, Jun 12, 2021 at 5:39 AM Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
>
> Hello,
>
> Denis Maier <denismaier@mailbox.org> writes:
>
> > Yes, good this is coming.
>
> As a step forward, I rebased wip-cite-new branch with more support for
> note numbers handling.
>
> I added three customizable variables:
>
> - org-cite-adjust-note-numbers, which simply allows the user to toggle
> punctuation and note number moving (on by default).
>
> - org-cite-note-rules, which defines what rules to apply according to
> locale, expressed as a language tag, as in RFC 4646.
>
> - org-cite-punctuation-marks, which lists strings recognized as
> punctuation in the process.
>
> `csl' and `basic' processors now both make use of this.
>
> I'd appreciate some feedback, in particular about the docstrings of the
> variables above. I focused on the "note numbers" topic instead of
> "punctuation" since I found the latter too generic.
>
> Also, there are some points that may need to be discussed:
>
> - I'm not sure about the `org-cite-punctuation-marks' variable being
> global, i.e., not locale-specific.
One of the things I've wondered about, but cannot offer any expertise
on (really, I have no clue), is how this might work for languages like
Arabic or Mandarin.
> - There is no support for this in LaTeX-derived back-ends, because
> I don't know when a citation is going to become a footnote. As
> a reminder, there is no "\footcite" command in `biblatex' processor.
> OTOH, users might prefer using a more advanced mechanism, e.g.,
> csquotes.
So the upshot is if users want this functionality for LaTeX/PDF, they
should use oc-biblatex for that export target?
> - It doesn't do anything special in quote blocks, because I'm still not
> sure there is something to do. AFAIU, special casing there only
> applies to author-date location, which out of the scope of this code.
Here's the scenario I believe Denis was concerned about:
#+begin_quote
... block with citation at end. [cite:@doe]
#+end_quote
I think in standard author-year styles, we'd want:
... block with citation at end. (Doe, 2020)
... while in note-based and "US" (space removed):
... block with citation at end.[1]
Not sure if that has any practical import, but just to clarify.
Bruce
- Re: [wip-cite-new] Adjust punctuation around citations, Nicolas Goaziou, 2021/06/05
- Re: [wip-cite-new] Adjust punctuation around citations, Bruce D'Arcus, 2021/06/05
- Re: [wip-cite-new] Adjust punctuation around citations, Denis Maier, 2021/06/13
- Re: [wip-cite-new] Adjust punctuation around citations, Bruce D'Arcus, 2021/06/13
- Re: [wip-cite-new] Adjust punctuation around citations, Denis Maier, 2021/06/13
- Re: [wip-cite-new] Adjust punctuation around citations, Bruce D'Arcus, 2021/06/13
- Re: [wip-cite-new] Adjust punctuation around citations, Denis Maier, 2021/06/14
- Re: [wip-cite-new] Adjust punctuation around citations, Denis Maier, 2021/06/14
- Re: [wip-cite-new] Adjust punctuation around citations, Bruce D'Arcus, 2021/06/14