How to filter source=target in LEAF
Thread poster: Samuel Murray

Samuel Murray  Identity Verified
Netherlands
Local time: 11:20
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


Direct link Reply with quote
 

Samuel Murray  Identity Verified
Netherlands
Local time: 11:20
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]


Direct link Reply with quote
 


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

Advanced search







Wordfast Pro
Translation Memory Software for Any Platform

Exclusive discount for ProZ.com users! Save over 13% when purchasing Wordfast Pro through ProZ.com. Wordfast is the world's #1 provider of platform-independent Translation Memory software. Consistently ranked the most user-friendly and highest value

More info »
BaccS – Business Accounting Software
Modern desktop project management for freelance translators

BaccS makes it easy for translators to manage their projects, schedule tasks, create invoices, and view highly customizable reports. User-friendly, ProZ.com integration, community-driven development – a few reasons BaccS is trusted by translators!

More info »



Forums
  • All of ProZ.com
  • Term search
  • Jobs
  • Forums
  • Multiple search