Tags instead of segmentation in XML file
Thread poster: ChielV

ChielV  Identity Verified
Croatia
Local time: 20:01
English to Dutch
Nov 28, 2015

Dear all,

Currently I'm trying to translate an XML file. Unfortunately I'm having an issue with Trados Studio 2014's segmentation rules. The file has a lot of single words to be translated, demarcated by and , each of which I'd like to appear in its own segment. Instead all of these are together in one segment, with and represented by tags, until a punctuation mark occurs.

I've tried to adjust the segmentation rules of the Translation Memory I use for this project, but it doesn't seem to have any effect, even though after each segmentation rule change I open the file once more as a new project.

Has anyone run into a similar issue and found a solution?

Thank you in advance,
Chiel van der Voort


 

Nora Diaz  Identity Verified
Mexico
Local time: 12:01
Member (2002)
English to Spanish
+ ...
Three things to check Nov 28, 2015

When it comes to applying newly created segmentation rules, one of these three things could be the problem:

1. The segmentation rules themselves. Something may be wrong with them and therefore they may not have the desired effect.
2. The TM that the segmentation rules were added to must be active and at the top of the list either in Project Settings if working with a project or in Options if using a single document workflow.
3. The file must be removed completely before being opened again for the new segmentation rules to be applied.

[Edited at 2015-11-28 17:01 GMT]

[Edited at 2015-11-28 17:01 GMT]


 

SDL Community  Identity Verified
United Kingdom
Local time: 20:01
Member (1970)
English
Misleading post... Nov 28, 2015

... because the OP didn't use entities for the reserved characters. I redid the appropriate part here:

ChielV wrote:

The file has a lot of single words to be translated, demarcated by <item> and </item>, each of which I'd like to appear in its own segment. Instead all of these are together in one segment, with <item> and </item> represented by tags, until a punctuation mark occurs.



This problem is not controlled by segmentation rules. These are separate elements and they have been handled as inline tags. If you want them on separate lines you simply need to make sure your parser rules are set up that way. Maybe this article will help you as it makes sense to always create custom XML filetypes and don't rely on the default catchall rules:

http://multifarious.filkin.com/2014/06/01/custom-xml/

Regards

Paul
SDL Community Support


 

ChielV  Identity Verified
Croatia
Local time: 20:01
English to Dutch
TOPIC STARTER
Parser rules did the trick. Nov 29, 2015

Thank you Nora and Paul for your help!

Indeed the problem was not within the segmentation rules, but in the parser rules. Thank you, Paul, for the link to your elaborate blog post, which helped me through the process of adjusting the parser rules for this file.

Kind regards,
Chiel


 


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


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

Tags instead of segmentation in XML file

Advanced search







Across Translator Edition and Across Language Server v7
Meet our brand new version and speed up your translation processes!

Deliver high-quality translations with our fast and secure solutions. You can also integrate machine translation and other third-party systems. The Across Translator Basic Edition is free for freelancers. Start now and discover new business opportuniti

More info »
BaccS – Business Accounting Software
Modern desktop project management for freelance translators

BaccS makes it easy for translators to manage their projects, schedule tasks, create invoices, and view highly customizable reports. User-friendly, ProZ.com integration, community-driven development – a few reasons BaccS is trusted by translators!

More info »



Forums
  • All of ProZ.com
  • Term search
  • Jobs
  • Forums
  • Multiple search