https://bugs.documentfoundation.org/show_bug.cgi?id=135796

--- Comment #10 from Дмитрий <[email protected]> ---
When saving a DOCX file with highlighted text in LibreOffice 24.8.2, the color
is displayed in Word 2010, but colors from LibreOffice's palette cannot be
removed using Word's highlighting function. This is because LibreOffice uses
the <w:shd> tag for shading, while Word relies on the <w:highlight> tag. Mybe
to make this work correctly, LibreOffice should convert its color palette into
Word's supported highlight colors and assign appropriate names.

Test Result:
I tested replacing the shading XML line manually in the file saved in
LibreOffice, and the highlighting worked correctly in Word 2010.

XML Example:

LibreOffice Output:

<w:rPr>
  <w:highlight w:val="none"/>
  <w:shd w:fill="FCFF2F" w:val="clear"/>
</w:rPr>


Word 2010 Output:

<w:rPr>
  <w:highlight w:val="yellow"/> 
</w:rPr>

Differences:

  LibreOffice uses <w:shd> for shading, while Word uses <w:highlight> for
highlighting.
  Colors from LibreOffice's palette need to be converted into Word's predefined
colors to ensure they can be applied and removed correctly in Word 2010.

List of Supported Colors in Word 2010:
1  - yellow
2  - green
3  - cyan
4  - blue
5  - red
6  - magenta
7  - black
8  - darkGray
9  - lightGray
10 - turquoise
11 - pink
12 - orange
13 - dark Green
14 - dark Blue
15 - dark Red
16 - none (no highlight)

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to