Hi, This is regarding this <https://www.libreoffice.org/bugzilla/show_bug.cgi?id=65404> bug that I've reported (I've attached a sample DOCX). Apparently - MS Word has 2 types of background mechanisms for characters : Highlighting and Shading. In case both exist - the 'Highlighting' is what supersedes. However, both are stored in the DOCX file, so that if a user removes the highlighting - he should see the characters shaded. Here is an example of the XML: You can see the 'w:shd' and 'w:highlight' nodes. When LO imports this DOCX - it converts it all to a single 'Brush' for the characters (uses SvxBrushItem). What is the best approach I should take if I want to support 'Character Highlighting' with 'Character Shading'? Should each text portion have two brushes instead of one? One for 'Character Highlighting' and one for 'Character Shading'? What are the implications of this (development-wise)? Currently LO has only a single brush for characters. Thanks, Adam
Attachment:
Text Higlight with Characeter Shading [public].docx
Description: MS-Word 2007 document