Segmentation by underscore Thread poster: Norma Fernández Suárez
|
Hello!! I am currently translating a document that contains a lot of programming commands. I know you're not supposed to translate them, but my client is insisting on it. Therefore, I was wondering if anybody knows if it is possible to create a rule so that Trados segments these commands by underscores. E.g. I would like "DQ_EXCP_REASON" to be segmented into "DQ_", "EXCP_" and "REASON". Is this something that can be done??? Please help me! Thanks in advance! | | | Nora Diaz Mexico Local time: 14:38 Member (2002) English to Spanish + ... Custom segmentation | Oct 4, 2017 |
Hi Norma, Yes, this is possible. In your TM settings, go to Language Resources - Segmentation Rules - Add. Enter a description for the new rule, then click Advanced View. In the Before break box, enter a dot followed by an underscore. In the After break box enter a dot. Close the segmentation rules dialog box and make sure that the TM that contains your new rule is at the top of the list in your Project Settings. Add your file to the project and prepare it, and that's it! ... See more Hi Norma, Yes, this is possible. In your TM settings, go to Language Resources - Segmentation Rules - Add. Enter a description for the new rule, then click Advanced View. In the Before break box, enter a dot followed by an underscore. In the After break box enter a dot. Close the segmentation rules dialog box and make sure that the TM that contains your new rule is at the top of the list in your Project Settings. Add your file to the project and prepare it, and that's it! Here's what the rule should look like: And here's what your file will look like: ▲ Collapse | | | Worked like a charm! | Oct 5, 2017 |
Thank you so very much for your prompt response and your invaluable assistance!! You just saved me hours of work. You're a complete lifesaver! | | | CafeTran Training (X) Netherlands Local time: 23:38 Isolating the underscores | Oct 5, 2017 |
Very interesting! What would be the regex to isolate the underscores in separate segments? | |
|
|
Nora Diaz Mexico Local time: 14:38 Member (2002) English to Spanish + ... Isolating the underscores: 2 rules | Oct 5, 2017 |
To isolate the underscores, you would need two separate rules. Rule 1: Before the break, an underscore: _ After the break, a dot: . Rule 2: Before the break, a dot: . After the break, an underscore: _ This would give the following result: | | | CafeTran Training (X) Netherlands Local time: 23:38
Nora Diaz wrote: To isolate the underscores, you would need two separate rules. Thank you, Nora! | | | Nora Diaz Mexico Local time: 14:38 Member (2002) English to Spanish + ... | To report site rules violations or get help, contact a site moderator: You can also contact site staff by submitting a support request » Segmentation by underscore 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 » |
| Trados Studio 2022 Freelance | The leading translation software used by over 270,000 translators.
Designed with your feedback in mind, Trados Studio 2022 delivers an unrivalled, powerful desktop
and cloud solution, empowering you to work in the most efficient and cost-effective way.
More info » |
|
| | | | X Sign in to your ProZ.com account... | | | | | |