Created attachment 80330 [details] DOCX containing text with highlighting *and* character shading Problem description: This is related to the import bug I've opened here: https://www.libreoffice.org/bugzilla/show_bug.cgi?id=65403 When opening a DOCX with text that has highlighting *and* character shading - LO only shows the character shading. When saving as a NEW.DOCX file - the text highlighting that was in the original DOCX is not exported and is lost. Steps to reproduce: 1. Open the attached DOCX in LO 2. Save as a NEW.DOCX 3. Open the NEW.DOCX in Word 4. There is no highlighting to the text Current behavior: LO exports the DOCX and loses the highlighting information Expected behavior: LO should export the highlighting information of the text to the NEW.DOCX Operating System: Windows 8 Version: 4.0.3.3 release
I can confirm that using Mac OSX 10.8.3 with LibreOffice 4.1.0 beta 2, with Word for Mac 2011. Kind regards, Joren
Created attachment 86258 [details] DOCX containing text with highlighting *and* character shading
Created attachment 86259 [details] DOCX exported by LO with character highlighting lost
Created attachment 86260 [details] Screenshot comparison between original DOCX and exported DOCX
It is important to note that: (1) if there is ONLY character HIGHLIGHTING on the characters - LO will convert it to character SHADING (2) if there is both character HIGHLIGHTING *AND* character SHADING - LO will only import the character SHADING and lose the character highlighting This is because Writer's core only has one way of storing a character's background color, and it cannot store both HIGHLIGHTING *AND* SHADING.
Fixed with commit: 8b949134441056a1455d67ddfdd7e0bc5f2ee682
It seems that something is wrong with Highlighting and Shading (LibO "Background color") - LibO produces files, which are incompatible with MS Word 2k3, 2k7. I created DOC and DOCX files with Higlighting and Shading. For saving DOC and DOCX files I used: 1. LibreOffice 4.3.3.2 (Build ID: 430m0(Build:2)). 2. LibreOffice 4.4.0.0.alpha2 (Build ID: 24f0a5815f581dd9a7f09d30213a379edee6e9ac). ODT source files and resulting DOC/DOCX files are in attachment. For opening produced DOC and DOCX files I used: 1.a. I use MS Word 2003 SP3 (11.8169.8172) - I see Highlighting (converted to Shading - it is wrong) and background is missed (converted to Shading - it's wrong). 2.a. I use MS Word 2007 SP3 (12.0.6612.1000 SP3 MSO 12.0.6607.1000) - - I see Highlighting (converted to Shading - it is wrong) and background is missed (converted to Shading - it's wrong). 2.a. I use MS Word 2003 SP3 (11.8169.8172) - I see only Highlighting (converted to Shading - it is wrong), background is missed. 2.b. I use MS Word 2007 SP3 (12.0.6612.1000 SP3 MSO 12.0.6607.1000) - I see only Highlighting (converted to Shading - it is wrong), background is missed. I tested 4.3.3.2 and 4.4.0 about bug 79599 - it is fixed in these versions. IMHO we have one more example of Microsoft pronouncing of term "Open Standards". So Shading and Highlight is broken again, in 4.4.0 it is useless (rendering ODT != DOC/DOCX).
Created attachment 109775 [details] attachment for comment 7
As a conclusion I can say the following - I can't fix bug 65403, bug 65404, bug 64490 by myself (they are more difficult than bug 79599). But I'm ready to test changes. But these bugs brake normal document exchange between MS Word' and LibO Writer' users, so they should be fixed as soon as possible in LibO 4.3 and upcoming 4.4. Developers can use my attachments: DOC-to-ODT [1] and ODT-to-DOC [2] for round-trip testing. 1. https://bugs.freedesktop.org/attachment.cgi?id=109778 2. https://bugs.freedesktop.org/attachment.cgi?id=109775
Fixed now: http://cgit.freedesktop.org/libreoffice/core/log/?qt=range&q=8f01925d98dabdbf400c9263e08242267b2b9701..cfbb1f47acfbf3318071d20c73c44df8916a51fa Will be available in the next LO release: 4.5.