All straight quotes in the text can be changed to chevrons with one replacement.
From time to time, there is a problem: in the long text, you have to change all straight quotes ("") to chevrons, aka guillemets («»). It’s difficult to do with the help of Find and Replace feature: opening and closing straight quotation marks are the same symbol, whereas opening and closing chevrons are different symbols.
It’s difficult to determine whether a straight quote must be turned into an opening or closing chevron. Supposedly, this might be indicated with the help of spaces: the “space + straight quote” combination is to be replaced with the “space + opening chevron” option, and the “straight quote + space” structure must be converted into “closing chevron + space.” However, if you try to perform such a replacement, very soon you’ll find that this rule has so many exceptions that it is easier to change straight quotation marks to chevrons manually.
Nevertheless, there is a quick semi-automatic replacement method. It is based on the use of paired quotation marks: if the text contains one opening quote, there must also be the closing quote of this pair.
For fishing out paired straight quotation marks, we are going to use regular expressions. In Trados Studio, press the CTRL+H combination and customize the displayed Find and Replace dialog box as shown:
Enter "(.+?)" in the Find what field, put «$1» in the Replace with field, and don’t forget to select the Regular expressions check box in the lower part of the window.
Press Find Next, and Trados Studio will find the closest fragment enclosed in straight quotes. Press Replace to turn the quotes into chevrons (with the text inside remaining); after that, the next fragment will appear.
Of course, there are some exceptions. In certain cases, this request misses the mark:
When the text inside the quotes contains tags (after the replacement, the text remains, but the tags are gone).
When the text contains a mistake, and either opening or closing quote is missing.
When the fragment is big, and the opening and closing quotes of the pair are found in different segments.
When at least one quote is used as a symbol for inch.
Therefore, one can’t simply place their faith in the Replace All key. Go through all cases pressing Replace and ensuring correct replacement. This is faster than changing quotes manually anyway.