Hi,
I am running a search on a set of files to make sure that a certain rule is respected. Basically, if in the Spanish source the words “presidente” or “vice presidente” are followed by “(e)”, the target must use the translation “acting president” or “acting vice-president”. The problem is that there may be several words between “presidente” and (e), for instance in a case like “Manuel Miranda, presidente de [long name of a Company department] (e)”
My first thought: modify the Word Distance search template for the source; specify -“acting” as the target, and use a Power Search.
Since I am here, you can tell that I haven’t been successful. My results:
-
“presidente>.{,60}<(e)>” seems to find all occurrences of “…presidente… …(e)” as expected if used with an empty target field
-
“-“acting”” used with an empty source field and run as a power search only finds one string - without a constraint in the source, it should pretty much find every single string in the project
-
The two used together find nothing
The files that I am searching on are TMXs. I created a dummy one that only contains a hit for the logic I am applying:
<?xml version="1.0" encoding="utf-8"?>
<tmx version = "1.4">
<header creationtool="Linguist TMX tool" creationtoolversion="1.0" segtype="paragraph" adminlang ="EN-US">
</header>
<body>
<tu>
<tuv xml:lang="es" creationdate="20190722T193451" creationid="!MT">
<seg>El presidente Joan Maria Vasquez Martinez (e)</seg>
</tuv>
<tuv xml:lang="en">
<seg>President Joan Maria Vasquez Martinez</seg>
</tuv>
</tu>
</body>
</tmx>
Any help is welcome!