retorquere / zotero-better-bibtex

Make Zotero effective for us LaTeX holdouts
https://retorque.re/zotero-better-bibtex/
MIT License
5.36k stars 288 forks source link

BBT sentence case for chemistry #2890

Open aborel opened 5 months ago

aborel commented 5 months ago

Debug log ID

PKFXFXI9-refs-euc/6.7.201-6

What happened?

Hello,

I have started to use BBT sentence case for my titles, the results for my titles in chemistry are much better than the standard Zenodo sentence case. However, I'd like it even better if it could recognize chemical element symbols and retain the capital for them. I'm not sure that there can be a perfect implementation, but recognizing isolated elements would already be very convenient for me. Here's an example:

Original input: Structural and Magnetic Properties of MCl 2 (M = Fe, Mn, Co): Acetonitrile Solvates

Current BBT sentence case: Structural and magnetic properties of mcl 2 (M = fe, mn, co): Acetonitrile solvates

Desired output: Structural and magnetic properties of MCl 2 (M = Fe, Mn, Co): Acetonitrile solvates

Good enough output: Structural and magnetic properties of mcl 2 (M = Fe, Mn, Co): Acetonitrile solvates

Could this be a possibility at some point in the future?

retorquere commented 5 months ago

These are not all unambiguously chemical elements; Fe = faith (Spanish), Co = neck (Vietnamese). This goes for the majority of the chemical elements.

retorquere commented 5 months ago

MCI2 I can look into once I'm back at my system.

aborel commented 5 months ago

Understood. I had the vague impression that two-letter words might be a problem, but I hadn't considered it in a non-English context.