Apache OpenOffice (AOO) Bugzilla – Issue 126176
Import from WORD erroneously applies Heading numbering to non-Heading-formatted styles
Last modified: 2015-10-24 23:00:50 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.
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.
Created attachment 84600 [details] Document in WORD
Created attachment 84601 [details] Document in OpenOffice
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.
This is exactly what I uploaded as first file. (I don't think you want the file twice? ;-) ).
(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.
Sorry but these 2 screenshots are differents. Word_view shows Task 2 and 3 AOO_view shows Task 6 and 11
@#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.
(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
Created attachment 85072 [details] AOO Writer 4.1.1
Created attachment 85073 [details] AOO Writer 4.2.0.jpg
Created attachment 85074 [details] Issue A - Borders are displayed.jpg
Created attachment 85075 [details] Issue A.docx
Created attachment 85076 [details] Issue B - Header and Footer tables are not displayed.jpg
Created attachment 85077 [details] Issue B.docx