Case protection in BibTeX export format

A place for users to ask each other questions, make suggestions, and discuss Bookends.
Euler1
Posts: 8
Joined: Wed Jan 18, 2023 6:06 pm

Re: Case protection in BibTeX export format

Post by Euler1 »

I'm sorry, I didn't know it was already implemented! Thanks a lot for that. Sounds very good. Of course I will be happy to use it.
Jon
Site Admin
Posts: 10291
Joined: Tue Jul 13, 2004 6:27 pm
Location: Bethesda, MD
Contact:

Re: Case protection in BibTeX export format

Post by Jon »

No way you could know, it's not released yet. :)

Jon
Sonny Software
DrJJWMac
Posts: 397
Joined: Sat Jun 22, 2019 8:04 am
Location: Alabama USA

Re: Case protection in BibTeX export format

Post by DrJJWMac »

I apologize to bump this topic. My question follows on the thread.

I have a title that includes the chemical ions K+ and Cl-. I want all title cases to export in sentence case. I want ion names to be capitalized. I am using BibTeX.fmt with this ...

title = {$t}, $

The title in the library is given as "... {(K+, Cl-)} ...". The BibTeX.fmt export gives "... {(k+, cl-)} ...".

Absent that I manually add these (and all other) chemical elements to the protection list, how do I go about protecting single capitalized letters such as element names from being converted to sentence case?

ps ... The same title contains the name Lorentz, and that name is retained in title case. The magic would be nice with element names too.
--
JJW
Jon
Site Admin
Posts: 10291
Joined: Tue Jul 13, 2004 6:27 pm
Location: Bethesda, MD
Contact:

Re: Case protection in BibTeX export format

Post by Jon »

I' see that Cl can be protected if it's in the list, but K isn't. I'll have to see why that is.

Jon
Sonny Software
DrJJWMac
Posts: 397
Joined: Sat Jun 22, 2019 8:04 am
Location: Alabama USA

Re: Case protection in BibTeX export format

Post by DrJJWMac »

Just to be clear ... I do not have K and Cl on the protection list. I just bracketed their expression {(K+, Cl-)} in the title in hopes that this would protect their case. I also tested manually putting (K+, {Cl}-) in the title to no avail ... it still gives (k+, cl-). I've ended up putting K and Cl in the protection list for the time being. This keeps their case.
--
JJW
Jon
Site Admin
Posts: 10291
Joined: Tue Jul 13, 2004 6:27 pm
Location: Bethesda, MD
Contact:

Re: Case protection in BibTeX export format

Post by Jon »

K works for a standalone letter in the title, but not for K+. But adding K+ to the list works when K+ is in the title.

Brackets protect case when the text is processed by BibTeX or a similar app. Bookends emits the text, it doesn't know that to BibTeX curly brackets mean don't change case. Bookends has an exception list, and that's working.

Jon
Sonny Software
DrJJWMac
Posts: 397
Joined: Sat Jun 22, 2019 8:04 am
Location: Alabama USA

Re: Case protection in BibTeX export format

Post by DrJJWMac »

I'll continue with the protection list approach while holding out hope that someday I might also have the option to put {Brackets} manually around a term or phrase in a title when I want to protect the case of that term or phrase.
--
JJW
Post Reply