Issue 126176 - Import from WORD erroneously applies Heading numbering to non-Heading-formatted styles
Summary: Import from WORD erroneously applies Heading numbering to non-Heading-formatt...
Status: UNCONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: open-import (show other issues)
Version: 4.1.1
Hardware: All All
: P5 (lowest) Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-13 12:59 UTC by udippel
Modified: 2015-10-24 23:00 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
The numbering of Heading(s) in WORD (original) and Writer differ. (69.50 KB, application/msword)
2015-03-13 12:59 UTC, udippel
no flags Details
Document in WORD (127.73 KB, image/png)
2015-03-17 14:54 UTC, udippel
no flags Details
Document in OpenOffice (152.22 KB, image/png)
2015-03-17 14:54 UTC, udippel
no flags Details
AOO Writer 4.1.1 (333.83 KB, image/jpeg)
2015-10-24 22:58 UTC, Claudia Badell
no flags Details
AOO Writer 4.2.0.jpg (303.69 KB, image/jpeg)
2015-10-24 22:58 UTC, Claudia Badell
no flags Details
Issue A - Borders are displayed.jpg (56.97 KB, image/jpeg)
2015-10-24 22:59 UTC, Claudia Badell
no flags Details
Issue A.docx (11.32 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2015-10-24 22:59 UTC, Claudia Badell
no flags Details
Issue B - Header and Footer tables are not displayed.jpg (61.04 KB, image/jpeg)
2015-10-24 23:00 UTC, Claudia Badell
no flags Details
Issue B.docx (14.76 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2015-10-24 23:00 UTC, Claudia Badell
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description udippel 2015-03-13 12:59:39 UTC
Created attachment 84589 [details]
The numbering of Heading(s) in WORD (original) and Writer differ.

(I have reduced a standard exam template to a rather basic sample)
We use a VB application to extract data from a WORD-file for automated exam correction in a multiple-choice exam.
Flags are Heading1, Haeding2, to distinguish the tasks and sub-tasks, and format styles 'solution [xyz]' to extract the correct solutions.

I'd love to use OpenOffice instead, but the im- and export doesn't work correctly. The attached sample shows it: the numbering of tasks miraculously (erroneously) is applied to the 'solution correct' and 'solution none' fields as well; not to the parent 'solution', however. 
It ought not be applied at all, however, since the numbering had originally been applied exclusively to Heading1 and Heading2.
Comment 1 oooforum (fr) 2015-03-16 10:28:05 UTC
To demonstrate what happens between AOO and MS-Word, it would be useful to provide comparable screen captures so that we can discern exactly what is happening.
Comment 2 udippel 2015-03-17 14:54:14 UTC
Created attachment 84600 [details]
Document in WORD
Comment 3 udippel 2015-03-17 14:54:42 UTC
Created attachment 84601 [details]
Document in OpenOffice
Comment 4 orcmid 2015-03-17 20:03:49 UTC
Can you upload (a non-private form of) the original Word document, please, so we can see what the settings of that document are?  

The OpenDocument .odt is not needed unless we discover that we can't reproduce the problem.

The screen shots are also very helpful.  Thank you for those.
Comment 5 udippel 2015-03-17 20:24:06 UTC
This is exactly what I uploaded as first file.
(I don't think you want the file twice? ;-) ).
Comment 6 orcmid 2015-03-17 21:36:17 UTC
(In reply to udippel from comment #5)
> This is exactly what I uploaded as first file.
> (I don't think you want the file twice? ;-) ).
Oops.  No, I don't need the .doc file again.  Thanks.
Comment 7 oooforum (fr) 2015-04-20 14:30:39 UTC
Sorry but these 2 screenshots are differents.
Word_view shows Task 2 and 3
AOO_view shows Task 6 and 11
Comment 8 udippel 2015-04-20 14:45:52 UTC
@#7:
They are *not*! It is the same text, only the numbering goes haywire. I've shown the 'hidden' feature so that you can see that it picks up some extra numbering from another category.
That's exactly why I filed this bug: the *numbering* changes, as you have astutely noticed.
Comment 9 Claudia Badell 2015-10-24 22:58:03 UTC
(Claudia Badell - 24th October 2015)

I could reproduce the issue with the document attached by udippel. Besides not showing the same heading numbers, also happens that:
a) Border color for tables in Header and Footer is black in AOO Writer but it is displayed grey in MS Word.
b) First and second cells in last row of the second and forth tables in Page 2 are visible but in the MS Word version those cells have not border thickness.
c) Content in first column is empty for all tables in all pages. 
d) Content in third column is empty for tables in pages 2 and 3. 
e) Texts (10 Points) and 15 Points) are aligned to the left but in the MS Word version they are aligned to the right.
f) Texts with background color Green or Yellow in MS Word are not displayed with background color in AOO Writer.

