Tool that can edit only the target segments in a TMX file? Thread poster: Erik Wallace
| Erik Wallace Member (2010) English to Norwegian (Bokmal) + ...
Good morning/afternoon/evening everyone, I am in need of a tool that allow you to edit only the target segments of a TMX, for instance with a replace all. As this can not be done in NotePad etc (replace all is, of course, possible - but it will replace all matches from the source segment as well) I was hoping an editor specially designed for TMX was available, giving me just the function I need. Does anyone know of such an editor/program? If so, thank you very much in ... See more Good morning/afternoon/evening everyone, I am in need of a tool that allow you to edit only the target segments of a TMX, for instance with a replace all. As this can not be done in NotePad etc (replace all is, of course, possible - but it will replace all matches from the source segment as well) I was hoping an editor specially designed for TMX was available, giving me just the function I need. Does anyone know of such an editor/program? If so, thank you very much in advance for sharing. Kindest, Erik ▲ Collapse | | | Samuel Murray Netherlands Local time: 17:27 Member (2006) English to Afrikaans + ... | Erik Wallace Member (2010) English to Norwegian (Bokmal) + ... TOPIC STARTER Thank you for the suggestion, Samuel | Aug 6, 2011 |
Virtaal does support replace all, it only edits the target segments? Looks that way so far, but haven't tested it enough yet. Erik *Unfortunately it didn't work the way I had hoped.
[Edited at 2011-08-06 20:56 GMT] | | | Selcuk Akyuz Türkiye Local time: 18:27 English to Turkish + ...
Hi Erik, Perhaps you can do it with Notepad++ using REGEX. It works at least with Find command. Selcuk --------------------- You can also use Olifant but it may change date attributes, that is why I suggested a powerful text editor with REGEX support.
[Edited at 2011-08-06 21:00 GMT] | |
|
|
Erik Wallace Member (2010) English to Norwegian (Bokmal) + ... TOPIC STARTER
Thank you for your suggestion, but I already have NotePad - and I already can perform replace all in the document. What I can not do is to replace all only in the target segments, without touching the source. Erik | | | Erik Wallace Member (2010) English to Norwegian (Bokmal) + ... TOPIC STARTER Olifant seemed to do the trick | Aug 6, 2011 |
Thanks a lot, Selcuk | | | Selcuk Akyuz Türkiye Local time: 18:27 English to Turkish + ... It depends on the xml structure | Aug 6, 2011 |
Erik Wallace wrote: Thank you for your suggestion, but I already have NotePad - and I already can perform replace all in the document. What I can not do is to replace all only in the target segments, without touching the source. Erik Each CAT tools creates a different structure, and source and target segments are marked with different identifiers. Even in that case a text editor capable of multiline find and replace operations (e.g. UltraEdit) can do it. | | | Samuel Murray Netherlands Local time: 17:27 Member (2006) English to Afrikaans + ...
|
|
Wordfast and Excel | Aug 6, 2011 |
Convert the tmx into a Wordfast .txt, copy this one from Notepad into an Excel file, do the replace sessions in the target column, save into txt and convert back into tmx. Works fine. | | |
kalap wrote: Convert the tmx into a Wordfast .txt, copy this one from Notepad into an Excel file, do the replace sessions in the target column, save into txt and convert back into tmx. Works fine. That conversion could be lossy, i.e. you'll lose some (meta)data in the process. You'll probably also need to install Wordfast to do this. That looks like it'll fail if the TMX wasn't generated by OmegaT and doesn't have the line breaks where the script expects them to be. It's better to normalize line breaks instead of making assumptions (see below). Erik Wallace wrote: Thank you for your suggestion, but I already have NotePad - and I already can perform replace all in the document. What I can not do is to replace all only in the target segments, without touching the source. Then you only need to use the right s&r command to get what you want. So: - Install Notepad++ - Remove line breaks from the TMX (say, in MS Word) - Replace <tuv xml:lang with \n<tuv xml:lang - Replace </seg> with </seg>\n - Do your replacement. E.g. replace (<tuv xml:lang="NL">.*)foo with \1bar This will replace the last occurrence of foo with bar in each NL segment. It'd be pretty easy to automate this in Perl, and support replacing multiple occurrences of the term within the same segment. Of course, using Olifant or Trados Studio is probably a better idea.
[Edited at 2011-08-07 11:06 GMT] | | | MikeTrans Germany Local time: 17:27 Italian to German + ...
Hi, with Olifant you can flag any present attribute before making changes with the Search/Replace tools. In your case you simply tick the Target Language box AND UNTICK any other. You can also use RegEx expressions. For more complicated changes, you can set a filter before and apply only from there you have then to tick the "flag" box. There are about 10 common RegEx examples provided which you can chose in a scroll-down. Finally there is a SQL filter implementati... See more Hi, with Olifant you can flag any present attribute before making changes with the Search/Replace tools. In your case you simply tick the Target Language box AND UNTICK any other. You can also use RegEx expressions. For more complicated changes, you can set a filter before and apply only from there you have then to tick the "flag" box. There are about 10 common RegEx examples provided which you can chose in a scroll-down. Finally there is a SQL filter implementation. If you use "Export" and "Default Syle", without notes etc.. (untick all 3), then all dates and all attributes will be preserved. Mike ▲ Collapse | | | To report site rules violations or get help, contact a site moderator: You can also contact site staff by submitting a support request » Tool that can edit only the target segments in a TMX file? Protemos translation business management system | Create your account in minutes, and start working! 3-month trial for agencies, and free for freelancers!
The system lets you keep client/vendor database, with contacts and rates, manage projects and assign jobs to vendors, issue invoices, track payments, store and manage project files, generate business reports on turnover profit per client/manager etc.
More info » |
| Anycount & Translation Office 3000 | Translation Office 3000
Translation Office 3000 is an advanced accounting tool for freelance translators and small agencies. TO3000 easily and seamlessly integrates with the business life of professional freelance translators.
More info » |
|
| | | | X Sign in to your ProZ.com account... | | | | | |