Using Regular Expression Delimited Text Filter in SDL Trados Studio -- PART 2 (How to setup inline tags)

The following two screenshots give you an idea about how to set up inline tags in the regular expression delimited text filter in SDL Trados Studio 2011/2014.

The following picture shows an example to process the <span> tag as an inline tag such as:

<span class=\"meta=naw\">TEXT</span>

In the <span> tag, the elements such as "class" will not be translated, but the text between <span> and </span> needs to be translated.

Process the  tag as an inline tag in SDL Trados Studio
Process the tag as an inline tag in SDL Trados Studio

In the "Rule" section, regular expressions are used to define the opening tag and the closing tag. Please refer to this web-site for regular expressions.

And the following shows how to process "&ldquo;" as an inline tag as a sample.

Process “ as an inline tag as a sample
Process “ as an inline tag as a sample

More efficient patterns for inline tags

It's not efficient to add one by one. You can use the following pattern to add all tags in the source file as inline tags in SDL Trados:

<[^>].*?>  (For example: <br>, <b>, <span ...>, <div ...> ... )

&[^;].*?;  (For example: &rarr;, &darr;, &ldquo;...)

Inline tags

The above examples simply show you how to process tags as inline tags to translate in SDL Trados Studio. You might need to use regular expressions to define opening tag and closing tag as in the first example. However, I think you might be able to process any tags using simple regular expressions.

Here are some regular expressions editors:

1) Visual REGEXP

It's a freeware provided as a standalone version.

2) Regex Coach

The Regex Coach is free for private or non-commercial use. There are some restrictions to use this too, but I think those restrictions will not be problematic: You should use Windows 2000 or Windows XP with all updates and service packs installed. You also must have the Microsoft runtime library msvcr80.dll installed.

3. RegExr

It's a web-based regular expression builder. Please refer to this page for more information on this utility.

4. RegexBuddy

It's a paid regular expression creator. I normally use RegexBuddy. It's an easy-to-use and powerful application.

Leave a Comment