On Sun, May 2, 2021 at 6:18 PM Bruce D'Arcus <bdar...@gmail.com> wrote:
> On Sun, May 2, 2021 at 5:59 PM Denis Maier <denisma...@mailbox.org> wrote: > > > I'm thinking whether this could make the system more flexible and > > adaptable. > > We'd still need to discuss details of course (like including sensible > defaults, etc.) if this were possible, but Denis and I agree that > having a second optional parameter as a function would be ideal. If this is NOT practical, just to summarize what we've learned/concluded: Assuming this basic example: A sentence ending in a "cited quote" [cite:doe]. We found three rules: 1. what Chicago calls "American" 2. what it calls "British" 3. French (though Denis is still confirming how these work in actual books) The output in each, when formatting as a note: 1. A sentence ending in a "cited quote."[1] 2. A sentence ending in a "cited quote".[1] 3. A sentence ending in a "cited quote[1]." Note: Nicolas' POC correctly handles case 1. Can be hard to see the nuances, but note that all three move the punctuation, and remove the space between quote and note mark. The difference is how they reassemble these components; in particular where they put that trailing punctuation (period, etc.), and where they put the note mark. 1. move punctuation inside quote 2. move punctuation outside quote 3. move note mark AND then punctuation inside quote It could be they each need a boolean parameter, similar to what I suggested earlier. Then "American" (current) could be: - punctuation-inside-quote t - mark-inside-quote nil "British" could be: - punctuation-inside-quote nil - mark-inside-quote nil And "french": - punctuation-inside-quote t - mark-inside-quote t But a potential (?) problem with this is one couldn't specify the relative order of punctuation and note mark. So Denis had an idea to simply allow the order of those components to be configured, something like this (the lisp is probably wrong, but it demonstrates the idea): `(final-punct trailing-punct closing-quotation citation) I think that covers current status. So what to do? Bruce PS - we know, this seems a lot of effort for what seems a corner case. But there will be some users for which this matters a lot.