Replace empty target segments with a space?

We really like the new filtering option introduced in 2021 (and also in the Community advanced display filter for 2019). But there is one thing that we haven’t discovered how to do and that we often need to do: Filter after empty segments. Is there any way to do that? And ideally also insert a specific content (e.g, a space) into all segments that correspond to your filtering.

Parents
  • Typically empty segments would be "Not Translated":

    Trados Studio interface showing two segments with 'Not Translated' status and a search bar with regex '$' entered.

    So easily filtered.  But sometimes they may be empty and not have the status "Not Translated" in which case it now becomes trickier.  So here you could search for a regex like this in the target:

    ^$

    Trados Studio interface with a 'Replace' dialog box open, showing an empty 'Search for' field and 'Replace with' field containing a space.

    So also not too tricky.

    And ideally also insert a specific content (e.g, a space) into all segments that correspond to your filtering.

    That should be simple... or so I thought.  But it's actually not simple because you can't replace the results of a search that finds nothing, with something.

    So I have a question here... why is this important?

    Tagging two people I'm pretty sure mentioned this in the past...

    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


    Generated Image Alt-Text
    [edited by: Trados AI at 3:46 AM (GMT 0) on 5 Mar 2024]
  • In first place it would be interesting to know, why the segments are empty... For all file types I know the only "empty" content are tags. But I have never seen a segment with zero content having been made available by any file type.

  • In reality every filetype is capable of opening up in Studio without any target content.  Of course you can populate everything with TM matches, MT or even a copy of the source.  But in this case I am just trying to answer the question in my mind which is if you have a project containing empty segments, then what's the usecase for adding a space?

    I think populating them all is easy, but then how would you know which ones needed to have the space instead of text (assuming this is what's important here).  I guess where the source equalled the target it might be the right ones, but I'd like to understand why this whole thing is needed in the first place.  I think it's probably related to what said in the other thread:

    https://community.sdl.com/product-groups/translationproductivity/f/elevate/38228/reporting-spaces-in-draft-translation/125220

    But I'd like to make sure.

    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

  • In reality every filetype is capable of opening up in Studio without any target content.

    In such cases I always assume something is wrong with the file type. In fact I have never seen an empty segment on source side. I have seen file with no content = no segments. But if there are segments, there is always some content on the source side. The question is, why to put a space on target side instead of proper translation? The answer by Alison you mention in your post may indeed be here the answer, because we are seeing this on daily basis. Also in case someone is translating a PDF directly in Studio or using a crappy conversion there may be a lot of segments which are either badly segmented or do not need translation (dirt on paper interpreted as letters). in such case, however, I would simply at least lock such segments. Then the QA checker would ignore these. But changing to "sign-off rejected" and then locking is really the best way. You can ignore such segments, have them reported as separate category, you see the number of words in such segments in editor and such segments will not be imported in any case in your TM. On top of this such segments will never be changed in any Studio process—translation, revision or sign-off.

  • In fact I have never seen an empty segment on source side.

    Me neither... except when they come from WorldServer where I have seen this before.  But this is not what this question is about.

    in such case, however, I would simply at least lock such segments. Then the QA checker would ignore these.

    Indeed.  But as I hoped you'd understand, I'm not looking for workarounds, I think I could figure them out.  I'm interested in why they are even needed so we can see what the importance is for changing the behaviour in Trados Studio so a workaround isn't needed in the first place.

    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

  • But as I hoped you'd understand, I'm not looking for workarounds, I think I could figure them out.

    Sorry, Paul, please forgive. In my world I have to know as many workarounds as possible to cope what customers demand in terms of time and quality. So I do not expect the tool to be able to cope with any possible problem that may arise from the crap we get for translation. To some extent it is possible to foresee what may be wrong, as for example the possibility of merging segments over paragraph boundaries, but there are limits. And for such limits or borderline situations I need workarounds.

  • So you don't think there a usecase for being able to search replace nothing, with something?  I don't want a workaround, just an answer to this question.

    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

  • You're right Paul, from my perspective the usecase would be more or less the same as in the other thread. 

    For whoever asked the question in this thread, there obviously is a usecase for being able to search replace nothing, with something. Would it be possible to program the Find and Replace tool to recognise ^$ or is that too difficult? I'm presuming that these questions were asked remotely and that you don't know specifically who asked them in order to find out what their particular usecase is.

    I have never received a job that had lots of segments with no translation that needed to be filled with a space. I'm trying to imagine when that would be a usecase but can think of nothing, apart from a poor quality PDF as described by Jerzy but in that usecase when translating, I would tidy up the source .docx file before translating in a new project. If, as has happened, I received a translation to proofread that had been translated with all the rubbish still in the file, ideally I would still use a new .docx file and pretranslate it using the translated content, before then proofreading it. If for some reason I couldn't I would be looking at each individual segment anyway and, when populating the first instance of a segment that needs just a space to prevent the source from flowing into the target document, a space is successfully autopropagated to all the repetitions so that would work fine for me.

    Therefore, I don't see a usecase for being able to search replace nothing with something that would be pertinent to my usual workflow.

    Thanks,

    Ali Smiley

Reply
  • You're right Paul, from my perspective the usecase would be more or less the same as in the other thread. 

    For whoever asked the question in this thread, there obviously is a usecase for being able to search replace nothing, with something. Would it be possible to program the Find and Replace tool to recognise ^$ or is that too difficult? I'm presuming that these questions were asked remotely and that you don't know specifically who asked them in order to find out what their particular usecase is.

    I have never received a job that had lots of segments with no translation that needed to be filled with a space. I'm trying to imagine when that would be a usecase but can think of nothing, apart from a poor quality PDF as described by Jerzy but in that usecase when translating, I would tidy up the source .docx file before translating in a new project. If, as has happened, I received a translation to proofread that had been translated with all the rubbish still in the file, ideally I would still use a new .docx file and pretranslate it using the translated content, before then proofreading it. If for some reason I couldn't I would be looking at each individual segment anyway and, when populating the first instance of a segment that needs just a space to prevent the source from flowing into the target document, a space is successfully autopropagated to all the repetitions so that would work fine for me.

    Therefore, I don't see a usecase for being able to search replace nothing with something that would be pertinent to my usual workflow.

    Thanks,

    Ali Smiley

Children
No Data