emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wip-cite status question and feedback


From: Denis Maier
Subject: Re: wip-cite status question and feedback
Date: Sun, 2 May 2021 23:58:59 +0200

While evaluating different aspects of punctuation moving I had another look at the csquotes package. p. 21 f. and p. 27 ff. in the manual (http://mirrors.ctan.org/macros/latex/contrib/csquotes/csquotes.pdf) are quite instructive.[1] This package a structured representation of a quotation, final punctuation in the quotation, the citation, and trailing punctuation, which all can then be reassembled according to different rules. Now, I was wondering if something similar could be used for org as well. I'm thinking of something like this:

1. At first parse quotations and citations into lists '(quotation-content final-punct-in-quotation citation trailing-punctuation)
2. Fed that into a second function that reassembles the elements.

In that case, the function org-cite-wrap-punctuation would take a object, info, a boolean and a function as arguments, the boolean would enable/disable the function, the last argument could specify how the elements should be reassembled, so: (defun org-cite-wrap-citation (citation info &optional move-punctuation move-punctuation-function)
=>
(org-cite-wrap-citation citation info t American)

Does that make sense? Would that be possible?

I'm thinking whether this could make the system more flexible and adaptable. And it would remedy the need to come up with all possible patterns as it should be easy to add those later. WDYT?

Denis

[1]:  As it seems, french typography seems to place note symbols just before the closing quotation mark.

Am 01.05.2021 um 15:26 schrieb Bruce D'Arcus:
On Fri, Apr 30, 2021 at 5:48 PM Denis Maier <denismaier@mailbox.org> wrote:

Yes, this should be equivalent to the behaviour in pandoc.

However, as I've said before, this behaviour is only correct in American
English.
Denis and I are working on sorting out the details of how to address
this off-list ATM.

But I'm tentatively thinking this could be addressed by splitting the
MOVE-PUNCTUATION parameter in two, so that we have:

MOVE-PUNCTUATION: Move punctuation character following citation before
it, when applicable (for example [TODO]).

PUNCTUATION-INSIDE-QUOTES: If a quotation mark precedes the citation,
move punctuation before it, too, unless [TODO]

So for the examples Nicolas posted, this:

(org-cite-wrap-citation citation info t)

… would change to this:

(org-cite-wrap-citation citation info t t)

... and to get the British/German output it would be:

(org-cite-wrap-citation citation info t nil)

More when we figure out if this is feasible, with example input/output, etc.

Bruce




reply via email to

[Prev in Thread] Current Thread [Next in Thread]