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
  • As far as I can see the default settings don't do this:

    Screenshot of Trados Studio showing two segments with HTML strong tags around the word 'Nez' in a file named bold.html, with no visible errors or warnings.

    So I suggest you look at whether you have created parser rules that segment on the html filetype, or maybe created a segmentation rule on your TM.  Given the defaults don't do this with the file I created based on your image we'd need more information from you to be able to help.

    emoji


    Generated Image Alt-Text
    [edited by: Trados AI at 6:50 AM (GMT 0) on 29 Feb 2024]
  • Good morning, Paul

    Thank you for your reply. We've been checking our Trados parser rules for the html filetype and we can't find anything related to the bold ("strong") tag. Here is a screenshot of the parser rules:


    Screenshot of Trados Studio parser rules showing a list of HTML tags such as html, head, meta, title, link, script, body, div, p, h3, img, h4, dl, dt, dd, i, and br with their respective conditions and translation settings.

    We've just tried adding a "strong" rule with the same configuration as the other rules, but nothing changes on the segmentation, so we've deleted it. It was like this:

    Screenshot of the 'Add Rule' dialog in Trados Studio with the 'strong' tag selected, showing options for Translate, Tag Type, and Segmentation hint.

    We've also tried with both "Not translatable" and "Inline" interchangeably with "Translatable" and "Structure" and we haven't found the way to make it work with this configurations. 

    In our memories, we only have the 3 default ones and the ones we have created for the hyphen and the "br" tag:

    Screenshot of the Segmentation Rules window in Trados Studio displaying a list of rules including Full stop rule, Other terminating punctuation, Colon, hyphen segmentation 1, hyphen segmentation 2, BR segmentation, with an option to reset to defaults.

    How should we proceed?

    Thank you,

    Noa


    emoji


    Generated Image Alt-Text
    [edited by: Trados AI at 6:51 AM (GMT 0) on 29 Feb 2024]
  • How should we proceed?

    Provide a sample file so we actually have the same problem to contend with that you do.  Otherwise we are totally guessing and as you can see I don't have that problem with my guess!  Just provide a small sample file that behaves in the way you see now.  So only a few segments.  It's not helpful to have to try and help with huge files.

    emoji
  • Also...

    In our memories, we only have the 3 default ones and the ones we have created for the hyphen and the "br" tag:

    Are you sure you needed to do this?  We can't see what the rules were or know what effect this might be having on your file, so if you can provide an empty TM or Language Resource Template with your rules that would also be good.

    emoji
  • Hi!

    Thank you for your quick reply!

    Here I attach both an empty TM with the segmentation rules that we use and a sample file (the one I used for the examples, which show on segments 125 to 130 in my project).

    FR-ES test segmentation rules.zip
    20220520095609-Italie-NFEUILL71 (1).zip

    emoji
  • 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]
Reply
  • 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]
Children