Writer Import - Hightlighted characters VS Shaded characters

Adam Co rattles2013 at gmail.com
Sun Jun 30 08:33:23 PDT 2013


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

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20130630/26464f54/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.jpg
Type: image/jpeg
Size: 37788 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20130630/26464f54/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Text Higlight with Characeter Shading [public].docx
Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document
Size: 16353 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20130630/26464f54/attachment.docx>


More information about the LibreOffice mailing list