On the Auto-translation rules tab, use the Replace order rules list for this (on the right).
Click an auto-translation rule on the left. On the right, exactly one rule appears. This corresponds to the auto-translation rule. For each auto-translation rule, you must write up one replace-order rule.
Together, an auto-translation rule and a replace-order rule form a very advanced "search-for" and "replace-with" pair.
A replace-order rule is about replacing variable (previously unknown) parts of the expression memoQ found:
When you auto-translate something, you don't know exactly what it will be. This is why you write up a regular expression: a single regular expression can match thousands of different character sequences. For example, \d+ matches a number, or more precisely, a sequence of digits, no matter how long.
If you need to repeat this in the replace-order rule, first put it in parentheses on the left side: (\d+). These are the variable groups. In the replace-order rule, you can refer to these by their number: to insert the first group, write $1, to insert the second, write $2, and so on.
To learn more: See the topic about regular expressions. Look for the Replacing and reordering section.
- To write the replace-order rule for the selected auto-translation rule: In the box at the bottom right, type the replace-order rule. This is not a regular expression. But it can contain placeholders for variable groups. Example: Page $1. Click Add. You can do this only once. If there is already a replace-order rule, you can't add another one.
- To change the existing replace-order rule: In the box at the bottom right, make changes to the replace-order rule. Click Change.
- To delete the existing replace-order rule: Click Delete.
You must write one replace-order rule for each auto-translation rule: You can't save changes from the Edit auto-translation rule set window after you delete a replace-order rule. You must write a new one, or you must delete the entire auto-translation rule.