Bug 145118 - direct formatting of "character locale" cannot be cleared
Summary: direct formatting of "character locale" cannot be cleared
Status: RESOLVED DUPLICATE of bug 153970
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.2.1.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Clear-Formatting
  Show dependency treegraph
 
Reported: 2021-10-13 17:09 UTC by goodguy00@zoho.com
Modified: 2023-05-31 06:46 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description goodguy00@zoho.com 2021-10-13 17:09:03 UTC
Description:
when setting "character locale" (esp. when it is set automatically by bug 134426), it cannot be removed by "format>clear DF"
(the only way i found to remove it is cut and paste w/o format into a clean paragraph)

Steps to Reproduce:
1. set CDF "character locale" to some different value as the paragraph
2. format>clear direct formatting

Actual Results:
the new "character locale" is still there, all other CDF values are properly cleared 

Expected Results:
well, clear CDF


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Version: 7.2.2.2 / LibreOffice Community
Build ID: 02b2acce88a210515b4a5bb2e46cbfb63fe97d56
CPU threads: 4; OS: Linux 5.13; UI render: default; VCL: kf5 (cairo+xcb)
Locale: de-CH (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 1 Telesto 2021-10-13 17:44:14 UTC
@Mike
Clear DF doesn't - by definition - delete every piece of character DF; as far I know. And I'm lacking an overview of the full picture.. So you're likely better equipped to answer the OP request

[Or is there some need for dialog in some sense analog too Paste Special in Calc to have fine grained control?]
Comment 2 Mike Kaganski 2021-10-14 05:33:54 UTC
Yes, there are some explicit exceptions for Clear DF operation, this one being one of them. I assume this is perceived to be more user-friendly ...

I suppose that having a configuration (some options page, with checkboxes "clear this, that, and that" - like "Paste Special in Calc", only in options) would make sense. Personally I would definitely use that to maximize what Clear DF does.
Comment 3 Telesto 2021-10-14 07:06:33 UTC
(In reply to Mike Kaganski from comment #2)
> I suppose that having a configuration (some options page, with checkboxes
> "clear this, that, and that" - like "Paste Special in Calc", only in
> options) would make sense. Personally I would definitely use that to
> maximize what Clear DF does.

Let's see what the opinion of UX is..
Comment 4 Heiko Tietze 2021-10-18 11:22:23 UTC
Shift+Ctrl+M... what categories/options would such a dialog offer? I mean taking the Font tab includes both style (font weight) and language (locale). The alternative is to just purge everything without any choice.
Comment 5 Telesto 2021-10-18 12:15:16 UTC
(In reply to Heiko Tietze from comment #4)
> Shift+Ctrl+M... what categories/options would such a dialog offer? I mean
> taking the Font tab includes both style (font weight) and language (locale).
> The alternative is to just purge everything without any choice.

Well, I was think about listing everything what is what cleared by Clear Direct Formatting (like bold/unbold] and the other direct formatting excluded from Clear direct formatting, but belong to the group 'direct formatting'

[Not able to find nice list of everything which can be DF]

And well you could add extra's: "Clear Direct Formatting does - currently - not clear directly formatted bullets and numbering found in a paragraph.

But well this first through, without careful consideration :-). I struggle with visualizing the dialog..

--

Another route would be some character style with 'clear direct formatting behaviour' instead of applying a style. But also here no clue how this should work/if this workable at all.
Comment 6 Mike Kaganski 2021-10-18 13:03:48 UTC
(In reply to Telesto from comment #5)
> Well, I was think about listing everything what is what cleared by Clear
> Direct Formatting (like bold/unbold]

This part is no-go. Hundreds of them (see Style Inspector or Sevelopment tools), and that would make such configuration simply unusable.

If at all, only things that are usually excluded from Clear DF should appear in such configuration. And I'd say that a dialog is not useful here, only some option page similar to "Writer/Formatting Aids".
Comment 7 Heiko Tietze 2021-10-18 13:10:33 UTC
(In reply to Mike Kaganski from comment #6)
> If at all, only things that are usually excluded from Clear DF should appear
> in such configuration.

Can you make an overview of these attributes without too much effort?
Comment 8 Heiko Tietze 2021-10-21 12:49:43 UTC
The topic was on the agenda of the design meeting.

   + prefer an alternative command to clear all DF as it would be
     an endless subject of discussions of what or what not has
     to be cleared (Sascha)
   + better keep shortcuts simple without adding dialogs (Sascha)
   => w/o a complete list of attributes it makes no sense to 
      ponder over a dialog; better hard-clean the formatting

So ideally we start with a UNO command that clears all DF. And if needed the dialog could be added later.
Comment 9 Mike Kaganski 2023-05-31 06:46:20 UTC

*** This bug has been marked as a duplicate of bug 153970 ***