Quantcast
Channel: ProZ.com Translation Forums
Viewing all articles
Browse latest Browse all 3915

How to remove all properties from a TMX file? | @Hans

$
0
0
Forum: CAT Tools Technical Help
Topic: How to remove all properties from a TMX file?
Poster: Samuel Murray
Post title: @Hans

[quote]Hans Lenting wrote:
To compact a gigantic memory, exported as TMX from Studio, I'd like to remove all properties... [/quote]

Open it in a Unicode-aware text editor and do a regex find/replace operation.

There is a Mac [url= [url removed] ]on your desk[/url], so perhaps [url= [url removed] ]this page[/url] provides such a text editor.

The simplest way would be to search for something like changeid=".+?" and replace with nothing (the Find field's regex syntax may differ from editor to editor). Or, if you want to assume that the "lang" attribute is always at the start of the TUV tag (which is 99% true), you can search for e.g. (<tuv lang=".+?")(.+?)(>) and replace it with e.g. $1$3 (again the syntax may differ from program to program).

[Edited at 2020-09-05 09:44 GMT]

Viewing all articles
Browse latest Browse all 3915

Trending Articles