That is true. Since it is implemented in the preferences, I am totally happy about it.
Case protection in BibTeX export format
Re: Case protection in BibTeX export format
-
- Posts: 51
- Joined: Sat Jul 04, 2015 3:36 am
Re: Case protection in BibTeX export format
Thanks, that has fixed it for me. Really appreciate this as it make the BibTeX support much better.
Re: Case protection in BibTeX export format
I have a diferent issue with case protection: I write primarily in German where all nouns are capitalized and thus want my bibliography to preserve the original capitalization from my BE library. I've checked the box "Bracket 'don't change case' words" in the preferences (using the update BE version), but that's not doing anything. I'm guessing this is because this option only brackets specific words, as Ian suggested. Is that correct and if yes, which words / how can they be specified? On another note I am wondering whether is this really the best way to go about preserving capitalization globally. I agree with Dellu that bibliography styles should handle such global capitalization e.g. when typesetting via LaTeX. But I also use pandoc, e.g. Chris grieser's Alfred Bibtex Citation Picker. When I paste fully formated bibliographic entries via the picker, nouns are never capitalized (hence Chris suggested I use curly brackets for all my titles / nouns). Any advice would be much appreciated
Re: Case protection in BibTeX export format
The words are listed in the Scan & Bib tab. But you can't enter all the nouns you use.
Try editing the BibTeX format to output braces around your titles. I think that will work for you (can't test now, I'm out of town).
Jon
Sonny Software
Try editing the BibTeX format to output braces around your titles. I think that will work for you (can't test now, I'm out of town).
Jon
Sonny Software
Re: Case protection in BibTeX export format
I'm sorry for being late to the party.
The feature is great as it is, but I would like to suggest one change. At the moment, words like "mRNA" or "iPhone" are not protected with curly braces, even if they are in the "Don't change case" -list (because they don't start with an uppercase letter). As a result (at least in my latex setup) they become "mrna" and" iphone". A possible solution would be to protect not only all words from that list which begin with an uppercase letter, but all words that contain an uppercase letter.
For my current setup that would be enough and I would be grateful for this change. However, if somebody is using a .bib-file with CSL (via pandoc-citeproc), words that should remain lowercase should be protected. The pandoc documentation gives the following example [1]:
Hence, one could even suggest to protect all words in the "Don't change case"-list with braces, regardless whether they contain an uppercase letter or not. I see the little annoyance that a few lowercase words from that list are protected that don't need to be protected, but as far as I can see that's not doing any harm in the output: They stay lower case in any case. As I'm not using CSL at the moment, I'm undecided on this part.
[1]: https://pandoc.org/MANUAL.html#capitalization-in-titles
The feature is great as it is, but I would like to suggest one change. At the moment, words like "mRNA" or "iPhone" are not protected with curly braces, even if they are in the "Don't change case" -list (because they don't start with an uppercase letter). As a result (at least in my latex setup) they become "mrna" and" iphone". A possible solution would be to protect not only all words from that list which begin with an uppercase letter, but all words that contain an uppercase letter.
For my current setup that would be enough and I would be grateful for this change. However, if somebody is using a .bib-file with CSL (via pandoc-citeproc), words that should remain lowercase should be protected. The pandoc documentation gives the following example [1]:
Code: Select all
title = {Spin Wave Dispersion on the {nm} Scale}
[1]: https://pandoc.org/MANUAL.html#capitalization-in-titles
Re: Case protection in BibTeX export format
My tests show that mRNA is protected by curly brackets if it's entered in the "don't change case" field in preferences. Did you check the "Bracket "don't change case" words in title" option in BibTeX preferences?
Jon
Sonny Software
Jon
Sonny Software
Re: Case protection in BibTeX export format
Yes, I did. I also have Bibtex markup selected.
This is an example title:
"The structure of the mRNA and its role in Paris"
With title case this becomes:
title = {The Structure of the mRNA and Its Role in {Paris}},
With sentence case:
title = {The structure of the mRNA and its role in {Paris}},
With "as entered":
title = {The Structure of the mRNA and its role in Paris},
(I've also added "Paris" to the list.)
This is an example title:
"The structure of the mRNA and its role in Paris"
With title case this becomes:
title = {The Structure of the mRNA and Its Role in {Paris}},
With sentence case:
title = {The structure of the mRNA and its role in {Paris}},
With "as entered":
title = {The Structure of the mRNA and its role in Paris},
(I've also added "Paris" to the list.)
Re: Case protection in BibTeX export format
Hm, I don't know why I saw it before, but you're right. I've fixed this for the next update. Now you'll get
"The Structure {of} the {mRNA} {and} Its Role {in} {Paris}}"
BTW, I was already considering the option to protect any word that has 2 caps (not 1) automatically. That would protect words like EU and H|2|O (| = subscript).
Jon
Sonny Software
"The Structure {of} the {mRNA} {and} Its Role {in} {Paris}}"
BTW, I was already considering the option to protect any word that has 2 caps (not 1) automatically. That would protect words like EU and H|2|O (| = subscript).
Jon
Sonny Software
Re: Case protection in BibTeX export format
I have to admit, the longer I look at this, the more I dislike the unnecessary protection of {of}, {and}, and {in}. It just looks wrong to a Latex user, I guess. What do you think of my first suggestion to protect all words from the "do not change case" list that contain at least one capital letter?
That would result in
"The Structure of the {mRNA} and Its Role in {Paris}}"
I'm sorry for the little back and forth.
That would result in
"The Structure of the {mRNA} and Its Role in {Paris}}"
I'm sorry for the little back and forth.
Re: Case protection in BibTeX export format
I think it's ugly, too, but that's how the rules work now. I'd consider changing the feature to only bracket reserved words that have at least one capital letter. Does any other BibTeX user reading this have an opinion? If so, please post.
What do you think of adding adding another option to the "don't change" behavior, to leave any word with 2 caps or more as is. This would not be BibTeX-specific, but would apply to normal use as well (normal meaning what non-BibTeX users do). It would be a separate checkbox in preferences. If checked, Bookends would first examine a word to see if it's the don't change list, and if it's not check to see if there are 2 or more caps. The advantage is that if you're in a speciality with lots of acronyms you don't have to add each one individually to the don't change list.
Jon
Sonny Software
What do you think of adding adding another option to the "don't change" behavior, to leave any word with 2 caps or more as is. This would not be BibTeX-specific, but would apply to normal use as well (normal meaning what non-BibTeX users do). It would be a separate checkbox in preferences. If checked, Bookends would first examine a word to see if it's the don't change list, and if it's not check to see if there are 2 or more caps. The advantage is that if you're in a speciality with lots of acronyms you don't have to add each one individually to the don't change list.
Jon
Sonny Software
Re: Case protection in BibTeX export format
P.S. I'm rolling back the change for now, and see what to after the upcoming update.
Jon
Sonny Software
Jon
Sonny Software
Re: Case protection in BibTeX export format
Just to make sure there is no misunderstanding because of my first post. When using bib(la)tex (or pandoc with the --biblatex option), there is no rule or need to enclose words containing only lowercase letters in curly brackets (exception: a word with only lowercase letters, which is the first word of a title and should remain lowercase...). Rather the opposite is true: it would be considered weird (or ugly

To me, this sounds like a great improvement to the current "bracket acronyms" option.I'd consider changing the feature to only bracket reserved words that have at least one capital letter. Does any other BibTeX user reading this have an opinion? If so, please post.
What do you think of adding adding another option to the "don't change" behavior, to leave any word with 2 caps or more as is. This would not be BibTeX-specific, but would apply to normal use as well (normal meaning what non-BibTeX users do). It would be a separate checkbox in preferences. If checked, Bookends would first examine a word to see if it's the don't change list, and if it's not check to see if there are 2 or more caps. The advantage is that if you're in a speciality with lots of acronyms you don't have to add each one individually to the don't change list.
Re: Case protection in BibTeX export format
One addition: the use of {and}, {in} , {if}, {of} etc. has the disadvantage that it prevents Bibtex from converting the title to all caps when required by the bibliography style.
Re: Case protection in BibTeX export format
I’ve been thinking about this and would be interested in your opinions about this variation: How about applying this procedure to all words that contain at least 1 capital letter after removing their first character? This would include all words with 2 or more caps (“mRNA”, “macOS”) but also words like “iPhone”. It would still not apply to “Paris”, because there is no capital letter left after removing the P.What do you think of adding adding another option to the "don't change" behavior, to leave any word with 2 caps or more as is. This would not be BibTeX-specific, but would apply to normal use as well (normal meaning what non-BibTeX users do). It would be a separate checkbox in preferences. If checked, Bookends would first examine a word to see if it's the don't change list, and if it's not check to see if there are 2 or more caps. The advantage is that if you're in a speciality with lots of acronyms you don't have to add each one individually to the don't change list.
In addition to this possible new option, bracketing all words from the Don”t change case list” which contain at least one capital letter, no matter where, still sounds to me like a good extension of the current behavior. But again I would be interested in other opinions.
Re: Case protection in BibTeX export format
This is what has been implemented for the next release. I think these changes cover the bases. If you want to revisit this please wait until the next release is out and you've had time to use it.
For the exempted word list:
The preferences BibTeX option "Bracket "don't change case" will bracket words entered in the Scan & Bib -> Sentence & Title Case list containing at least one capital letter, regardless of where it appears. For example, {mRNA}, {iPhone}, and {Paris}.
A new option:
Option to exempt Title words with multiple capital letters when applying Title Case or Sentence case. In the preferences Scan & Bib tab there is the option to leave words with 2 or more capital letters as is. If checked, acronyms like UK and chemical symbols like H2O will retain their case when the Title is changed to Title Case or Sentence case. This is in addition to the list of words that should always appear in the specified case. The new option allows you to exclude an entire class of words (those with multiple capital letters) without having to enter them individually in the "don't change" list.
Jon
Sonny Software
For the exempted word list:
The preferences BibTeX option "Bracket "don't change case" will bracket words entered in the Scan & Bib -> Sentence & Title Case list containing at least one capital letter, regardless of where it appears. For example, {mRNA}, {iPhone}, and {Paris}.
A new option:
Option to exempt Title words with multiple capital letters when applying Title Case or Sentence case. In the preferences Scan & Bib tab there is the option to leave words with 2 or more capital letters as is. If checked, acronyms like UK and chemical symbols like H2O will retain their case when the Title is changed to Title Case or Sentence case. This is in addition to the list of words that should always appear in the specified case. The new option allows you to exclude an entire class of words (those with multiple capital letters) without having to enter them individually in the "don't change" list.
Jon
Sonny Software