Disable a segmentation rule

Good morning,


When translating an html file, we're facing an issue with Trados Studio since it segments the bold parts that are between the tags <strong> and </strong>. Here is an example:

HTML:

HTML code snippet showing the word 'Robe' in bold between strong tags followed by 'Or pale seduisant aux subtils reflets argentes.'
Trados Studio interface highlighting the segmentation issue where 'Nez' is in bold between strong tags followed by 'la Cuvee Speciale Rose celebre le fruit frais avec subtilite et franchise.'

Trados:

Trados Studio translation grid showing segmented text with 'Robe' on one line and 'Or pale seduisant aux subtils reflets argentes.' on another line.
Trados Studio translation grid showing segmented text with 'Nez' on one line and 'la Cuvee Speciale Rose celebre le fruit frais avec subtilite et franchise.' on another line.

This has also happened previously with bold letters in the middle of a sentence or even in words. We don't have any segmentation rule in our memory that tells Trados to segment whenever a "</strong>" appears, so we can't delete it. How can we tell Trados to not segment whenever this tag appears? 


Thank you in advance for your help!

Noa



Generated Image Alt-Text
[edited by: Trados AI at 6:50 AM (GMT 0) on 29 Feb 2024]
emoji
Parents Reply Children
  • ok - so these bits?

    Screenshot of HTML code in Trados Studio with highlighted text showing wine details such as region, color, content, alcohol percentage, blend, serving temperature, and storage time.

    ok.  I took your file and based on your instructions created a new file like this (a small file!):

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "www.w3.org/.../head><body>
    <div class="tab_content hideDesktop" id="tab2"><div class="tab_contentGen"><ul class="detailInfoWine">	<li>	<p><span class="detailWineTitle">R&eacute;gion</span></p>	<span class="detailWineTxt">Champagne</span></li>	<li>	<p><span class="detailWineTitle">Couleur</span></p>	<span class="detailWineTxt">Blanc et Ros&eacute;</span></li>	<li>	<p><span class="detailWineTitle">Contenance</span></p>	<span class="detailWineTxt">7 x 75 cl</span></li>	<li>	<p><span class="detailWineTitle">Alcool</span></p>	<span class="detailWineTxt">12% vol.</span></li>	<li>	<p><span class="detailWineTitle">Assemblage</span></p>	<span class="detailWineTxt">Champagne Brut, Cuv&eacute;e Sp&eacute;ciale, Blanc de Blancs : 100% Chardonnay / Champagne Brut, Cuv&eacute;e Sp&eacute;ciale, ros&eacute; : 30% Chardonnay, 45% Pinot noir, 25% Meunier /Champagne Brut, Mill&eacute;sim&eacute; 2015, Cuv&eacute;e Sp&eacute;ciale : 40% Chardonnay, 40% Pinot noir, 20% Meunier /Champagne Brut Grande R&eacute;serve + rafra&icirc;chisseur : 60% Pinot Noir, 30 % Meunier et 10% Chardonnay</span></li>	<li>	<p><span class="detailWineTitle">T&deg; de service</span></p>	<span class="detailWineTxt">de 7 &agrave; 8&deg; pour l'ap&eacute;ritif et de 10 &agrave; 12&deg; &agrave; table</span></li>	<li>	<p><span class="detailWineTitle">Temps de garde</span></p>	<span class="detailWineTxt">&agrave; d&eacute;guster d&egrave;s maintenant et pendant 3 ans.</span></li></ul></div></div></body></html>

    This renders as you explained like this:

    Screenshot of Trados Studio interface with a file path at the top, followed by a list of wine details in French, and a highlighted section indicating translation from French to Spanish.

    Now, I don't see any examples in here that look anything like your original problem. The strong tag isn't even in here.  I don't really know what I'm supposed to be achieving for you here.  Can you explain based on this example you provided?



    Generated Image Alt-Text
    [edited by: Trados AI at 6:51 AM (GMT 0) on 29 Feb 2024]
  • Hi!

    In my 125 to 130 segments, the text is different. Here is a screenshot: 

    Screenshot of Trados Studio showing segments 124-133 with text variations in words 'Robe', 'Nez', and 'Bouche'. No visible errors or warnings.

    In this html file, this segmentation issue affects mostly to "Robe", "Nez" and "Bouche", but also other words. These are the ones that have most repetitions.

    emoji


    Generated Image Alt-Text
    [edited by: Trados AI at 6:51 AM (GMT 0) on 29 Feb 2024]
  • ok - with the TM you provided and the full file I see this:

    Screenshot of Trados Studio showing text with HTML tags, no visible errors or warnings.

    You must have some segmentation on your parser rules.  Your TM br rule is not doing anything because it's a tag.  If I don't use a TM at all I see this:

    Identical screenshot of Trados Studio showing text with HTML tags, no visible errors or warnings.

    So, can you share your filetype settings?

    Screenshot of Trados Studio filetype settings with 'Export settings' button highlighted, no visible errors or warnings.

    Mine is greyed because they are default.  If your is not greyed then you have made some changes there and this may be having some impact.  If they are greyed then can you tell us what version of the software you are working with?

    emoji


    Generated Image Alt-Text
    [edited by: Trados AI at 6:51 AM (GMT 0) on 29 Feb 2024]
  • We are currently using in my team Trados 2021. We have a custom filetype settings file:

    Custom file type for HTML (2).zip

    These are the parser settings for this custom filetype:

    Trados Studio parser settings for a custom HTML filetype showing rules for elements like html, head, meta, title, and strong with their conditions and tag types.

    We have the default HTML 5 filetype with the default settings and on a lower place so that the "brand new" filetype settings come first. If I go to the Parser settings of HTML 5, there is a rule for "strong" with tag type "Inline". Could this be the rule that is segmenting the "strong" tags?

    Trados Studio parser settings for HTML 5 filetype displaying rules for elements such as keygen, label, map, menu, and strong with their respective conditions and tag types.

    Thank you!

    emoji


    Generated Image Alt-Text
    [edited by: Trados AI at 6:51 AM (GMT 0) on 29 Feb 2024]
  • My defaults give me this:

    Screenshot of Trados Studio showing text with HTML tags for strong and underline, with a file path at the bottom.

    Using your rules gets me this:

    Screenshot of Trados Studio displaying formatted text without visible HTML tags, and a file path at the bottom.

    So we seem to be on the same page now at least!

    To fix it I just added a rule for strong to your rules and made it inline.  Because you excluded a rule for strong it inherited the structure for html.

    Screenshot of Trados Studio preview window with formatted text, highlighting the use of strong tags, and a file path at the bottom.

    emoji


    Generated Image Alt-Text
    [edited by: Trados AI at 6:52 AM (GMT 0) on 29 Feb 2024]
  • Hi!

    I added the "strong" rule as inline and translatable and now I get the same segmentation as your last screenshot:

    Trados Studio options menu showing 'strong' rule added as inline and translatable under the Parser section for HTML file types.

    Segmentation preview in Trados Studio with 'strong' tags visible and marked as inline, indicating correct rule implementation for translation.

    This is just what we needed!

    Thank you so much for fixing the issue and for all the time and work you've invested on my question!!! 




    emoji


    Generated Image Alt-Text
    [edited by: Trados AI at 6:52 AM (GMT 0) on 29 Feb 2024]