Help with filter RegEx needed
Thread poster: Iris Kleinophorst
Iris Kleinophorst
Iris Kleinophorst  Identity Verified
Germany
Local time: 14:35
Chinese to German
+ ...
Mar 8, 2018

Hi,
I am translating an English-Chinese mixed text and would like to filter all segments that include Chinese characters as well as English words (= letters of the Roman alphabet).

I have the RegEx for displaying Chinese characters: [\u4e00-\u9fa5]
How would I have to set up a filter RegEx that combines Chinese characters with Roman alphabet letters, regardless of their order or amount? Can anybody help me or give me a hint on how to do it? I have checked the reference h
... See more
Hi,
I am translating an English-Chinese mixed text and would like to filter all segments that include Chinese characters as well as English words (= letters of the Roman alphabet).

I have the RegEx for displaying Chinese characters: [\u4e00-\u9fa5]
How would I have to set up a filter RegEx that combines Chinese characters with Roman alphabet letters, regardless of their order or amount? Can anybody help me or give me a hint on how to do it? I have checked the reference handbook, but could not find a viable solution.

TIA
Iris
Collapse


 
MuMyongCy (X)
MuMyongCy (X)
South Korea
Local time: 21:35
English to Korean
post examples Mar 8, 2018

then you will have better chance to get proper answer.
the more examples, the nicer RegExp could be made (by some other smart people not me).

[Edited at 2018-03-08 15:15 GMT]


 
Hans Lenting
Hans Lenting
Netherlands
Member (2006)
German to Dutch
Double filter action? Mar 9, 2018

How about filtering on Chinese characters first and then—while keeping the result of this filter action—filtering on either letters or whole words with Roman letters?

 
Karen_E
Karen_E
United Kingdom
Local time: 13:35
Thumbs up to double filter suggestion Mar 9, 2018

I agree with Hans - I would apply one filter first, then go back to the "Create filter" option, make your adjustments, then click on "More" and tick the box to apply the new filter "To the result of the current filter". That way, it will create a double layer of filtering and show you the segments that meet both criteria.

 
Iris Kleinophorst
Iris Kleinophorst  Identity Verified
Germany
Local time: 14:35
Chinese to German
+ ...
TOPIC STARTER
DUH-Why didn't I think of the double filter? Mar 10, 2018

Hi Hans, hi Karen,

thanks, the double filter option works perfectly!

Funny enough, I've used double filters in this project before, like filtering all segments NOT containing Chinese characters and then filtering all untranslated segments within these. However, I did not think of just entering different segment content for a double filter.

Solved my problem, thanks!
Iris


 
AlSqur (X)
AlSqur (X)
Or operator Jun 1, 2018

You can also create an expression with an OR operator. Sequence of english letters [a-z]|[\u4e00-\u9fa5]

 


To report site rules violations or get help, contact a site moderator:

Moderator(s) of this forum
Maya Gorgoshidze[Call to this topic]

You can also contact site staff by submitting a support request »

Help with filter RegEx needed






Protemos translation business management system
Create your account in minutes, and start working! 3-month trial for agencies, and free for freelancers!

The system lets you keep client/vendor database, with contacts and rates, manage projects and assign jobs to vendors, issue invoices, track payments, store and manage project files, generate business reports on turnover profit per client/manager etc.

More info »
CafeTran Espresso
You've never met a CAT tool this clever!

Translate faster & easier, using a sophisticated CAT tool built by a translator / developer. Accept jobs from clients who use Trados, MemoQ, Wordfast & major CAT tools. Download and start using CafeTran Espresso -- for free

Buy now! »