Adobe FrameMaker 12 supports GREP Find/Change (General Regular Expression Print), but I tend to forget about it because it's not prominently featured in the Find/Change dialog box.
One of my major headaches in a FrameMaker layout job is updating hyphens to en dashes between ranges of numbers, as outlined in my article on GREP in Adobe InDesign. Without the aid of GREP, I run 10 replacements, 1- to 1-. 2- to 2-, etc. It's tedious, but if I wait until I have all the files in the book, I can do it once and be done with it.
Until today. Thanks to a series of misfortunate events which made me sit back and think, "Isn't there a better way?", the lightbulb finally illuminated. A little voice piped up and said, "Barb! Copy the string from the InDesign blog post and paste it into FrameMaker!" And with one minor change, it worked perfectly.
Here's the setup in FrameMaker:
For your copy and pasting pleasure:
Find Text: (?x)\b(\d+)-(\d+)\b
Change to Text: $1-$2
Don't forget to change from a Simple Search to Regular Expressions and, once you test the string, remember you can update the entire book. (Always test before you click Change All!)
This simple GREP query will find all digits separated with a single hyphen and change those hyphens to en dashes. Now, if we could just get Adobe to add the widgets that make figuring this out easier and the ability to save these strings for future reference!
***
Comments