I have got an Excel file to translate, which contains HTML/XML tags (such as and ), and would like Trados to create a new segment after each one of them.
Subject:
Comment:
The contents of this post will automatically be included in the ticket generated. Please add any additional comments or explanation (optional)
Jerzy Czopik Germany Local time: 04:11 Member (2003) Polish to German + ...
Hardly possible in Exccel I'm afraid
Feb 6
But quite easy when copied to Word.
You could there format those tags with T4WinExternal or use search & replace to have real breaks there. Then replace back after translation.
At least this is the way I would go, because it is easy and clean and does not require any big knowledge in regex, creating file types in Studio and so on.
On an additional note: you cannot add any tags as segmentation rules - the behavior on tags is controlled by file types. Segmentation rules are more linguistic nature, ie dot, colon, exclamation mark and so on.
Subject:
Comment:
The contents of this post will automatically be included in the ticket generated. Please add any additional comments or explanation (optional)
SDL Support United Kingdom Local time: 03:11 English
Segmentation rules can handle this
Feb 6
Stephanie V wrote:
I have got an Excel file to translate, which contains HTML/XML tags (such as <p> and <br&g), and would like Trados to create a new segment after each one of them.
Hi Stephanie,
You can use the segmentation rules so that HTML/XML tags (such as <p> and <br>) create a new line. So for example, if you have this in Excel:
In Studio it looks like this:
So, if I add a couple of segmentation rules on the TM before opening the file I now see this:
To add the rules I right clicked on the TM in Translation memories view and selected Settings - Language Resources. Then select Segmentation rules - Edit. Finally add two rules.
One that uses <p> before the break and \s after the break. Then another that uses <br> before the break and \s afterwards.
Then open the file again and select the TM containing these segmentation rules.
If the tags you quoted here are just easy examples and actualkly the file contains complete html code then the solution from Jerzy may be better. But I have come across files with pretty much only these tags in there and this is how we handled them.
Regards
Paul
Subject:
Comment:
The contents of this post will automatically be included in the ticket generated. Please add any additional comments or explanation (optional)
To report site rules violations or get help, contact a site moderator:
PerfectIt helps deliver error-free documents. It improves consistency, ensures quality and helps to enforce style guides. It’s a powerful tool for pro users, and comes with the assurance of a 30-day money back guarantee.
A fully featured online CAT tool and TMS, with no installation required, and a simple, intuitive interface. Maximize linguistic assets by sharing in real time as you collaborate with colleagues. Make use of next generation, cloud-based translation technol