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

How Machine Translation Works

A metaphor for the machine translation process Imagine this: you are sitting in a room. It is sparsely furnished, with nothing but a desk, a chair, and an enormous bookcase. The shelves are packed with books, but every book has exactly the same cover, making them impossible to tell apart. You are good at your […]
How to Quickly Replace Straight Quotation Marks with Chevrons in Trados Studio - 4

How to Fix the “Failed to Save Target Content. Cannot Find File Type Definition” Error in Trados Studio

Another Trados Studio error The Failed to save target content error may occur when you try to create a “clean” file—that is, remove the source text from the translated file and leave only the translation using the Clean Up feature. This most commonly happens when a Trados Studio package was created on one computer, but […]
How to Quickly Replace Straight Quotation Marks with Chevrons in Trados Studio - 5

The Easiest Way to Identify the Language of a Text

Tips for identifying a text’s language The easiest way to identify the language of a text is to paste it into Google Translate and click Detect language. If Google Translate is unavailable, you can try identifying the language manually by looking for distinctive letters and symbols: You can find more information here.
How to Quickly Replace Straight Quotation Marks with Chevrons in Trados Studio - 6

How to Fix the “LNG Is Missing” Error in MultiTerm

Troubleshooting a MultiTerm error If the LNG is missing message repeatedly appears when you launch SDL MultiTerm or work with terms—even though the program continues to function normally—there is a 99% chance that Trados Studio and MultiTerm are set to different interface languages on your computer. Set both programs to the same language, and the […]
How to Quickly Replace Straight Quotation Marks with Chevrons in Trados Studio - 7

How to Fix the “The Specified Project Name Is Invalid” Error in Trados Studio

Troubleshooting another Trados Studio error When creating a project in Trados Studio, you may see the following message: The specified project name is invalid. The name should not contain any invalid characters such as: \ / : * ? ” < > | If this happens even though the project name does not appear to […]