Bug 49404 - FILEOPEN: Redundant style tags in Microsoft Word document
Summary: FILEOPEN: Redundant style tags in Microsoft Word document
Status: RESOLVED INVALID
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version: 3.5.3 release
Hardware: Other All
: medium normal
Assignee: Not Assigned
QA Contact: QA Administrators
URL:
Whiteboard: BSA
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-02 13:43 UTC by dr.adshah
Modified: 2013-07-08 21:22 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description dr.adshah 2012-05-02 13:43:28 UTC
Problem description:
Some Microsoft Word 97-2003 format documents make LibreOffice very sluggish, particularly when scrolling. On saving these documents to ODT, I find hundreds of redundant style tags.

Steps to reproduce:
I have some documents which have been edited by several authors using  LibreOffice and various versions of Microsoft Word (e.g. Word 97 and Word 2010). The documents open normally in Microsoft Word 97 but cause problems for LibreOffice. When I save them as .ODT and unzip them to look at the content.xml file, I find that there are redundant style tags between almost all pairs of words.
These documents are confidential so I cannot attach them, and I have been unable to reproduce this problem in a new document. These tags might have been inserted by Microsoft Word, but LibreOffice should be able to detect and remove redundant style tags. I was able to remove these tags by cutting and pasting as HTML into a new document.
I don't recall that this was a problem in LibreOffice 3.4.0, but I have uninstalled it so I cannot do a direct comparison.

Current behavior: (fragment of content.xml file with unnecessary style tags):
<text:span text:style-name="T2"></text:span>
recognise
<text:span text:style-name="T2"></text:span>
the
<text:span text:style-name="T2"></text:span>
context
<text:span text:style-name="T2"></text:span>
of
<text:span text:style-name="T2"></text:span>
diagnoses
<text:span text:style-name="T2"></text:span>
in
<text:span text:style-name="T2"></text:span>
the
<text:span text:style-name="T2"></text:span>
text.
<text:span text:style-name="T2">I</text:span>
t

Definition of style T2 in content.xml: 
<style:style style:name="T2" style:family="text">
<style:text-properties style:font-name-asian="Times New Roman"/>
</style:style>

Expected behavior: (expected no formatting in this fragment of text)
recognise the context of diagnoses in the text. It

Platform (if different from the browser): Ubuntu 12.04
              
Browser: Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.19 (KHTML, like Gecko) Ubuntu/12.04 Chromium/18.0.1025.151 Chrome/18.0.1025.151 Safari/535.19
Comment 1 Jean-Baptiste Faure 2012-05-06 07:54:16 UTC
You can try to clear direct formatting: on a copy of your document, select all the text by ctrl+A, right click and choose Clear Direct Formatting.

Does that help to reduce redundant style tags?

Best regards. JBF
Comment 2 QA Administrators 2013-05-26 22:32:14 UTC
Dear Bug Submitter,

This bug has been in NEEDINFO status with no change for at least 6 months. Please provide the requested information as soon as possible and mark the bug as UNCONFIRMED. Due to regular bug tracker maintenance, if the bug is still in NEEDINFO status with no change in 30 days the QA team will close the bug as INVALID due to lack of needed information.

For more information about our NEEDINFO policy please read the wiki located here: 
https://wiki.documentfoundation.org/QA/FDO/NEEDINFO

If you have already provided the requested information, please mark the bug as UNCONFIRMED so that the QA team knows that the bug is ready to be confirmed.


Thank you for helping us make LibreOffice even better for everyone!


Warm Regards,
QA Team
Comment 3 QA Administrators 2013-07-08 21:22:46 UTC
Dear Bug Submitter,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INVALID due to inactivity and a lack of information which is needed in order to accurately reproduce and confirm the problem. We encourage you to retest your bug against the latest release. If the issue is still present in the latest stable release, we need the following information (please ignore any that you've already provided):

a) Provide details of your system including your operating system and the latest version of LibreOffice that you have confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED and we will attempt to reproduce the issue. 
Please do not:
a) respond via email 
b) update the version field in the bug or any of the other details on the top section of FDO


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.