Capitalize Title in BibTeX export

I would like an option to have BibTeX export Titles with bracket-enclosed capital letters, e.g.

"News from China"

should be exported as

"{N}ews from {C}hina"

Otherwise, I'd need to manually search through the generated BibTeX file and do the replacements by hand ...

Cheers, Andreas.
  • I believe that title casing in the database was more common when the current behavior (to bracket-enclose words with capital letters in positions other than the start of words) was established. It seems sentence case is now prevalent, so we could probably change this. Not sure that "news" in your example needs to be preserved, but I don't see much harm in it & I don't see a way to work around it.
  • I probably won't get to this anytime soon - I don't know if noksagt will? - also, feel free to submit a patch.
  • Where would I need to look for the code to patch? Is it `BibTeX.js` in the translators repository? Or somewhere else?
  • yes, that's it.
  • edited September 27, 2012
    all the conversions take place in the writeField function starting in l. 1897
    https://github.com/zotero/translators/blob/master/BibTeX.js#L1897
    and the functions called from there.
  • I made a pull request at https://github.com/zotero/translators/pull/477
Sign In or Register to comment.