I obtained the same result opening the attached Final_Demo_Basics.doc file in versions
- A00 Writer 4.1.1 Language = English
- AOO Writer 4.2.0 Win  Language = English
using Windows 7 Ultimate 32 bits Service Pack 1

Please see attached files with obtained result for both versions ("AOO Writer 4.1.1.jpg" and "AOO Writer 4.2.0.jpg").

Regarding the heading numbering issue, I wasn’t able to reproduce from scratch. I tried to reproduce it in version 4.2.0 with different levels of sections and applying different format styling.

I could reproduce a) from scratch in versions 4.1.1 and 4.2.0. Maybe this issue can be related to issue #69225.  Sequence to reproduce a) from scratch:
1. Add a table 2X2 in MS Word file 
2. Set left and bottom borders for first cell in second row to be not visible
3. Save and close file
4. Open saved file in AOO Writer
Obtained result: borders unset in step 2 are displayed grey. Please see attached image "Issue A - Borders are displayed.jpg" and MS Word file to reproduce it (Issue A.docx).

I couldn’t reproduce b) from scratch but I found the following issue in versions 4.1.1 and 4.2.0:
1. Add a MS Word file 
2. Insert => Header => Blank template
3. Insert a 2x2 table with size by default as the Header
4. Close Header edition
5. Insert => Footer => Blank template
6. Insert a 2x2 table with size by default as the Footer
7. Close Footer edition
8. Save and close file
9. Open saved file in AOO Writer
Obtained result: tables are not displayed. Please see attached image "Issue B - Header and Footer tables are not displayed.jpg" and MS Word file to reproduce it (Issue B.docx).

I couldn’t reproduce c) and d) from scratch. I tried adding tables with the following format in a MS Word and then opening the file in AOO Writer 4.2.0:
- Content in cells of first row with Heading 1 format and cells in other rows with Normal format.
- Content in cells of first row with Heading 1 format, cells in second row with Heading 2 format and cells in other rows with Normal format.
- Content in cells of first row with Title format and cells in other rows with Normal format.
- Content in cells of first row with Title format, cells in second row with Subtitle format and cells in other rows with Normal format.
- Setting in cells of each row a different format setting: Heading 1, Heading 2, Heading 3, Title and Subtitle
- Setting in cells of each row a different format setting: Heading 1, Heading 2, Heading 3, Title and Subtitle
- Setting in cells of each row a different format setting and also setting bullets numbering

I couldn’t reproduce e) from scratch. I tried adding text (10 Points) after text of the subsection title in a MS Word and then opening the file in AOO Writer 4.2.0. This text was added with
- More than one blank space between the title´s subsection and text (10 points)
- One or more Tabs between the title´s subsection and text (10 points)
- Different format style in text (10 points)

I couldn’t reproduce f) from scratch. I tried adding text in cells in a table in a MS Word and then opening the file in AOO Writer 4.2.0. Tried tables 3x3 with text in all cells and:
- Only one text with background color set
- All texts in cells with background color set. All with same colors and each with a different color.
- All texts in cells of a column with background color set
- All texts in cells of a row with background color set
Comment 10 Claudia Badell 2015-10-24 22:58:27 UTC
Created attachment 85072 [details]
AOO Writer 4.1.1
Comment 11 Claudia Badell 2015-10-24 22:58:45 UTC
Created attachment 85073 [details]
AOO Writer 4.2.0.jpg
Comment 12 Claudia Badell 2015-10-24 22:59:02 UTC
Created attachment 85074 [details]
Issue A - Borders are displayed.jpg
Comment 13 Claudia Badell 2015-10-24 22:59:19 UTC
Created attachment 85075 [details]
Issue A.docx
Comment 14 Claudia Badell 2015-10-24 23:00:08 UTC
Created attachment 85076 [details]
Issue B - Header and Footer tables are not displayed.jpg
Comment 15 Claudia Badell 2015-10-24 23:00:50 UTC
Created attachment 85077 [details]
Issue B.docx