[Libreoffice-bugs] [Bug 135871] Highlighting no fill is not the same as no fill; there is still direct formatting present according to paragraph style

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Sep 21 15:26:30 UTC 2020


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

--- Comment #46 from Mike Kaganski <mikekaganski at hotmail.com> ---
Created attachment 165739
  --> https://bugs.documentfoundation.org/attachment.cgi?id=165739&action=edit
A sample with some bold text

(In reply to Telesto from comment #45)

The attached document contains four sample lorem ipsum paragraphs, followed by
two dummy text paragraphs.

The first sample paragraph uses "bold" PS. The second one has one sentence
using "bold" CS. The third one uses paragraph-level direct bold formatting. The
fourth one has one sentence with character-level direct bold formatting.

The first dummy text paragraph has Default PS. The second one has "bold" PS.

The scenario is that a Benjamin gets this document, and needs to work with some
formatting.

Initially the demo of natural, fundamentally unavoidable problem that Benjamin
sees when working with the document. We copy a single bold word from sample
paragraphs into *non-bold* dummy paragraph.

1. Select "ipsum" (double-click it) in the first paragraph, Ctrl+C, click
between "He" and "heard" in the first (non-bold) dummy text paragraph, Ctrl+V.
2. Select "nec" (double-click it) in the bold sentence of the second paragraph,
Ctrl+C, click between "heard" and "quiet" in the first (non-bold) dummy text
paragraph, Ctrl+V.
3. Select "velit" (double-click it) in the third paragraph, Ctrl+C, click
between "quiet" and "steps" in the first (non-bold) dummy text paragraph,
Ctrl+V.
4. Select "cursus" (double-click it) in the bold sentence of the fourth
paragraph, Ctrl+C, click between "steps" and "behind" in the first (non-bold)
dummy text paragraph, Ctrl+V.

This shows that the first bold word became non-bold when pasted to the target.
That is because paragraph styles are in play here; the copied word does not
bring its source paragraph's style to the target, and takes formatting from the
style of the target one. Benjamin has no clue why; that's a natural confusion
(he operates text created by someone else, using tools unknown to him, with
concepts unknown to him). This is not a bug, and should not change.

Now let's see how this changes when Benjamin starts using *his* tools. Let's
copy the same four words into the second dummy text paragraph (the bold one),
but first make each word not bold prior to copy.

5. Select "ipsum" (double-click it) in the first paragraph, Ctrl+B, Ctrl+C,
click between "He" and "tried" in the second (bold) dummy text paragraph,
Ctrl+V.
6. Select "nec" (double-click it) in the bold sentence of the second paragraph,
Ctrl+B, Ctrl+C, click between "tried" and "to" in the second (bold) dummy text
paragraph, Ctrl+V.
7. Select "velit" (double-click it) in the third paragraph, Ctrl+B, Ctrl+C,
click between "to" and "nervously" in the second (bold) dummy text paragraph,
Ctrl+V.
8. Select "cursus" (double-click it) in the bold sentence of the fourth
paragraph, Ctrl+B, Ctrl+C, click between "nervously" and "tap" in the second
(bold) dummy text paragraph, Ctrl+V.

The Ctrl+B step makes the selected text explicitly non-bold *in all cases*.
Benjamin may be sure, that no matter what magic was used to create the text
that he is facing, he may use this tool, and the text after that tool will
behave consistently with his expectations: it will be non-bold, no matter where
it arrives.

For comparison, let's see what would happen if, instead of applying explicit
non-bold attribute, Ctrl+B would just clear (remove) bold attribute in the
fourth sample paragraph (from where we have copied "cursus"). The first
sentences of the fourth paragraph don't have the explicit non-bold attribute,
so words in those first sentences are the perfect example what would result
from your proposal.

9. Select "ipsum" (double-click it) in the non-bold first sentence of the
fourth paragraph, Ctrl+C, click between "nervously" and "tap" in the second
(bold) dummy text paragraph, Ctrl+V.

I.e., if Ctrl+B in the fourth paragraph would just clear the bold attribute,
then Benjamin would face the situation, that after using a tool "B" he would
still have the result behave unexpectedly/unexplainably to him (you can't
explain this behaviour unless you understand styles).

So the current status is:

 - Benjamin might have some difficulty working with other's documents (or after
using advanced tools cluelessly); but there are tools that he may use, to get a
simple behaviour expected by him.

Your proposal is:

 - no matter what tool Benjamin would use: without understanding of styles, the
behaviour of the result of *his* actions would still behave unexpected to him.

-- 
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/20200921/a987cc8b/attachment.htm>


More information about the Libreoffice-bugs mailing list