Elena,
Elena Razlogova wrote:
but that breaks the thesis entry where I get “Ph.d. diss.” instead
of “Ph.D. diss.”:
… this is the bug I was referring to. If Zotero didn’t do this,
would
you be asking for a new feature in CSL?
This is not a bug, as defined in CSL:
"capitalize-first"
> # capitalize first character; other characters
# displayed lowercase
Well, OK, maybe a bug in the documentation too 
Whether Zotero can handle sentence case is not the issue here–this is
not the function I’m asking for.
But I’m trying to figure out WHY you’re asking for it, and what the
implications are of adding it. I understand you need a solution for this
issue, but we need to work through the details of how to solve it best.
Yes, I can’t use “sentence-case” for “genre” and “location in
archive.” I need a new function, the one you describe above.
OK, so we’re at least understanding each other.
Please correct me if I’m wrong here. Because if I’m right, I’m not
understanding how you don’t consider the Zotero behavior a bug from
the
CSL standpoint.
Again, whether Zotero can handle sentence case is not the issue here–
this is not the function I’m asking for. The current “capitalize-
first” behavior is needed to toggle from title case/all caps to
sentence case. I have a completely different problem.
What I’m saying is that “genre” and “archive-location” need to be
formatted differently from titles–the capitalization should be left
as is. For example, in this source:
F. A. Metzgar to NBC, February 12, 1936, folder “Programs-Criticism
1936,” NBC Mss. (LC).
No “sentence-case” formatting for “genre,” however sophisticated,
would know that in this case “Programs-Criticism” has to be
capitalized. Proper “sentence-case” (once it works) would result in
this formatting:
Metzgar, F. A. Letter to NBC. February 12, 1936. Folder “programs-
criticism 1936.” NBC Mss. (LC).
Whereas I need:
Metzgar, F. A. Letter to NBC. February 12, 1936. Folder “Programs-
Criticism 1936.” NBC Mss. (LC).
I’m asking for an additional function that would be able to handle
these cases.
But is this really an issue confined to genre and location formatting?
Or is it instead a generic problem of potentially any string?
Consider, for example, a title like:
A Commentary on "Some Title"
Don’t we end up with the exact same problem you identify for your use
case? If the CSL says to use sentence case, I’d presume we’d end up with:
A commentary on "some title"
… when it should probably be:
A commentary on "Some title"
…?
Note: since I’m not British, I’m not totally sure I have this example
right. But if I’m right, then how does adopting your proposed solution
solve this case? Can we figure out a generic mechanism that can?
I suppose one (potentially bad) solution is to decouple the basics of
transformation from more specific (and difficult) algorithms about
internal formatting. In that case, we have your suggestion, but then add
another attribute something like:
In cases where lowercase transformation is used, formatter
should attempt to preserve correct casing for semantic terms
content such as acronyms, personal names, titles and so forth.
attribute preserve-internal-semantics { boolean }?
So we could have:
… or:
This might be a bad idea; just thinking out loud …
Bruce