pptx in Trados 2022

Dear RWS community,

We have some problems with .pptx files in Trados Studio 2022. We can create a target file before translating and after having translated some segments, but often there is an error message when we try to create a target file after having translated the whole project.

In order to use the translation, we create a project specific TM and insert the xliff file, then create a new project with the .ppt (and not .pptx) file and then apply the TM, but this is quite time consuming.

Do you know why this happens and how to solve this problem?

Thanks a lot for your help!

Kind Regards

Microsoft PowerPoint error dialog box stating 'PowerPoint detected a problem with the content of filename.pptx. PowerPoint can try to repair the presentation. If you trust the source of this presentation, click Repair.' with Repair and Cancel buttons.



Generated Image Alt-Text
[edited by: RWS Community AI at 12:52 PM (GMT 0) on 17 Dec 2024]
emoji
Parents Reply
  • I thought tags just need to be there in order to create a working target file, maintaining tag order is not crucial though?

    It depends on the tags and what they do.  But generally:

    1. Each purple tag in Studio represents a pair of markers in the underlying XML: one that opens the formatting (or hyperlink in this case) and one that closes it.

    2. Those pairs must appear in a strict order:

      • Open A

      • Open B

      • text

      • Close B

      • Close A

      That way, the XML forms a tidy, tree‑like structure that PowerPoint can read.

    3. In the faulty segment the order was swapped.
      The translator placed a “close formatting” tag before the hyperlink had finished. The sequence became:

      • Open A

      • Open B

      • text

      • Close A ← wrong place

      • Close B

      This creates overlapping tags, something the XML standard forbids.

    4. PowerPoint therefore sees the slide as malformed.
      When it tries to open the file it detects the overlap, declares the slide corrupt and either (a) refuses to open the presentation or (b) removes the entire text box during its self‑repair step... and in this case the complete slide

    5. Fixing the tag order restores the file.
      Put the tags back in the correct sequence, re‑export the PPTX, and PowerPoint opens it without complaint.

    So looking at your specific file, since tag 60 is opened around tag 59 instead of inside it, the two pairs overlap rather than nest.  When Studio generates the underlying xml for the powerpoint file it converts this structure into DrawingML runs that overlap, and PowerPoint rejects the slide.  If you were to unzip the pptx and look at the underlying slide.xml you'll see lots of runs that carry the attribute 'dirty="1"'. These were produced while Studio tried to salvage the overlap but could not produce valid markup, so it flagged the runs as dirty .

    So the shorter answer is... tag order does matter and you can easily validate this by running a tag verification, or pressing F8 when the file is open in the editor!

    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
Children