our blog

How to Quickly Replace Straight Quotation Marks with Chevrons in Trados Studio

How to Quickly Replace Straight Quotation Marks with Chevrons in Trados Studio - 1

All straight quotes in the text can be changed to chevrons with one command

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 the Find and Replace feature: opening and closing straight quotation marks are the same symbols, 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.

We are going to fish out paired straight quotation marks with the regular expressions. In Trados Studio, press the Ctrl + H combination and customize the displayed Find and Replace dialog box as shown:

How to Quickly Replace Straight Quotation Marks with Chevrons in Trados Studio - 2

Enter "(.+?)" in the Find what field, put «$1» in the Replace with field, and don’t forget to select the Regular expressions checkbox 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: either the opening or closing quote is missing.
  • When the fragment is big, the opening and closing quotes of the pair are located in different segments.
  • When at least one quote is used as a symbol for an inch.

Therefore, one can’t simply place their faith in the Replace All key. Go through all the cases by pressing Replace and checking the replacement. This is faster than changing quotes manually anyway.

Recommended content

How to Quickly Replace Straight Quotation Marks with Chevrons in Trados Studio - 3

A Few Abbreviations Every Technical Translator Should Know

Useful information for technical translators Here is are a few abbreviations you will encounter regularly if you work in technical translation:   See more interesting posts in our Telegram channel.
How to Quickly Replace Straight Quotation Marks with Chevrons in Trados Studio - 4

How to Select Text from the Cursor to a Specific Character in Word

Useful tips about working in Word In addition to the well-known Alt + mouse-click text selection trick, Word offers another lesser-known feature: Selection Extension mode. If you need to select text from the cursor to a specific character—especially if that character is difficult to locate or is currently outside the visible screen area—press F8, then […]
How to Quickly Replace Straight Quotation Marks with Chevrons in Trados Studio - 5

How to fix the «Failed to load project from …» error in Trados Studio

Про ще одну помилку Trados Studio Розбираємо помилку Trados Studio: Failed to load project from … There is an error in XML document (X, Y). Unexpected end of file has occurred. Unexpected end of file while parsing Name has occurred. Помилка викликана порушенням структури SDLPROJ-файлу. Таке трапляється, наприклад, через несподіване завершення роботи Trados Studio в […]
How to Quickly Replace Straight Quotation Marks with Chevrons in Trados Studio - 6

How to Prevent Data Loss If Your CAT Tool Crashes

Useful tips about working with CATs If your CAT tool crashes and there is a risk of losing the completed portion of your translation, the first priority is to preserve the work you have already done. Only after securing the data should you attempt to fix the issue. Otherwise, you may have to redo the […]
How to Quickly Replace Straight Quotation Marks with Chevrons in Trados Studio - 7

Why Word May Refuse to Check Spelling

Useful tips about working in Word Why Word may refuse to check spelling: Go to File → Options → Proofing, then select the Check spelling as you type checkbox and clear the Hide spelling errors in this document only checkbox (see image). Select the text you want to check, then verify that the correct language […]