Punctuation moved inside quotes - undocumented?
I've noticed that for text elements, punctuation such as commas and
periods specified as group suffixes or delimiters are moved inside quotes when the
attribute quotes="true"
This behaviour is not documented anywhere, even in the CSL schema.
My question is, what are the rules applied for moving punctuation inside quotes,
and is any text other than punctuations ever moved?
periods specified as group suffixes or delimiters are moved inside quotes when the
attribute quotes="true"
This behaviour is not documented anywhere, even in the CSL schema.
My question is, what are the rules applied for moving punctuation inside quotes,
and is any text other than punctuations ever moved?
Hi, I'm (another user and) working on a new citation formatting module (CSL processor) for Zotero. I'm not sure about the existing processor, but I'd be very interested to learn how quotes and punctuation should be handled. Currently, my own processor would place punctuation outside quotation marks. This seems like sensible behavior to me, and could be overridden by placing a group around the field, and putting the quotes attribute on the group (and the affixes with punctuation on the text element inside it). But if that seems undesirable, please let me know.
This needs to be documented along with the larger cleanup of quote-handling (it's localization). It also needs to be configured in the locales files I think.
Frank, we need a test case for this, as it's an important feature.
Indeed. First I've heard of this. I'll fix the code when I see the tests.
EDIT: I also see that there ... seems to be no British English locale yet.
BTW, it's generally a bad idea to be including automatically generated files in the SCM. We might reconsider requiring the machine/human separation. Seems the only reason we do this is b/c we're shoe-honing XML into the JSON, and that if we just stored the CSL separately we wouldn't need to?
The tests should be kept in single files. It would be annoying to have to scratch around in parallel filesystem hierarchies when writing, editing or interpreting tests (I've written about eighty of them so far, but we'll need five or six times that number eventually, so ease of editing is important).
I'm not sure that quotes are just a locale issue. I'm British, and opinion on the placement of punctuation inside quotes is highly divided. Many academics prefer punctuation to be outside the quotes, unless it was part of an actual quoted sentence, others do not. The 'average' British writer would move any punctuation inside quotes, but it is not a rule as such. The desired quote style should probably be part of the CSL file, as it is specified by the Journals, and I have no doubt that there will be some British journals using the 'US' quote style.