Useful Tips for Regex with SDL Trados (QA Checker)
Language-Specific
Regex for SDL Trados QA Checker/Find&Replace
1. Replace
the date format in Chinese content.
In
Chinese, we tend to prefer 年(year)月(month)日(date) to show date. So
for certain dates, we would like to write 2020/10/09 as 2020年10月9日. The first one is
to identify these unchanged dates in target content and replace them.
Regular Expression:(\d\d\d\d|\d\d)\/(\d\d|\d)\/(\d\d|\d)
Replace:$1年$2月$3日
2. From
English to Chinese, sometimes, numbers are expressed as k/m/b. However, that’s
not the case in Chinese. We tend to use 万(10k)百万(m)千万(10m)亿(100m)
The
following expressions will send a warning while detected m/k/b numbers in
Chinese for a doublecheck.
Regular Expression: (\d{1,}[k|K])|(\d{1,}[m|M]|\d{1,}[b|B])
3. This
Regex is to identify the English punctuation marks in Chinese content, and
sends a warning when verifying translation.
Regular Expression: [.,?!:“”?]
4. Aovid repetition punctuations
Regular Expression: (?!?!)([。?!?!,]|\\.\\.\\.|……)+
Replace: $1
After:
5. This Regex is to
check the use of the Chinese word of “的”, “得” and “地” which is used
differently based on the word combination.
a) For Regex101 please use
\x{7684}|\x{5730}|\x{5f97}
b) For Trados Regex please use
\u7684|\u5730|\u5f97
留言
張貼留言