Bug 45317 - ACCESSIBILITY: Images lose title (text alternative) when importing DOCX [accessibility]
Summary: ACCESSIBILITY: Images lose title (text alternative) when importing DOCX [acce...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version: 3.5.0 RC1
Hardware: Other Windows (All)
: medium normal
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 60251
  Show dependency treegraph
 
Reported: 2012-01-27 08:34 UTC by Christophe Strobbe
Modified: 2014-12-30 02:26 UTC (History)
4 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Christophe Strobbe 2012-01-27 08:34:55 UTC
When importing a DOCX file with images that have text alternatives, the title is thrown away; if an image had a description, this description is mapped to the title.
Steps to reproduce the issue:
1. Create a new Word document in Microsoft Office 2010.
2. Add three images and give each one or two text alternatives, in the following way (right-click on each image, select Format Picture from the context menu, then go to Alt Text):
2.A: Give the first image only a title;
2.B. Give the second image only a description;
2.C. Give the third image both a title and a description.
3. Save the file as DOCX.
4. Open the file in Writer and observe the following (right-click on each image, then select Description from the context menu):
4.A. The image that had only a title now has no text alternative;
4.B. The image that had only a description now has a title containing the original description;
4.C. The image that had both a title and a description now has only a title containing the original description; the description field is now empty.

Desired behaviour:
DOCX title (attribute wp:docPr/@title in document.xml) maps to ODF title (element svg:title in content.xml);
DOCX description (attribute wp:docPr/@descr in document.xml) maps to ODF description (element svg:desc in content.xml).
Comment 1 sasha.libreoffice 2012-03-15 08:11:24 UTC
Thanks for bugreport
Currently I see that in Writer:
- right click->Picture, tab "Options", field Alternative
- right click->Description, field Title
- element svg:title in content.xml
all 3 are the same thing. It is right or it is a bug?

And how to change Title and Description in msWord?

Currently "Alternative text" saved in Word into docx file I see in Writer in Field "Title" and field Alternative. It is right or wrong?
Comment 2 Christophe Strobbe 2012-03-15 08:49:13 UTC
In Writer, the "Alternative (Text Only)" field and the Title field in the Description dialog display the same content. I see no reasons to call this a bug. 

In Microsoft Word 2010, you can edit an image's title and description by going through the following steps: right-click on the image, select "Format Picture" from the context menu, then go to "Alt Text". Note that the explanation below the fields for Title and Description says: "A title can be read to a person with a disability and is used to determine whether they wish to hear the description of the content." This is the behaviour we should expect.

MS Word's Title should map to Writer's Title; MS Word's Description should map to Writer's Description. (Just in case: this has nothing to do with aping Microsoft but with how text alternatives for images are expected to work.)
Comment 3 sasha.libreoffice 2012-03-15 09:23:30 UTC
Thanks for additional explanations. At least exporting to docx format has problem:
instead of real alternative text there appears "A description...". 
IMHO it is a stub for replacing by real functionality in future
Please, add odt file created by Writer and docx file created by Word with information where and which alternative text/title/description placed. So developers can quick test and see what is wrong and how should be.
Comment 4 bfoman 2012-07-13 09:43:31 UTC
> 4.A. The image that had only a title now has no text alternative;
> 4.B. The image that had only a description now has a title containing the
> original description;
> 4.C. The image that had both a title and a description now has only a title
> containing the original description; the description field is now empty.

Confirmed with:
LO 3.5.5.3 
Build ID: own W7 debug build
Windows 7 Professional SP1 64 bit
Comment 5 Christophe Strobbe 2014-04-28 09:29:52 UTC
This issue has also been confirmed for LibreOffice 4.2.3.3 for Mac OS by Greg Kraus: http://accessibility.oit.ncsu.edu/blog/2014/04/18/the-pain-of-accessible-pdfs-from-ms-word-on-mac-test-results/.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.