Word file type excluding placeholder even with the "Include" settings

Hello everyone,

I'd like to ask for your help. I have a source DOCX file with a product description. I have set the product name as a placeholder in the Word file type settings for embedded content, and made it "Include" the placeholder, as I need it to be a part of the text in all occurrences. Everything words OK when the placeholder is in the middle of a sentence, but there's one place where the sentence starts with the placeholder and despite the settings, Trados excludes it from the whole sentence. Please see the reference screenshots below.

Embedded content settings

Dialog box for 'AddEdit Embedded Content Rule' with Tag Type set to Placeholder, Tag Expression as 'Starry Mice', and Segmentation hint set to 'Include'.

Screenshot of the source DOCX file with marked problematic words

Screenshot of a DOCX file showing text with 'Starry Mice' highlighted in yellow where the placeholder is in the middle of a sentence.

Trados preview - note that the "Starry Mice" placeholder is excluded in segment 6

Trados preview showing two columns with text comparison, where 'Starry Mice' placeholder is missing in the left column in segment 6.

Any ideas what went wrong, and how to achieve that the placeholder is treated under "Include" settings?

Thank you in advance for your help!

Jan

Sample source file

 sample-text-starry-mice.docx



Generated Image Alt-Text
[edited by: RWS Community AI at 8:08 AM (GMT 0) on 9 Jan 2025]
emoji
Parents Reply
  • Dear  , how are you today?

    Thank you again for looking into this. Would you mind explaining your thoughts further, or give me some idea what to look for?

    prepare the source files beforehand

    Could you please shortly explain what preparation do you have in mind? Is it about formatting? If so, I'm afraid that's not a good option since the client insists on keeping the formatting exactly as they prepared it. Such manual preparation (and then reverting files back) is quite risky and it also means a lot of manual work to make sure everything is fine in all the translated languages.

    Styles - NoTranslate

    Could you share more about this, please? I've found some topics on help and forums, but I'm not sure what exactly you did to process the file correctly.

    Thank you in advance!

    Jan

    emoji
Children
  •  

    Could you please shortly explain what preparation do you have in mind? Is it about formatting?

    Yes.  It's about applying a style to the words/phrases you would like to be non-translatable.  You can create a style that is nothing more than a name and then use that name in Trados Studio to make it non-translatable.  Like this the formatting generally would not be affected.  For example, if the style was called "NoTranslate" as I used in the example, you would create the style and then select the word/phrase, then in the Styles pane, click on "NoTranslate". This applies the character style over the selected text without altering the underlying paragraph style.  You could of course search & replace the styles for the whole file in one go.

    Once the translation is complete and you want to remove the NoTranslate styles just open the document in Word, then in the Styles pane, find the NoTranslate style, right-click on it and select Select All Instances.  Then press Ctrl+Spacebar to clear the character style while preserving the underlying paragraph style.

    You could also do this all programmatically with a VB Macro which might be a more efficient approach.

    If none of that is useful for you then another approach might be to try and use the Cleanup Tasks plugin from the AppStore - https://appstore.rws.com/Plugin/23

    I'm not sure how effective that would be given the formatting already around most of your phrases, but it might be worth investigating if you're worried about the source documents.

    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
  • Dear  ,

    Thank you very much! We'll look into this further.

    Have a good day,

    Jan

    emoji