Created attachment 80329 [details]
DOCX containing text with highlighting *and* character shading
When loading a DOCX in LO that has text with highlighting *AND* character shading - the highlighting is not shown.
When loading the same DOCX in Word - the highlighting *is* shown on the text.
The only effect you see of the character shading is in the spaces between the words that have highlighting. Word does not do overlapping of the character shading and the text highlighting, but it *does not* lose the information,
meaning - if you remove the highlighting from one of the words in Word, you *will* see the character shading on that word.
This is related to the bug I opened here:
(that bug speaks about the character shading itself only)
Steps to reproduce:
1. Open the attached DOCX in LO
2. There is no highlighting on the text - only a dark-gray shading to the entire text.
LO colors the entire text with dark-gray character shading.
LO should show the text with highlighted colors and between the words show the light-gray character shading.
Operating System: Windows 8
Version: 188.8.131.52 release
I can confirm that using Mac OSX 10.8.3 with LibreOffice 4.1.0 beta 2, with Word for Mac 2011. Thanks again for these clear bug reports ;-)!
Created attachment 86278 [details]
Screenshot comparison between MS Word and LibreOffice
Zolnai Tamas committed a patch related to this issue.
It has been pushed to "master":
fdo#65403, fdo#65404 DOCX export/import of character highlight
The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.
*** Bug 64490 has been marked as a duplicate of this bug. ***
Import of highlight character attribute was set back to the previous state with merging it with character shading into one character background:
Importing highlight as a second character border causes regressions and makes highlight uneditable on UI. It should be disabled until the full highlight support is implemented.
If it may help - I have made some changes (
) to highlight handling in RTF (see bug 79599), Miklos Vajna have reviewed them on Gerrit ( https://gerrit.libreoffice.org/#/c/9776/ ).
Tested on Version: 184.108.40.206
Build ID: 430m0(Build:4)
on Ubuntu 12.04 LTS from PPA
= there is no bug.
Tested self-compiled 4.3 with patch to bug 79599 (see comment 6) - I can't reproduces this bug.
So my changes in DomainMapper are not related to this bug.
How come that:
- I can't reproduce this with LO 220.127.116.11 (OK) but
- I can with 18.104.22.168 (NOK)?
I can't reproduce the bug with LO 22.214.171.124 and 126.96.36.199 (OK) but
I can with 188.8.131.52, 184.108.40.206, 220.127.116.11, 18.104.22.168 and 4.4.0 alpha2 (NOK)
(In reply to Norbert X from comment #6)
> If it may help - I have made some changes (
> ) to highlight handling in RTF (see bug 79599), Miklos Vajna have reviewed
> them on Gerrit ( https://gerrit.libreoffice.org/#/c/9776/ ).
The correct ones were published by Aug 3, 2014. Norbert's comment and change was on Aug 4, 2014. Can this be related?
Original description does not describe version of Word in which the file was created.
For saving DOC and DOCX files I used:
1. I use MS Word 2003 SP3 (11.8169.8172) as file saver - DOC document with Highlight and Shading.
2. I use MS Word 2007 SP3 (12.0.6612.1000 SP3 MSO 12.0.6607.1000) - DOCX document with Highlight and Shading.
For opening DOC and DOCX files I used:
* LibreOffice 22.214.171.124 (Build ID: 430m0(Build:2)) - I see both highlight and shading, I can remove highlighting (with "Highlighting" button) in LibO, and I can remove shading (with "Background color" button).
* LibreOffice 126.96.36.199.alpha2 (Build ID: 24f0a5815f581dd9a7f09d30213a379edee6e9ac) - I see both highlight and shading, I can remove highlighting (with "Highlighting" button) in LibO, but can't remove shading (with "Background color" button).
I tested 188.8.131.52 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".
Created attachment 109778 [details]
attachment for comment 11
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  and ODT-to-DOC  for round-trip testing.
DOCX import does not loose highlighting or shading. Both will be there in the document until on a specific text range they are overwritten by LibreOffice editing (applying character background).
(In reply to Zolnai Tamás from comment #14)
> Fixed now:
Fixed on master, will be available in the next LO release: 4.5.