PPTX: Not all master content is exposed for translation

Issue #449 resolved
Former user created an issue

Original issue 449 created by @ysavourel on 2015-03-02T22:32:20.000Z:

Reported by a user.

Extract text from the attached PPTX file, with "Translate Masters" enabled. Master content for the body slide ("Click to edit Master title style", ..., "Fifth level") is exposed correctly. However, this is not the only master content in the document. There is also a title master used by the first slide of the presentation, which contains the strings "Click to edit Master title style for slide 1" and "Click to edit Master subtitle style for slide 1. This content is not exposed for translation.

Comments (6)

  1. Former user Account Deleted

    Comment 1. originally posted by @ysavourel on 2015-03-07T06:28:33.000Z:

    So looking at this further, it turns out that the untranslated content isn't actually in the master, it's in the slide layouts. For more background, see here:
    https://support.office.com/en-ie/article/Create-and-customize-a-slide-master-0fbcae59-6eda-4abe-b35f-821b87f5d03e?ui=en-US&rs=en-IE&ad=IE

    It's not clear to me if the current behavior is correct or not. I need to follow up with the user.

  2. Chase Tingley

    I've confirmed with the user that the slideLayout content is what's desired. Another example is attached - the string "Second PAGE Master" is in the first slide layout file (ppt/slideLayouts/slideLayout1.xml).

    It may simply be enough to run these through the standard PPTX slide extraction code, however there's a question of which layouts to expose. An empty presentation with a single master still contains 11 separate slide layouts, and most of them contain text that's not used. So looking at the slideMaster rels (eg ./ppt/slideMasters/_rels/slideMaster1.xml.rels) for guidance will expose a lot of junk content for translation.

    The better option looks like parsing the rels files for the presentation slides themselves (eg, ./ppt/slides/_rels/slide1.xml.rels), as those will point to the layout in use for each actual slide. Doing that for every slide should give a list of all layouts which are actually in use, so that those can be translated and the unused ones ignored.

  3. Chase Tingley

    Fix Issue #449 - Expose PPTX master layout content

    The "Translate Slide Masters" option now exposes master layout
    content that is used by slides in the document.
    

    → <<cset 153a6cee2446>>

  4. Chase Tingley

    The implementation for this includes this content along with master content and ties it to the "Translate Slide Masters" content. The reasoning for this is that layout content is viewed and edited through the masters interface in PPT, and is frequently understood by users to be "masters" content.

  5. Log in to comment