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 to fix «Failed to save target content: Cannot find central directory» error in Trados Studio

About the ways to fix the issue in Trados Studio When trying to generate a translated document in Trados Studio, this error sometimes occurs: Failed to save target content: Cannot find central directory. It happens because of corrupted data in the source file used to create and store the SDLXLIFF file you translated in Trados […]
How to Quickly Replace Straight Quotation Marks with Chevrons in Trados Studio - 4

How to fix «Failed to open return package» error in Trados Studio

About another issue in Trados Studio When importing a package, Trados Studio might say that it Failed to open return package, because it contains a project that does not exist in your setup. That it’s not a Trados Studio issue, but yours: you tried to import a return package for a project Trados Studio doesn’t […]
How to Quickly Replace Straight Quotation Marks with Chevrons in Trados Studio - 5

Lorem ipsum

About the dummy or placeholder text Lorem ipsum is a meaningless Latin text, so-called dummy or placeholder text, which is used to estimate how a layout will look with text presented in a particular font. This is usually done by designers, but it is also needed for pseudo-localization. This text became widely popular due to […]
How to Quickly Replace Straight Quotation Marks with Chevrons in Trados Studio - 6

You sell not only the translation, but also your expertise

Some thoughts and reflections Modern technical translators have to be inquisitive. They don’t even have to; they must. The tools they use today will become unrecognizable in a few years. New programs and methods emerge, existing knowledge becomes outdated, and translators who are not interested in anything beyond the text are being outpaced by more […]
How to Quickly Replace Straight Quotation Marks with Chevrons in Trados Studio - 7

Two stories about ChatGPT

Interesting facts about AI In early April 2024, artificial intelligence expert Jeremy Nguyen shared a thing he noticed: for some reason, the unremarkable word delve was used unexpectedly often in the texts generated by ChatGPT. So much often that Paul Graham, co-founder of Y Combinator and noted IT evangelist, considers the presence of this word […]