[Libreoffice-bugs] [Bug 131920] Full text highlight + shading support

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Dec 2 11:49:27 UTC 2020


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

--- Comment #14 from Justin L <jluth at mail.com> ---
(In reply to Justin L from comment #11)
> Our current support for import/export of highlight works for the practical
> cases, but isn't complete enough to handle the theoretical documentation.

In case things ever flip-flop back to "highlight by default", then it might be
wise to implement https://gerrit.libreoffice.org/c/core/+/106587, but for now
I'll just leave things as they are - so that someone who really wants to export
as HIGHLIGHT can't complain that it doesn't work the same as before.

Char highlight: no export to para-style

Highlight really doesn't benefit paragraph styles because:

1a.) During LO design, a character style can override a
paragraph style. If the paragraph style is exported
as w:highlight, then the character style would not
be able to affect it any more.
[Note: MS Word doesn't allow highlight in character styles.]
1b.) MS Word's style UI has no ability to change whatever
we set here: either as a highlight or a shading.
1c.) Exporting COL_AUTO as shade allows both char-style
and para-style charBackground to be cancelled.
1d.) Serious colour degrading happens with highlight,
which is even more glaring when it affects an entire para.

(The only reason to export paragraph styles as highlight
is so that MS Word can cancel it with direct-formatting highlight.
That loses out amongst all the other considerations IMHO.
Plus at a paragraph level, it should be natural for MS Word
users to look for the paragraph tools to remove - which is
where shading is found...)

So never export the character background as w:highlight,
but always as w:shd for paragraph styles.

2.) The only time a COL_AUTO is used is to cancel
style-assigned values. So with both paragraph and
character styles using shading, COL_AUTO also needs to
be exported as w:shd. It never makes sense to export
it as w:highlight (unless it was imported, but then
it wouldn't be a RES_CHRATR_BACKGROUND).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20201202/11cc7175/attachment.htm>


More information about the Libreoffice-bugs mailing list