How to filter source=target in LEAF
Thread poster: Samuel Murray
Samuel Murray
Samuel Murray  Identity Verified
Netherlands
Local time: 18:50
Member (2006)
English to Afrikaans
+ ...
Jan 27, 2015

Hello everyone

I would like to create a filter in LEAF that displays only segments where the "source term" is the same as the "translation". LEAF's filter editor doesn't seem to have that functionality, but I'm hoping that one can write a query manually (as one was able to do with previous MS l10n tools). Does anyone know how to create such a filter?

Thanks
Samuel


 
Samuel Murray
Samuel Murray  Identity Verified
Netherlands
Local time: 18:50
Member (2006)
English to Afrikaans
+ ...
TOPIC STARTER
How I fixed it in the end Jan 27, 2015

Samuel Murray wrote:
I would like to create a filter in LEAF that displays only segments where the "source term" is the same as the "translation".


In the end, I copied all text from LEAF to a separate program that was able to filter source=target segments, and then I created a user filter in LEAF by editing an existing filter in Notepad, with all reported target texts in it. When I applied that filter in LEAF, LEAF showed only segments that are source=target.

<?xml version="1.0" encoding="utf-8"?>
<FilterFactory xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Filters>
<FilterClass xsi:type="StringFilter">
<Field>Translation</Field>
<Value xsi:type="xsd:string">TARGET TEXT 1</Value>
<Junction>Or</Junction>
<Expression>True</Expression>
<CaseSensitive>True</CaseSensitive>
<Operation>Equals</Operation>
</FilterClass>
<FilterClass xsi:type="StringFilter">
<Field>Translation</Field>
<Value xsi:type="xsd:string">TARGET TEXT 2</Value>
<Junction>Or</Junction>
<Expression>True</Expression>
<CaseSensitive>True</CaseSensitive>
<Operation>Equals</Operation>
</FilterClass>
<FilterClass xsi:type="StringFilter">
<Field>Translation</Field>
<Value xsi:type="xsd:string">TARGET TEXT 3</Value>
<Junction>Or</Junction>
<Expression>True</Expression>
<CaseSensitive>True</CaseSensitive>
<Operation>Equals</Operation>
</FilterClass>
(etc)
</Filters>
<Name>FILTERNAME</Name>
<Enabled>False</Enabled>
<GroupName>User filters</GroupName>
</FilterFactory>


But... there must be an easier way to do this.


[Edited at 2015-01-27 10:51 GMT]


 


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


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

How to filter source=target in LEAF







Trados Studio 2022 Freelance
The leading translation software used by over 270,000 translators.

Designed with your feedback in mind, Trados Studio 2022 delivers an unrivalled, powerful desktop and cloud solution, empowering you to work in the most efficient and cost-effective way.

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! »