Capitalisation sync issues
I have to have all my ref titles in sentence case, e.g. "The assessment of mindfulness with self-report measures: Existing scales and open issues."
Originally, the reference was imported to my desktop Zotero as follows "The Assessment of Mindfulness with Self-Report Measures: Existing Scales and Open Issues."
I changed it in Zotero (on my desktop) using the Transform Text facility to "The assessment of mindfulness with self-report measures: Existing scales and open issues."
But it comes up in my Word doc (Mac) as "The Assessment of Mindfulness with Self-Report Measures: Existing scales and open issues."
In Zotero online, just like Zotero desktop, I see "The assessment of mindfulness with self-report measures: Existing scales and open issues."
No matter how many times I click 'refresh' in the Word doc, it won't change and stays with the mix of upper and lower cases.
I've tried a new document - still the same.
I've tried rewriting the title. It comes up the same.
I've tried copying and pasting. It comes up the same.
On Zotero desktop, I've tried just taking out the capital letters "The ssessment of indfulness with elf-eport easures: Existing scales and open issues."
It changes in Zotero online.
It changes my Word doc perfectly.
But when I put the first letters back again - in lower case - to Zotero desktop (and it duplicates perfectly in Zotero online), it damn well rewrites the Word doc with them in upper case.
I've tried rewriting them in my Word doc but when I refresh, it brings back the error capitalisations!!
I'm frankly baffled!! Sadly I have to do this for about 12 items so Zotero is being REALLY USELESS at the moment.
PLEASE can anyone help!???
Thanks
Annie
Originally, the reference was imported to my desktop Zotero as follows "The Assessment of Mindfulness with Self-Report Measures: Existing Scales and Open Issues."
I changed it in Zotero (on my desktop) using the Transform Text facility to "The assessment of mindfulness with self-report measures: Existing scales and open issues."
But it comes up in my Word doc (Mac) as "The Assessment of Mindfulness with Self-Report Measures: Existing scales and open issues."
In Zotero online, just like Zotero desktop, I see "The assessment of mindfulness with self-report measures: Existing scales and open issues."
No matter how many times I click 'refresh' in the Word doc, it won't change and stays with the mix of upper and lower cases.
I've tried a new document - still the same.
I've tried rewriting the title. It comes up the same.
I've tried copying and pasting. It comes up the same.
On Zotero desktop, I've tried just taking out the capital letters "The ssessment of indfulness with elf-eport easures: Existing scales and open issues."
It changes in Zotero online.
It changes my Word doc perfectly.
But when I put the first letters back again - in lower case - to Zotero desktop (and it duplicates perfectly in Zotero online), it damn well rewrites the Word doc with them in upper case.
I've tried rewriting them in my Word doc but when I refresh, it brings back the error capitalisations!!
I'm frankly baffled!! Sadly I have to do this for about 12 items so Zotero is being REALLY USELESS at the moment.
PLEASE can anyone help!???
Thanks
Annie
Zotero seems to prioritise Short Title over Title.
As well as a main Title for the citation, if you look further down the Info panel, there is also a Short Title (Under DOI and ISSN). Because I'd imported the citation from the internet, the automatic citation system had put a shortened title here with the wrong capitalisation.
If you (like me) are also having problems with capitalisation syncing, I bet you'll find the part of your title that's wrong written wrongly in Short Title. Either delete or edit as you would the main title and it fixes the issue.
Phew! I was going mad!
This is a Title: But this is a subtitle. (n.d.).
.If I change the subtitle to "This is a title", I get
This is a title: But this is a subtitle. (n.d.).
as expected.If the Short Title serves mainly to facilitate a prefix match in citeproc-js, then doing a case-insensitive comparison probably makes sense.
title-short
field. The main/sub split no longer relies on a match with the short form. Code could be added to specially do a text-insensitive comparison of the parsed main title withtitle-short
, and overwrite the latter if the two happen to match; but it would miss some cases, and that might cause further confusion. Open to suggestions.@dstillman, @adamsmith
A main/sub split can occur without a match between
title-short
and the leading portion oftitle
. In that case,title-short
andtitle
are unrelated, capitalization is handled independently, the bug doesn't manifest, and there is nothing to worry about.In this case, there is a match, obviously, and that's what is triggering the bug. The match code is in there to support hinting for subtitles ending in
?
or!
. It's kicking in whenever a match is found, but if it's working correctly, that should be harmless.There is still a question, but it is much simpler than what I wrote above: When
title-short
matches the main title case-insensitive, should it be overwritten with the (possibly differently cased) value of the main title?(Sorry for the confusion.)
title: I like marmite: No, really I do
short title: I Like Marmite
what the output of
<text variable="title-short"/>
should be, correct? It's a tricky question. I'd be inclined to say leave the short title alone, i.e. render "I Like Marmite". As you suggest, there's some concern the logic will just get confusing for users. Don't feel strongly about this, though. Definitely see the case for adjusting it.That said, @dstillman, I think we should (and probably should have a while ago) automatically apply a right-click --> sentence case operation on
title
toshort title
(I've also gotten rid of the extra "Transform Text" submenu and put the options directly in the context menu.)
Some way of aligning the two in Zotero data would be good. It would mean that proper nouns need adjustment in two locations when the title is forced to sentence case, which might lead to complaints though. Tough one.I guess for the immediate fix, we can force case alignment in the processor and see how it goes. It's probably safe to assume that if title casing is wanted just on the short form for some reason, the style will impose it. I'll include a processor option to turn off forced alignment just in case issues arise ...
The revised processor is available at tag 1.2.18. The behavior can be disabled by instantiating the processor with
sys.force_short_title_casing_alignment = false
(default is true).One further thought, about the flip-side of the topic of this thread. Since we now have pretty-good parsing of main/sub titles where
title-short
is empty, we could set its value implicitly in the processor in that case. That may be too much implicit magic for comfort, but I'll just mention that the possibility is there.title-short
when empty.sys.implicit_short_title = true;
(I'll enable the feature in the next Jurism release [current is 71m2] so it can be test-driven there.)
@dstillman, I am using version 5.0.71. I'm not sure if that is the beta version; if not, I will install the beta version.