Use the QA Checker 3.0 > Regular Expressions settings to specify regular expressions to use in order to find particular string patterns in the document. All regular expressions in the list are applied to the translation document. Create the expression and then add them to the list.
Regular expressions are used to search text for all occurrences of a particular sequence, or pattern, of characters. They differ from standard search tools because they use special metacharacters. Metacharacters enable you to create a single regular expression that will find all occurrences of a basic pattern and also specific variations of the pattern.
This tool is for users who know how to create and use regular expressions. However, a list of example regular expressions is provided and non-expert users can simply add these.
Studio uses the .Net syntax for regular expressions. For more information on how to use regular expressions, see http://www.regular-expressions.info/reference.html.
These settings appear in multiple dialog boxes in SDL Trados Studio. Click here for more information about finding the appropriate dialog box.
Setting |
Setting Description |
||||
Search regular expressions |
Select this so you can specify regular expressions to use in order to find particular string patterns in the document. All regular expressions in the list are applied to the translation document.
Next to this check on the right-hand side is a drop-down list with three options: Error, Warning and Note. Select the severity you want to apply if this check finds errors. |
||||
Description |
Enter a description for the regular expression you have created. This is used for identification when reporting on the verified document. |
||||
RegEx source |
Enter a regular expression you have created to search the source segments. |
||||
RegEx target |
Enter a regular expression you have created to search the target segments. |
||||
Condition |
If you want to apply a restriction to the regular expression search, select one of the following conditions:
For example, look at the following two segments. The QA Checker will find p. 45 in the source segment and will use the 45 as a backreference in the target expression to construct a string which will search the target segment for S. 45. A warning will be reported for the target segment because it contains S. 46, instead of S.45. Source Segment: See
more details on p.
45 of our book.
For example, look at the following two segments. The QA Checker will find 1.2 in the source segment and will use the 1.2 as a backreference in the target expression to construct a string which will search the target segment. In this example it has found a matching target segment but is reported because there is a forbidden variant of the match from the source. 1-2 is a forbidden variant. Source Segment: This is my 1.2 testing sentence. Target Segment: Toto je moje 1-2 testovaci veta.
For information about backreferences, see http://www.regular-expressions.info/brackets.html. |
||||
Ignore case |
Select this if you want to ignore case when matching patterns in the source and target segments. |
||||
Action |
Click this to display the Action drop-down menu where you can perform the following commands:
|
Overview: Verifying Translations
Topic: Published: 27-Jun-2012