Bug 46461 - compatibility issue with DOC format: Writer creates additional character styles (FILESAVE problem)
Summary: compatibility issue with DOC format: Writer creates additional character styl...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version: 3.4.5 release
Hardware: All All
: medium normal
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-22 06:52 UTC by rpr
Modified: 2013-11-06 22:59 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
test files (11.56 KB, application/zip)
2012-02-22 06:52 UTC, rpr
Details

Description rpr 2012-02-22 06:52:38 UTC
Created attachment 57466 [details]
test files

In LibO Writer I've noticed a compatibility issue with DOC format (MS
Word 97/2000/XP/2003): when Writer saves to DOC format it creates
additional character styles.

Steps to reproduce (test files are attached):

(1) test1.doc was created with MS Word 2003 SP3 using the default
normal.dot template. Check the list of all styles (including the
character styles) in the document.

(2) In Writer open test1.doc. In the list of paragraph and character
styles there are some new character styles with odd names:
WW8Num10z0, WW8Num5z0, WW8Num6z0, WW8Num7z0, WW8Num8z0.
Save the document as test2.doc and exit.

(3) In Writer open test2.doc. In the list of paragraph and character
styles there is a new character style: Absatz-Standardschriftart.
Save the document as test3.doc and exit.

(4) In Writer open test3.doc. In the list of paragraph and character
styles there is a new character style: WW-Absatz-Standardschriftart.
Save the document as test4.doc and exit.

(5) In Writer open test4.doc. In the list of paragraph and character
styles there is a new character style: WW-Absatz-Standardschriftart1.
Save the document as test5.doc and exit.

(6) In Writer open test5.doc. In the list of paragraph and character
styles there is a new character style: WW-Absatz-Standardschriftart11.

You can go on repeating the procedure. In each new iteration a new
character style is created.

If a DOC file is opened and saved between Writer and MS Word you get
the same result but with slightly different names of new character
styles (WW-Default Paragraph Font*).

This behavior is annoying as after many save/open cycles the list of
styles gets cluttered with styles not used in the text actually.

The issue does not exist if the DOCX format is used.

The test environment:
- LibreOffice Writer 3.4.5 on an Ubuntu 11.10 or MS Windows XP Pro. SP3
- MS Word 2003 SP3 on a MS Windows XP Pro. SP3, all additional MS
  updates installed (DOCX tested using MS Office Compatibility Pack SP3)
Comment 1 rpr 2013-11-06 22:57:17 UTC
I've checked this issue with LibreOffice 4.1.2.3 on a Debian GNU/Linux.

When test1.doc is opened in LibO it shows that there are 10 odd
character styles in the document:
WW8Num1z0
WW8Num9z0
...
WW8Num10z0

After saving that document as test2.doc and reopening it the list of
character styles stays the same. So, I could say that this bug was
fixed somewhere between Libo 3.4.5 and 4.1.2.3.

BTW, according to bug #50774 the WW8Num* styles are created when LibO
converts Word's non-style autonumbering to a style-based numbering.


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.