Issue 35763 - WW8: Wrong import/export of underlining colours
Summary: WW8: Wrong import/export of underlining colours
Status: REOPENED
Alias: None
Product: Writer
Classification: Application
Component: save-export (show other issues)
Version: OOo 1.1.3
Hardware: PC All
: P3 Trivial with 3 votes (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: oooqa
: 49952 84710 (view as issue list)
Depends on:
Blocks:
 
Reported: 2004-10-19 11:03 UTC by gonzalez
Modified: 2017-05-20 11:22 UTC (History)
8 users (show)

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


Attachments
Shows the error in conversion of underlining colours (9.50 KB, application/msword)
2004-10-19 11:08 UTC, gonzalez
no flags Details
Shows the error in conversion of underlining colours (6.92 KB, application/vnd.sun.xml.writer)
2004-10-19 11:09 UTC, gonzalez
no flags Details
Showing underline taking on the colour of letters above (8.00 KB, application/msword)
2005-02-04 08:13 UTC, luc_khanh
no flags Details
All underlining (even for spaces) display black in MS Word (7.50 KB, application/msword)
2005-02-04 08:13 UTC, luc_khanh
no flags Details
view of the word2003 document (converted from writer sxw) in word 2003 (4.97 KB, image/png)
2010-05-26 19:22 UTC, gonzalez
no flags Details
patch for i35763 (5.24 KB, patch)
2012-08-16 01:47 UTC, zjchen
zjchencdl: review?
Details | Diff
Underlines with color created in Office 97. (19.00 KB, application/msword)
2012-11-30 15:23 UTC, Rob Weir
no flags Details
aoo35_colour_underline_export (AOO 3.5 snapshot 2012-12-13) (239.31 KB, application/zip)
2012-12-14 09:25 UTC, stfhell
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description gonzalez 2004-10-19 11:03:44 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.
Comment 1 gonzalez 2004-10-19 11:08:06 UTC
Created attachment 18520 [details]
Shows the error in conversion of underlining colours
Comment 2 gonzalez 2004-10-19 11:09:25 UTC
Created attachment 18522 [details]
Shows the error in conversion of underlining colours
Comment 3 michael.ruess 2004-10-20 08:23:46 UTC
MRU->MMAHER: The im-/export of underline color does not work correctly. A custom
color is always turned to "automatic" color.
Comment 4 gonzalez 2004-12-17 19:07:32 UTC
same problem in OOo 1.9.65 version 
Comment 5 luc_khanh 2005-02-04 08:13:01 UTC
Created attachment 22187 [details]
Showing underline taking on the colour of letters above
Comment 6 luc_khanh 2005-02-04 08:13:49 UTC
Created attachment 22189 [details]
All underlining (even for spaces) display black in MS Word
Comment 7 luc_khanh 2005-02-04 08:17:09 UTC
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.
Comment 8 gonzalez 2005-02-04 19:02:59 UTC
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).
Comment 9 martin_maher 2005-05-05 10:27:27 UTC
mmaher->flr: Your's methinks
Comment 10 michael.ruess 2005-05-27 11:18:50 UTC
*** Issue 49952 has been marked as a duplicate of this issue. ***
Comment 11 Mathias_Bauer 2006-08-30 14:55:38 UTC
assigned to hbrinkm
Comment 12 michael.ruess 2008-01-03 12:54:04 UTC
*** Issue 84710 has been marked as a duplicate of this issue. ***
Comment 13 gibi 2009-09-21 00:14:51 UTC
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.
Comment 14 thackert 2010-05-12 17:30:41 UTC
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.
Comment 15 gonzalez 2010-05-26 19:22:23 UTC
Created attachment 69644 [details]
view of the word2003 document (converted from writer sxw) in word 2003
Comment 16 gonzalez 2010-05-26 19:32:40 UTC
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
Comment 17 zjchen 2012-08-16 01:47:26 UTC
Created attachment 78967 [details]
patch for i35763
Comment 18 zjchen 2012-08-16 01:51:54 UTC
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
Comment 19 SVN Robot 2012-08-16 02:16:47 UTC
"leidb" committed SVN revision 1373697 into trunk:
#35763# fix WW8: Wrong import/export of underlining coloursmore detail pls ch...
Comment 20 Lei Debin 2012-08-16 02:18:31 UTC
Reviewed.
Excellent work from Zuo Jun, thx.
Comment 21 louqle 2012-11-22 02:19:40 UTC
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
Comment 22 jmpoo 2012-11-22 09:06:06 UTC
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
Comment 23 Oliver-Rainer Wittmann 2012-11-22 15:44:02 UTC
assigned to Rob for verification.
Comment 24 Rob Weir 2012-11-26 19:39:11 UTC
I have Office 97.  What needs to be tested?  Do I need to load a document?  Whichy document?
Comment 25 Rob Weir 2012-11-30 15:22:25 UTC
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.
Comment 26 Rob Weir 2012-11-30 15:23:15 UTC
Created attachment 79974 [details]
Underlines with color created in Office 97.
Comment 27 jmpoo 2012-12-07 09:03:23 UTC
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?
Comment 28 Oliver-Rainer Wittmann 2012-12-07 09:27:32 UTC
(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?
Comment 29 stfhell 2012-12-14 08:21:26 UTC
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.
Comment 30 stfhell 2012-12-14 09:25:15 UTC
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.)
Comment 31 Marcus 2017-05-20 11:22:02 UTC
Reset assigne to the default "issues@openoffice.apache.org".