Greetings all, I’m new to scripting and GREP and need a little guidance.
I have a batch of old documents with copy typed (sloppily) in Title Case. (Note that this isn’t the format setting accessible through the Type menu, it’s actual caps typed throughout the text.) We’d like this copy in normal sentence case. I found a script that handled that task nicely (via https://forums.adobe.com/thread/899486?start=0&tstart=0 ). It gave me a new problem though: All the things that are supposed to be capped, like names, now aren’t. I expected this, but need some advice on the best way to handle it.
We deal with retail real estate and I have a custom dictionary that includes both industry terms and lots of retailers with their caps properly set (PetSmart, for example.) There’s also acronyms and such that need proper caps.
Running a case-sensitive spell check has proven far too time consuming. I found that GREP styles work well, but there’s starting to be an awful lot of them. FindChangeByList.jsx looked promising, but I now see that every instance needs to be set up individually. This is working well for things like {findWhat:”(NYSE|nyse)\: [\u]+”} {appliedCharacterStyle:”all_caps”} but FindChangeByList looks like I’ll need to set up every retail name individually. There’s so many of them!
So, first question, when is it better to use GREP styles vs a script for jobs like this? Second, I’d like to tell indesign: “Scan all text against this list, and if you find any caps that don’t match, fix it.” Is that possible, and if so, can someone point me to a resource?
I’m already learning scripting and GREP both, but it’s a little harder to know what to do next, when I’m not sure which hammer to swing. All help appreciated, thanks in advance!