OpenXML Filter: styled text parts of PowerPoint documents should be extracted as modifiable ones
Issue #1011
resolved
Styled text parts of PowerPoint documents should be extracted as modifiable ones if they can’t be translated for some reasons (hidden, excluded, etc.).
The corresponding code snippet of net.sf.okapi.filters.openxml.PowerpointDocument#nextPart
:
if (!isTranslatablePart(entry)) {
if (isModifiablePart(contentType)) {
return new ModifiablePart(this.generalDocument, entry, this.generalDocument.inputStreamFor(entry));
}
return new NonModifiablePart(this.generalDocument, entry);
}
As styles can be amended on merge due to the font mapping process being applied, there may appear some losses in this regard.
So, it would be better to make sure that all excluded or hidden styled text parts do not become “NonModifiable”.
Comments (3)
-
reporter -
reporter - changed milestone to 1.44.0
-
assigned issue to
-
reporter - changed status to resolved
Relate pull request #612 merged.
- Log in to comment
The proposed behaviour will be implemented for the hidden parts only, as we have to offer the ability of selective exclusion for translation and modification as well.