|
Description
Justin L
2020-11-19 15:08:55 UTC
I started documenting this interoperability conundrum at https://wiki.documentfoundation.org/Documentation/CharHighlight. Proposed fixes so far: https://gerrit.libreoffice.org/c/core/+/106182 tdf#138345 sw ms export: never export highlight to charstyle https://gerrit.libreoffice.org/c/core/+/106183 related tdf#138345 docx: don't import highlight into charstyle (In reply to Justin L from comment #1) > I started documenting this interoperability conundrum at > https://wiki.documentfoundation.org/Documentation/CharHighlight. Telesto - this was done for you. :-) (In reply to Justin L from comment #2) > (In reply to Justin L from comment #1) > > I started documenting this interoperability conundrum at > > https://wiki.documentfoundation.org/Documentation/CharHighlight. > > Telesto - this was done for you. :-) Ah, I wasn't aware! An interoperability conundrum wiki surely practical; Many thanks! Created attachment 167494 [details]
charHighlight6.docx: testing various scenarios with highlight vs shade
Created attachment 167496 [details]
charHighlight6-word2003.pdf: (Word 2016 looks the same as Word 2003.)
Created attachment 167554 [details]
paraShading.odt: focusing on paragraph-style settings this time
I'm expanding this bug report a bit to include paragraph style as well.
NOTE: the user setting to export as highlight or shading is not concerned about imported files (those should round-trip as imported), but about changes made by LO users. So I'm attaching a simple ODT file.
MS Word doesn't seem to have any tool to adjust the shading (or highlight) in a paragraph style. So in this regard it doesn't really matter as much whether we chose to export as highlight or shade.
The only reason to export a paragraph charBackground as a highlight is so that MSWord's direct no-highlighting could cancel it.
But there are several reasons why it is better to export all styles as shading:
-LO can design with character styles (which override the paragraph style), but MSWord's character styles cannot contain highlighting. So any LO design using character styles will completely break.
-if a "none" is exported as a highlight, it won't override a char-style shading, but if the paragraph AND none are exported as shading, then all cases work. There is NEVER A NEED to export none as highlight if all styles export as shading. (Unless perhaps document defaults or something insane like that...)
-there is no reduction to 15 colours in that case for any style charBackgrounds.
-currently a "none" is not exported as a highlight anyway. So there is no way that this will make the current situation worse.
Created attachment 167555 [details]
paraShading.pdf: how the LO6.4 export-as-highlight looks in Word 2016
Proposed fix for paragraph style: https://gerrit.libreoffice.org/c/core/+/106587 Justin Luth committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/5951a867b87cbb88886968c1e2059f2cf461d11c tdf#138345 sw ms export: Char highlight: no export to char-style It will be available in 7.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback. Justin Luth committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/20574b4023952c8fbfa728590f3bdcf603633cca tdf#138345 ms formats Char highlight: no import into char-style It will be available in 7.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback. Justin Luth committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/f370f7be397af54bf56fd7a6703aae4c38113234 tdf#138345 Char highlight: numbering needs charstyle props highlight It will be available in 7.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback. *** Bug 99023 has been marked as a duplicate of this bug. *** |