Let me amend my earlier comments a bit.
First of all the 'u' option is not what you want at all. The 'u' option would tell Nisus to limit matches where the found text matches the formatting of the search expression in your macro.
So the question is what does the 'U' option do.
If you don't
use the option, Nisus will have the replacement always match the local formatting. But the "local formatting" is always the formatting at the beginning of the replaced bit. If the text you are replacing had mixed formatting (e.g. partly in italics, etc), this will be wiped out.
If you do
use the 'U' option, then this mixed formatting is carried over for the matched bits (i.e., the '\1' in your case), but for the rest it will use the formatting from the macro. In your case this will be the formatting that you apply in this part of the macro:
Note that formatting applied to that expression will override formatting applied in the document. So the end result will be a combination of the formatting from those two places. This can make the 'U' option very hard to use sometimes. I try to avoid it whenever possible.
In your case you presumably really want one type of quotes replacing the other, and to keep the local formatting. So not
using 'U' is the correct choice, but only for the quotes. So the simplest is to just use:
Code: Select all
Find and Replace '«', '\“', 'EasS'
Find and Replace '»', '”', 'EasS'
So just replace opening and closing quotes separately. Using the 'S' option preserves the original selection, so you can do both replacements on the same selection, and you avoid matching anything else, so as not to disturb other formatting.