Bug 153203 - FILESAVE DOCX Chart objects accessible description not saved
Summary: FILESAVE DOCX Chart objects accessible description not saved
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Michael Stahl (allotropia)
URL:
Whiteboard: target:7.6.0 target:7.5.1
Keywords: accessibility, filter:docx
Depends on:
Blocks: OOXML-Chart
  Show dependency treegraph
 
Reported: 2023-01-25 13:53 UTC by Gabor Kelemen (allotropia)
Modified: 2023-02-08 14:57 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Example file from Writer with chart (19.15 KB, application/vnd.oasis.opendocument.text)
2023-01-25 13:53 UTC, Gabor Kelemen (allotropia)
Details
The example file saved as DOCX (5.94 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2023-01-25 13:54 UTC, Gabor Kelemen (allotropia)
Details
The original file in Writer and the exported one in Word 2016 (120.93 KB, image/png)
2023-01-25 13:56 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (allotropia) 2023-01-25 13:53:45 UTC
Created attachment 184905 [details]
Example file from Writer with chart

Attached example file has a chart object with its accessible description filled.
When saved to DOCX and opened in Word 2016 the fields are empty.

1. Open attached file
2. Right click the chart, select Properties. 
3. Go to the Options tab
4. Notice the Text Alternative and Description fields are filled
5. Save as docx
6. Open it in Word
7. Right click the chart, select Format Chart Area
8. Under Chart Options press the Layout & Properties button

-> The Title and Description fields are empty.

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 0bb90afaeb193181d7b98b79e962549d8a1dd85a
CPU threads: 14; OS: Windows 10.0 Build 19045; UI render: default; VCL: win
Locale: de-DE (hu_HU); UI: en-US
Calc: threaded
Comment 1 Gabor Kelemen (allotropia) 2023-01-25 13:54:33 UTC
Created attachment 184906 [details]
The example file saved as DOCX
Comment 2 Gabor Kelemen (allotropia) 2023-01-25 13:56:12 UTC
Created attachment 184907 [details]
The original file in Writer and the exported one in Word 2016

Note: in Word 2019 and newer (O365?) there is only one field visible of these two.
Comment 3 Stéphane Guillou (stragu) 2023-01-25 20:33:55 UTC
Reproduced with:

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: e125e6623fa1c0f39d927bb37547ca6d1e299cb1
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Saving as DOCX and reloading results in both the Text Alternative and the Description lost.

With an image, only the Alternative Text is lost: see bug 148952.

In MS Word, there is only an alt text box. It is supposed to get the Description text, which works for images (that still have it) but not for charts (that lost it).

Tested with:

Microsoft® Word for Microsoft 365 MSO (Version 2212 Build 16.0.15928.20196) 64-bit
Comment 4 Commit Notification 2023-02-02 17:42:51 UTC
Michael Stahl committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/fa1f2b7f5c65d66eaa5887acc9da5eb526570b18

tdf#130782 tdf#153203 writerfilter,sw: DOCX import/export of a11y

It will be available in 7.6.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 5 Michael Stahl (allotropia) 2023-02-02 17:54:30 UTC
fixed on master
Comment 6 Commit Notification 2023-02-08 14:57:11 UTC
Michael Stahl committed a patch related to this issue.
It has been pushed to "libreoffice-7-5":

https://git.libreoffice.org/core/commit/35d5a64fc3b507e83b037dd35f856069a742a254

tdf#130782 tdf#153203 writerfilter,sw: DOCX import/export of a11y

It will be available in 7.5.1.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.