AppleScript to compact TMX files with TextWrangler.
Thread poster: CafeTran Training (X)
CafeTran Training (X)
CafeTran Training (X)
Netherlands
Local time: 13:36
Oct 20, 2016

Here you can download an AppleScript to compact TMX files by removing identical segments that only differ in punctuation, spaces and numbers (while keeping one unique segment pair for every set of matches). Please note that punctuation is removed from the resulting TMX file. All numbers are set to 0 (normally your CAT tool will insert the correct numbers while insertion fuzzy matches). Segments pair... See more
Here you can download an AppleScript to compact TMX files by removing identical segments that only differ in punctuation, spaces and numbers (while keeping one unique segment pair for every set of matches). Please note that punctuation is removed from the resulting TMX file. All numbers are set to 0 (normally your CAT tool will insert the correct numbers while insertion fuzzy matches). Segments pair where source=target and segment pairs that don't contain any letters are removed too.

The script shows how to parse and process a TMX file and later rebuild it, using AppleScript.

Further removals/clean up actions can be added at request.

[Edited at 2016-10-20 12:44 GMT]
Collapse


 


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


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

AppleScript to compact TMX files with TextWrangler.






TM-Town
Manage your TMs and Terms ... and boost your translation business

Are you ready for something fresh in the industry? TM-Town is a unique new site for you -- the freelance translator -- to store, manage and share translation memories (TMs) and glossaries...and potentially meet new clients on the basis of your prior work.

More info »
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

Buy now! »