Apache OpenOffice (AOO) Bugzilla – Issue 119405
Numbering text style changed after importing the *.doc
Last modified: 2012-10-09 09:25:07 UTC
Created attachment 77581 [details] This sample only contains three numbering paras 1.Launch Aoo 3.4 2.Open the sample and find some numbering text formats are different from what they are in Ms Word...
Can reproduce on Aoo3.4,and I think it is critical,suggest fix as soon as possible.
Created attachment 78082 [details] numbering style and value has problem. This sample numbering style and value also has problem.
Bug 120621, is opened for the second sample. Can igore this sample's problem is this bug.
Created attachment 79015 [details] Fix Patch
Created attachment 79017 [details] Test Case1 1)In MS Word,the bullet sizes are same 2)In Aoo Writer before the fix patch,the bullet sizes are different
Created attachment 79018 [details] Test Case2 1)The bullet sizes are same in MS Word 2)The bullet sizes will be different after being launched into Aoo Writer 3)The third para end mark has not its own individual attributes in the binary file
Created attachment 79019 [details] Test Case3 1)The numbering attributes looks same in MS Word 2)The numbering attributes looks different after being launched into Aoo Writer
Created attachment 79020 [details] Test Case4 The para end mark has its own individual attributes at its position
Created attachment 79021 [details] Test Case5 Avoid the impact of Hyperlink attributes at end of para
Created attachment 79022 [details] Test Case6 Negative Impacts:the color will be changed..
Problem Description: To some MS Word binary documents, the numbering and bullets looks same in MS Word,but their attributes will be different after being launched into Aoo Writer.Please refer to the samples attached in test cases. Root Cause Analysis: As we know,MS Word provides the paragraph end mark,it is used broadly to distinguish the attributes of text contents,attributes of paragraph and the methods to handling flying objects anchoring,and so on..In this thread, we will not outspread it,and will only focus on its impact on the numbering and bullets attributes.In MS Word,there are two kinds of attributes will determine the final result of numbering and bullets applied to a paragraph.One is the attribute that is applied to the whole text contents of a paragraph;The other is the attribute that is applied to the paragraph end mark,presented with 0x0D in MS Word binary document. Because Aoo Writer doesn't support the same kind of paragraph end mark, the attributes of 0x0D will be lost during loading a MS Word Binary document, and default attributes of Aoo Writer will apply to the numbering and bullets instead of its actual attributes.Thus, to the numbering and bullets whose attributes are determined by the paragraph end mark, the fidelity will have problems.That's the reason. Solution: When parsing the attributes of paragraph end mark(0x0D),the attributes will be extended and set to the character style binding to the given level of a number rule.Thus,the attributes of MS Word's paragraph end mark will apply to the numbering and bullets in Aoo Writer successfully to keep the fidelity. Negative Impact: Although most common user scenarios can be met by the solution,there are still negative impacts.Because the attributes of paragraph end mark(0x0D) will be set to the character style binding to the given level of a number rule,it will have the global impact..Other paragraphs that are applied with the same number rule's level will also be changed.Please refer to the Test Case 6, the color of the bullet will be changed finally. Generally, MS Word users will have their numbering/bullets the same attributes/style when using the same level's of number rule,correspondingly,the impacted scenarios are rarely.
Created attachment 79045 [details] PVT Test Result Run PVT test from https://svn.apache.org/repos/asf/incubator/ooo/trunk/main/test
Committed with revision:1376818,thanks.
verified on the AOO3.5_r1387482
set Target Milestone to AOO 3.5.0 for PM purpose.