This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Failed to save target content because "illustration was moved between paragraphs"

Hello! 

I've been working on a PDF document with lots of images and when I try to save the target content, I am unable to. The screen that appears says the following: Failed to save target content: The illustration <shape name="138352"> was moved between paragraphs.

I have moved said shape to the beginning of the paragraph in the target segment, but I am unable to move it in the source segment. Do you know how I can fix this?

Thank you in advance for your time!

Sincerely, 

Elizabeth 




[locked by: Paul at 11:49 AM (GMT 1) on 20 Aug 2020]
Parents
  • Regardless the source, such error is caused by merging segments across paragraph breaks. One of the paragraphs has contained an image before merging. After the merging the image/illustration is moved to another paragraph. Usually you could see that due to new tags appearing in such merged paragraph.

    When merging segments across paragraph breaks you always should try to generate a target file immediately after merging to make sure this works. And you should also try to open such target file in Word immediately - because even if target will be created it is also possible, that Word will not open it anymore.

Reply
  • Regardless the source, such error is caused by merging segments across paragraph breaks. One of the paragraphs has contained an image before merging. After the merging the image/illustration is moved to another paragraph. Usually you could see that due to new tags appearing in such merged paragraph.

    When merging segments across paragraph breaks you always should try to generate a target file immediately after merging to make sure this works. And you should also try to open such target file in Word immediately - because even if target will be created it is also possible, that Word will not open it anymore.

Children
  • Hi Jerzy, 

    Yes! You are right. I've been merging many segments in this document and this was definitely the source of the problem. I will take your advice for future PDF files, and I will try immediately generating the target file after merging segments to see if it works.

    In this particular case, however, I left the two problematic segments unmerged because I am in a bit of a time crunch and I didn't have time to experiment ;-) 

    Nevertheless, I appreciate your feedback and advice greatly, Jerzy. Take care and have a wonderful day!

    Sincerely, 

    Elizabeth 

  • Hi Jerzy – thanks for the correct diagnosis, found your comment useful when searching for this. Just to check – is there no way, as far as you know, of undoing the incriminating merge? For example by dividing the segments again?

  • Undo does not work then—because Studio was heavily crashing after such operations, SDL decided to limit Undo and make it unavailable after segments have been merged over paragraph breaks. So you cannot undo the action.

    Splitting segments does not restore the original file structure. When merging over paragraphs, two different XML nodes are brought together, so the resulting xml has a different structure. When splitting, the remaining node is split into two—resulting in even more changes in the xml. This is not an exact description, but a very simplified one. Nonetheless, splitting will not help.

  • Ah, you are right, I remember the crashing, and of course I’ve tried undoing now, in vain. I was hoping you might have a trick up your sleeve. A bit of a bummer that you don’t, as I am half way through a 5000-segment book.

    I am torn between cursing Trados for all these little faults that add hours of work, and pondering in awe bout XML-node-level magic they must figure out.

    Thanks for going out of your way to reply, Jerzy.

  • Well, there is a way out - as always. "Simply" start anew, possibly asking someone to pretranslate your file using perfect match or pretranslate from TM. Then, when merging segments, use this method: save file, merge segments, save target - when that is ok, continue. If not, close file WITHOUT saving, reopen, then use "Edit source" to bring the content of problematic paragraphs into the first one, translate this. In segments where wrong segmented text were add a space, change segment status to "Signo-off rejected" and lock.
    Even if that reads complicated, it is not - it goes faster than you think. And this way you have a guarantee, that it will work.
    The difference between edit source and merge is, that no segments are left empty.

  • Hey thanks! I am aware of most of these techniques, although I forgot about editing source. Thankfully this has not happened to me for a while. But this time I used another trick, and did a little regular expression find-and-replace of the source file in Word (search for [a-z] just after a paragraph mark), thereby getting rid of the need for merging.

    I guess it’s the fact that I must take off my wordsmith hat and put on my “geeky programmer guy” hat that throws me off.

    I am noting your tips, thank you.

  • Glad you've find your way around this reef.

    In fact, a nowadays translator has to be not only a wordsmith, but—provided he/she is already one—needs to add a lot of extra skills on top of this. "Geeky programmer" guy is one of such Slight smile

  • This happened to me right now. Super practical trados. Best in all aspects of existence. Imagine if it gave the error in the beginning saying "you cannot merge these segments or else I will mess your progress, watch it..." Imagine that world... 

  • Imagine this is already there. Studio will not allow you to merge segments over paragraph breaks per default exactly because things like this may happen. If you still allow this, it is then your responsibility. So do not blame the software.

  • and I tried to add the file to the project again under a different name and now none of the files in my project are opening in trados. So, the regular trados shortcut: create the entire thing again...

  • I am not moaning, be careful with your language...

  • There is nothing intuitively indicating that I should do this. So, please be respectful a bit or dont write to my questions. 

  • I am quite respectful. And the fact you have to switch to the target language is known since adding files to a project is possible. It is not my fault, that you do not know the basic, but still post things like "So, the regular trados shortcut: create the entire thing again"–this is what I call moaning.