About Segmentation Hint Setup

I have a sample file like this:

Fullscreen
1
2
3
<html>
<p>The below image shows that the p0_pblock has been adjusted so that its bottom edge is pulled higher by a half clock region to avoid the error. <span style="font-family: 'courier new', courier, monospace;">function</span> can be used again to confirm this.</p>
</html>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Ideally, it should be segmented into two:

The 1st segment being: The below image shows that the p0_pblock has been adjusted so that its bottom edge is pulled higher by a half clock region to avoid the error. 

The 2nd segment being: <span style="font-family: &#39;courier new&#39;, courier, monospace;">function</span> can be used again to confirm this.

I setup the language rules to use the period (.) as the segmentation rule. 

I setup <span> like this:

Screenshot of an 'Edit Rule' dialog box in Trados Studio with 'span' selected, showing properties and segmentation hint set to 'Include With Text'.

But then, Studio treated the whole paragraph as one segment, 

Text editor displaying HTML code with 'span' tags and text content, with the 'span' element highlighted in blue.

It's always the same even if I changed the Segmentation hint to: Include, Include with Text or May Exclude. 

But when I set the Segmentation hint to Exclude, Studio separated the paragraph into three segments instead. 

The 1st segment being: The below image shows that the p0_pblock has been adjusted so that its bottom edge is pulled higher by a half clock region to avoid the error. 

The 2nd segment being: function

The 3rd segment being: can be used again to confirm this.

Comparison view in Trados Studio showing segmentation of text into three parts due to 'Exclude' segmentation hint for 'span' tag.

Please suggest how I can get it right. By the way, I'm using Trados Studio 2024. 

Thanks



Generated Image Alt-Text
[edited by: RWS Community AI at 7:22 AM (GMT 0) on 3 Jan 2025]
emoji
  •   

    I can’t test this now as I’m away from any laptop, but I think your problem is that this is designed to be an inline tag (which you don’t want) and it forms part of the same paragraph as the preceding and succeeding content.. There are no controlling elements for the third part of your content.

    Without testing I think your best solution is most likely going to be that you split into three as you have done here, and then you manually merge the 2nd and 3rd parts.

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

    emoji