Adding a segmentation rule for an existing translation memory
- Open Trados Studio.
- Go to Translation Memory View.
- Click on File > Open > Open Translation Memory to add the translation memory you wish to change to the list of translation memories.
- Right-click on the listed translation memory and select Settings from the menu; this opens the Translation Memory Settings dialog box.
- Click on Language Resources.
- On the right-hand side highlight Segmentation Rules and press Edit.
- In the Segmentation Rules dialog box, click Add to open the Add Segmentation Rule dialog box.
- Enter for example
Hard Return
in the Description field. - Click Advanced View.
- In the field Before break replace the existing regular expression with the following:
[\w\p{P}][\r\n]+
- In the field After break replace the existing regular expression with a single dot:
.
- Click OK several times to confirm the changes until you are back in the Translation Memory View.
The segmentation rule for hard returns will now be used when using this translation memory in translation.
Adding a segmentation rule to an existing language resource template
- Open Trados Studio.
- Go to the Translation Memory View.
- Click File > Open > Language Resource Template to add the language resource template you wish to change to the list.
- Right-click on the language resource template and select Settings from the menu to open the Language Resource Template Settings dialog box.
- Select Segmentation Rules and press Edit.
- In the Segmentation Rules dialog box, click the button Add to open the Add Segmentation Rule dialog box.
- Enter for example
Hard Return
in the Description field. - Click Advanced View.
- In the field Before break replace the existing regular expression with the following:
[\w\p{P}][\r\n]+
- In the field After break replace the existing regular expression with a single dot:
.
- Click OK several times to confirm the changes until you are back in the Translation Memory View.
The segmentation rule for hard returns will be used when basing a new translation memory on the modified language resource template.
You can also download three example language resource templates that you can open in Trados Studio or use for your translation. They are available in the following languages:
- English (United Kingdom)
- English (United States)
- German (Germany)
Download the file Language Resource Templates.zip
from the attachments area of this article and extract it to a location of your choice.
NOTE: When working with XML files, you also need to select the option to "Always preserve" whitespaces, under File > Options > File Types > [Your File Type] > Whitespaces, otherwise whitespaces are normalized and the rule does not "catch".