Skip to main content
Known Participant
November 13, 2015
Question

UPPERCASE to Title Case with exceptions

  • November 13, 2015
  • 2 replies
  • 657 views

Is there a GREP query or Script solution to change Uppercase to Title Case but add exceptions? That is, change MCADAMS to McAdams, not Mcadams, DIRECTOR III to Director III not Director Iii, and so on? I've spent a day looking for a way to accomplish this, can someone here can point me in the right direction?

TIA,

Geoff

This topic has been closed for replies.

2 replies

Harbs.
Legend
November 14, 2015

You can check out Style Utilities which has "Smart Title Case" which allows for special word lists.

http://in-tools.com/products/plugins/style-utilities/

Harbs

Obi-wan Kenobi
Legend
November 14, 2015

Hi,

Idea: To manage the exceptions, use Multi-Find/Change of Martinho da Glória [Just updated ID CC 2015]! 

"Green" text = corrected "Red" text

I totally love this regex based on nothing and imagined by the malicious Martinho:

Note you can truly correct the text as adding insecable spaces! …

2 ways to play the game: directly as above or using a .csv file text list (created with a simple text editor) as:

(?i)MCADAMS;McAdams

(?i)DIRECTOR\hIII;Director~SIII

GeofferyHAuthor
Known Participant
November 14, 2015

Looks like a good solution, much appreciated. I'll download a trial.