Hi all,
In the current snapshot, Denis added the translatePowerpointGraphicMetadata option to control extraction of image metadata in PPTX. There was already a corresponding option for DOCX called bPreferenceTranslateWordExcludeGraphicMetaData, although the semantics for that are inverted (true means that it excludes the metadata).
We have recently had the need to distinguish between "name" and "description" metadata on these images in some of our translations -- similar to a title vs alt text on an HTML img tag, name and description can be set independently and are used in slightly different cases.
So, Denis and I are planning the following:
- Remove bPreferenceTranslateWordExcludeGraphicMetaData option
- Remove translatePowerpointGraphicMetadata option
- Add translateWordGraphicName option (true by default) <--- This preserves the current default behavior
- Add translateWordGraphicDescription option (true by default) <--- This preserves the current default behavior
- Add translatePowerpointGraphicName option (true by default) <--- This inverts the current default behavior
- Add translatePowerpointGraphicDescription option (true by default) <-- This inverts the current default behavior
Basically, we are removing the existing options and replacing each with two new options. The default behavior for the word option is preserved (although the semantics of the option is inverted -- we will now extract if this option is true).
The default behavior for the powerpoint option will change to extract metadata by default, aligning it with the legacy behavior for word. This is something we don't normally do, but since this option was added during this same snapshot window, I think it's ok here.
The parameters implementation will be responsible for picking up the legacy bPreferenceTranslateWordExcludeGraphicMetaData value and propagating the desired behavior to the new settings as needed.
Please let me know if you see issues with this plan.
ct