Summary: | FILESAVE: DOCX export of text with highlighting and character shading loses the highlighting information | ||
---|---|---|---|
Product: | LibreOffice | Reporter: | Adam CloudOn <rattles2013> |
Component: | Writer | Assignee: | Not Assigned <libreoffice-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | nrbrtx, ralf.krapf, zolnaitamas2000 |
Priority: | low | ||
Version: | 4.0.3.3 release | ||
Hardware: | All | ||
OS: | All | ||
See Also: |
https://bugs.freedesktop.org/show_bug.cgi?id=64490 https://bugs.freedesktop.org/show_bug.cgi?id=80986 https://bugs.documentfoundation.org/show_bug.cgi?id=65403 |
||
Whiteboard: | BSA | ||
Crash report or crash signature: | Regression By: | ||
Attachments: |
DOCX containing text with highlighting *and* character shading
DOCX containing text with highlighting *and* character shading DOCX exported by LO with character highlighting lost Screenshot comparison between original DOCX and exported DOCX attachment for comment 7 |
Description
Adam CloudOn
2013-06-05 09:22:05 UTC
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. |