Feature request re inline citations that have quotation marks
There is (if my knowledge is up to date and accurate) a long-standing problem with Chicago-style inline citations, when the final character is a closing quotation mark, as here:
Off-the shelf Chicago CSL specs include a final period for citations, but historians like myself often need a comma, or nothing added at all.
In the word processor we can just edit the citation and get what we want. But now we have a problem. We have severed the connection to the Zotero record. The citation will no longer be updated automatically. If we make a small style change or fix some spelling in the database, those changes will not reflect in the formatted citation.
My proposal is to put the needed punctuation in the suffix field of the final item and change how citeproc amends a suffix. Currently, it just appends the suffix. But that could be changed: If the citation without the suffix ends in a closing quotation mark and the suffix begins with a comma or period (and
Thoughts welcome before I start looking at citeproc.js myself.
(I pitched in with the very first Word plugin years ago and I recall we struggled with this back then too. Now that I have returned to use Zotero on a book with 1200 footnotes, I find that the problem is still there. Sigh. My JS scripts skills are OK but I don’t know citeproc.js nearly enough right now that I could make production-level changes. So I am still at the thinking-about-it stage.)
-- John
I have a proposal that is, I think, more related to CSL and citeproc than to Zotero per se, but let me float it first among Zoterons.See Smith, “Important article," and Jones, “Big article.”
Off-the shelf Chicago CSL specs include a final period for citations, but historians like myself often need a comma, or nothing added at all.
See Smith, “Important article," and Jones, “Big article.”
See Smith, “Important article," Jones, “Big article,” and others.
So we modify the CSL and, underSee Smith, “Important article," and Jones, “Why now?”
<citation>
, remove the suffix, changing this to this<layout suffix="." delimiter="; "
Now we have no punctuation. Great. We can just add it in our word processor after the citation, or we can add it as a suffix on the final item.<layout delimiter="; ">
See Smith, “Important article,” and Jones, “Big article”.
See Smith, “Important article,” Jones, “Big article”, and others.
But now the comma or period is (for those of us in the US) in the wrong place. It should be inside the quotation mark, not after it.See Smith, “Important article,” and Jones, “Why now?”
In the word processor we can just edit the citation and get what we want. But now we have a problem. We have severed the connection to the Zotero record. The citation will no longer be updated automatically. If we make a small style change or fix some spelling in the database, those changes will not reflect in the formatted citation.
My proposal is to put the needed punctuation in the suffix field of the final item and change how citeproc amends a suffix. Currently, it just appends the suffix. But that could be changed: If the citation without the suffix ends in a closing quotation mark and the suffix begins with a comma or period (and
punctuation-in-quote
is in force), then move that comma or period to just inside the closing quotation mark. A simple concatenation in citeproc.js would be replaced by a few substring functions.suffix
=.
on the Jones item would produce
See Smith, “Important article,” and Jones, “Big article.”
suffix
=. Translations mine.
on the Jones item would produce
See Smith, “Important article,” and Jones, “Big article.” Translations mine.
suffix
=, and others
on the Jones item would produce
Does this make sense? Has it already been discussed and rejected? Would it address the issue well? If so, how would this be implemented? With a change to the CSL spec? As a bug fix to citeproc? An enhacement to citeproc?See Smith, “Important article,” Jones, “Big article,” and others.
Thoughts welcome before I start looking at citeproc.js myself.
(I pitched in with the very first Word plugin years ago and I recall we struggled with this back then too. Now that I have returned to use Zotero on a book with 1200 footnotes, I find that the problem is still there. Sigh. My JS scripts skills are OK but I don’t know citeproc.js nearly enough right now that I could make production-level changes. So I am still at the thinking-about-it stage.)
-- John
I'd also note that the recommended method for handling the use case you start out with the standard CSL is to add ", and others" in the suffix for the citation, which I believe works correctly with punctuation?
, and others
as a suffix does not produce the right result. The comma appears outside the quotation mark.