Apache OpenOffice (AOO) Bugzilla – Issue 35763
WW8: Wrong import/export of underlining colours
Last modified: 2017-05-20 11:22:02 UTC
1. Color Underlining in documents exported (saved) from OOo Writer 113 to Word 2003 produce a complete different format in Word 2003. 2. Colour underlining in documents imported from Word 2003 into Writer 113 get the wrong colour (black or default colour in Writer 113, while in Word 2003 it had been orange, blue, etc.) In case an example is required, I have prepared 2 files both in Writer 113 and Word 2003.
Created attachment 18520 [details] Shows the error in conversion of underlining colours
Created attachment 18522 [details] Shows the error in conversion of underlining colours
MRU->MMAHER: The im-/export of underline color does not work correctly. A custom color is always turned to "automatic" color.
same problem in OOo 1.9.65 version
Created attachment 22187 [details] Showing underline taking on the colour of letters above
Created attachment 22189 [details] All underlining (even for spaces) display black in MS Word
Replicable Important for teachers, writers and jounalists that need to do manual grammar checking. Also useful to anyone who would like to highlight important parts of the text for later use. Steps to reproduce: 1. Open new Text Document in OpenOffice Writer (File -> New -> Text Document) 2. Highlight a word 3. Right-click on highlight & chose Character (alternatively chose Format -> Character from the top menu bar) 4. Click on the Font Effects tab 5. Pick any option from the Underlining and Color drop-down menues 6. Click OK System: Windows XP Professional Intel Pentium 4 2.53GHz 512MB RAM OpenOffice.org 1.1.4, MS Word 97 Test 1: Text document with green, pink, yellow & blue underlining saved in OpenOffice Writer with .doc extension. => All underlining displayed as black in MS Word 97. Test 2: Text document with green, pink, yellow & blue underlining saved in OpenOffice Writer with .doc extension. But in addition some of the underlined words were also stroked through and had different underlining styles such as dotted, dashed and double underlined. => All underlining displayed as black in MS Word 97. Test 3: Same as Test 1 but this time some white spaces were colour underlined. => All underlining displayed as black in MS Word 97, even the underlined spaces. Test 4: Only one word with red underlining. Underlining style: wave. => Underlining displayed as black in MS Word 97. Test 5: No text. Only white space underlined with colour. => Underlining style: dotted. Underlining displayed as black in MS Word 97. Test 6: Same as Test 1. Only one word coloured orange in the middle of underlined words. => The orange word appeared orange in MS Word 97. All underlining displayed as black in MS Word 97. Test 6: Coloured words as well as giving them coloured underlining. Colours of the letters and colour of the underlining were different. => Opened in MS Word 97: Letters retained their colour. Underlinings underneath a coloured letter received the same colour as the letter. Underlinings that were not underneath a coloured letter were shown as black. Interestingly enough, when reopening the .doc files in OpenOffice they displayed just as in MS Word 97, i.e. underlinings were black. Only when saving in .sxw format the underlinings kept their original colour. It probably has to do with OpenOffice Writer saving to the .doc format. Could not reproduce the reverse, i.e. colour underlining in MS Word 97 and then opening in OpenOffice Writer, since MS Word 97 does not have an option to give underlinings colour. Feature probably introduced with MS Word 2003.
same problem in OOo 1.9.74 version The solution of this problem is also important for external consultancy, and for team work in organisations where some people use Word and others OOo when reviewing projects, etc. (I often get Word documents underlined with coded colors and instead of working on them with OOo, I have to recur to Word again).
mmaher->flr: Your's methinks
*** Issue 49952 has been marked as a duplicate of this issue. ***
assigned to hbrinkm
*** Issue 84710 has been marked as a duplicate of this issue. ***
Reproduced with OOo 3.1.1 even with new created documents then saved as doc and opened with MSWord2003. Same result if you change underlining color in a paragraph style in tab "font effect". Tested with Linux and WinXP, so I'm changing OS to "All". This issue is very annoying for companies with Corporate Identity rules using underlining colors for titles and so on.
Hello gonzalez, *, I have tested it with the Germanophone version of OOO320m17 under Debian SID AMD64, and there it looks OK. AS I have no M$ products installed, would you be so kind to test it again with your system (which OS/architecture are you using btw.?), please? HTH Thomas.
Created attachment 69644 [details] view of the word2003 document (converted from writer sxw) in word 2003
1) the attached .png graphic is a screenshot of the word2003 document (converted from writer .sxw) in a Word 2003 program installed with Wine in Ubuntu 10.04. 2) The same graphic is obtained in Ubuntu 10.04 using Word 2003 installed with Crossover 3) ditto for Word 2003 installed in a Sun VirtualBox (Win XP) within Ubuntu 10.04
Created attachment 78967 [details] patch for i35763
The problem is that the im-/export of underline color is not support in WW8 filter. solution: add the logic to handle underlining colors im-/export in WW8 filter write wike page for this enhancement, more detail, see http://wiki.services.openoffice.org/wiki/Writer/Underline_Color
"leidb" committed SVN revision 1373697 into trunk: #35763# fix WW8: Wrong import/export of underlining coloursmore detail pls ch...
Reviewed. Excellent work from Zuo Jun, thx.
verified in build 1409708 on Win7, suse 11 sp1 and Mac 10.7: 1. import: use MS 2003 create a .doc file contianing different colors of underline, then open in Aoo, the underline colors are correct 2. export: use Aoo create a .doc file containing different colors of underline, then open in MS word 2003, the underline colors are correct. I have no word 97, thus cannot verify the compatibility between Aoo and MS 97
verified in build 1411985 on Win7, german localisation I've used MS Word 2000 (which uses Word 97 format) to create a .doc file with different underline colors 1. Import: .doc opened in Aoo shows correct underline colors 2. Export: Word97.doc created in Aoo shows correct underline colors when opend in Word 2000
assigned to Rob for verification.
I have Office 97. What needs to be tested? Do I need to load a document? Whichy document?
1. Created new document in Office 97 with red single underline and blue double underline. Loaded in AOO 3.4.1. Underline colors are correctly preserved. 2. Created a new document in AOO 3.4.1 with red 1 single underline and blue double underline. Loaded in Office 97. The underline styles were preserved (single and double) but the colors all reverted to black. I'm attaching the Word 97 file so it can be examined. Fix is failed.
Created attachment 79974 [details] Underlines with color created in Office 97.
Maybe I misunderstood, but when I read the comment from 2012-08-16: "leidb committed SVN revision 1373697 into trunk ...", I guess, the patch is not intergrated in AOO 3.4.1 because the 3.4.1 Final was out on 2012-08-21 So is'nt it necessary to verify this in a newer (3.5) revision?
(In reply to comment #27) > Maybe I misunderstood, but when I read the comment from 2012-08-16: "leidb > committed SVN revision 1373697 into trunk ...", I guess, the patch is not > intergrated in AOO 3.4.1 because the 3.4.1 Final was out on 2012-08-21 > > So is'nt it necessary to verify this in a newer (3.5) revision? I agree. @Rob, can you please check the fix in one of the buildbot builds?
I have just seen this bug report - Bug 120657 is more or less a dup of this one. It's nice to have this fixed! For testing purposes, you can use the files from Attachment 80016 [details] from the newer bug report, all written by Word 14 in Office 2010.
Created attachment 80025 [details] aoo35_colour_underline_export (AOO 3.5 snapshot 2012-12-13) I made some tests with AOO 3.5.0m1 build 9611 (snapshot 2012-12-13) linux64 and WinWord 2010: some combinations of colour properties colour and shape style with underlines, in all 3 Word file formats, both in the main text and in comments. (Note that Bug 120657 also discusses filter handling of property "individual words", I'll include that in my tests. Word is more limited here: It only supports "Words only" as an "Underline style", not as an independent property. It corresponds to AOO "single line" + "individual words".) Import to AOO: DOC: Everything OK in text and comments. Word underline style "Words only" is converted to AOO styles "single" + "individual words". DOCX: No change: Property "Underline style" correctly imported ("Words only" handled like in DOC import), "Underline color" ignored. Both in text and in comments. RTF: Word properties "Underline style" and "Underline color" correctly imported ("Words only" handled like in DOC import), but only in text: Comments are not imported at all. Export from AOO: DOC: Properties "Underlining" style and "color" correctly exported in text and comments. Property "individual lines" is handled better in comments than in text: In comments, it is converted to Word underline style "Words only" for single-line underlines, for other styles it is ignored (which makes sense to me). In text, it is always ignored (so: AOO import/export behaviour inconsistent). RTF: Properties "Underlining" style and "color" correctly exported in text and comments. Property "individual lines" is handled as in DOC export: it is ignored. In comments, all text properties are ignored (text colour, underline). (DOCX export filter not active in snapshot.)
Reset assigne to the default "issues@openoffice.apache.org".