# Add {} around capital letters automatically?

**URL:** <https://discourse.jabref.org/t/add-around-capital-letters-automatically/222>\
**Category:** Help\
**Created:** [September 21, 2016, 1:00pm UTC](https://discourse.jabref.org/t/add-around-capital-letters-automatically/222 "2016-09-21T13:00:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fan\_Zhang](https://avatars.discourse-cdn.com/v4/letter/f/848f3c/32.png) [@Fan\_Zhang](https://discourse.jabref.org/u/Fan_Zhang)\
**Post date:** [September 21, 2016, 1:00pm UTC](https://discourse.jabref.org/t/add-around-capital-letters-automatically/222/1 "2016-09-21T13:00:16Z")

</div>

Hi,

Day one of using JabRef. I think it’s great! I’m wondering if it’s possible to fix some of the integrity issues automatically. Notably, my library (imported from an old BibTex) is filled with “capitals are nor marked using curly brackets” when checking integrity. Since JabRef can identify the problem, I wonder maybe it can fix it? Currently I’m trying to fix everything manually…

Fan

---

<div class="post-metadata">

**Author:** ![mlep](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/mlep/32/387_2.png) [@mlep](https://discourse.jabref.org/u/mlep)\
**Post date:** [September 22, 2016, 2:11pm UTC](https://discourse.jabref.org/t/add-around-capital-letters-automatically/222/2 "2016-09-22T14:11:35Z")

</div>

Welcome Fan!  
What you want to do should be possible by using the menu `Quality --> Cleanup entries...` (by check `Run field formatter`, with the suitable items).  
However, I am afraid that, at the moment, there is no item to automatically enclose capitals in curly brackets…

---

<div class="post-metadata">

**Author:** ![joerg.lenhard](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/joerg.lenhard/32/9_2.png) [@joerg.lenhard](https://discourse.jabref.org/u/joerg.lenhard)\
**Post date:** [September 23, 2016, 7:14am UTC](https://discourse.jabref.org/t/add-around-capital-letters-automatically/222/3 "2016-09-23T07:14:02Z")

</div>

Well the “Protected Terms” field formatter adds braces around a number of predefined terms, including country names, months, and a list of electrical engineering terms. However, this perhaps does not cover everything you want to have fixed.

---

<div class="post-metadata">

**Author:** ![Siedlerchr](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/siedlerchr/32/216_2.png) [@Siedlerchr](https://discourse.jabref.org/u/Siedlerchr)\
**Post date:** [September 24, 2016, 10:14am UTC](https://discourse.jabref.org/t/add-around-capital-letters-automatically/222/4 "2016-09-24T10:14:28Z")

</div>

However, there has been some work in improving the Protected Terms formatter to easily add new protected terms via right click on the menu:  
[https://github.com/JabRef/jabref/pull/1620](https://github.com/JabRef/jabref/pull/1620)

@joerg.lenhard Do you know if it was merged into 3.6?

---

<div class="post-metadata">

**Author:** ![joerg.lenhard](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/joerg.lenhard/32/9_2.png) [@joerg.lenhard](https://discourse.jabref.org/u/joerg.lenhard)\
**Post date:** [September 24, 2016, 5:22pm UTC](https://discourse.jabref.org/t/add-around-capital-letters-automatically/222/5 "2016-09-24T17:22:29Z")

</div>

Looks merged to me 🙂 And it should be in 3.6 if I am not misreading the timestamps. I have not tried the feature myself, though.
