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)日(dateto show date. So for certain dates, we would like to write 2020/10/09 as 2020109. 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



留言

這個網誌中的熱門文章

Team CAT Translation Project

CCC Turkey Evaluation TMS Project

CAT Introduction (Lessons Learned)