Attribute sensitive Find and Replace
Posted: 2008-07-09 08:05:04
Why doesn't this macro work? Its goal is to place a "±b±" in front of any text that carries the bold attribute and a "±/b±" after, and etc.. This lets me translate these attributes to my final product in InCopy and InDesign. If I create these expressions in the find/replace dialog, they work just fine, but that's a manual process.
In case it does not show up on your browser, I am applying the appropriate attribute to the ".+" in the Find Expression of each line.
#Mark any BoldItalic Text
Find and Replace ‘(.+)’, ‘±bi±\1±/bi±’, ‘Eau’
#Mark any Bold Text
Find and Replace ‘(.+)’, ‘±b±\1±/b±’, ‘Eau’
#Mark any Italic Text
Find and Replace ‘(.+)’, ‘±i±\1±/i±’, ‘Eau’
In case it does not show up on your browser, I am applying the appropriate attribute to the ".+" in the Find Expression of each line.
#Mark any BoldItalic Text
Find and Replace ‘(.+)’, ‘±bi±\1±/bi±’, ‘Eau’
#Mark any Bold Text
Find and Replace ‘(.+)’, ‘±b±\1±/b±’, ‘Eau’
#Mark any Italic Text
Find and Replace ‘(.+)’, ‘±i±\1±/i±’, ‘Eau’