[Libreoffice-bugs] [Bug 140818] Default Character Style should be named "No Character Style" and all builtin character styles should inherit from "No Character Style", and "- None -" should be removed from Inherit From dropdown list

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Mar 5 22:40:52 UTC 2021


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

--- Comment #3 from Regina Henschel <rb.henschel at t-online.de> ---
(In reply to sdc.blanco from comment #2)
> > "Default Character Style" is not a style
> So maybe it was a mistake (or unfortunate) that this entry in the Styles
> sidebar was renamed to "Default Character Style". From your description, it
> sounds like "No Character Style" might better express its "nature", which
> might also address your critique of the current UI.
> 
> Similarly, in the Styles menu, the "Default Character" command should be
> renamed to something like "No Character Style"?  (comparable to the new "No
> List" command for Lists).

Yes, the term "No Character Style" would be a lot better.

> 
> > LibreOffice writes a style "Standard" for family "paragraph" which is used
> > as root for all predefined paragraph styles. A similar style does not exist
> > for family "text".
> Ok.  Just to check then about the "Standard" button in the Character Style
> dialog (which is now named "Set to Parent").
> 
> 1. It is still possible to make a Character Style that "inherits from"
> another character style.  Pressing the "Set to Parent" button in that case
> does (and should) cause the tab in view to revert to the settings for the
> parent.  (i.e., same behavior as a paragraph style).

Yes, that is the purpose of that button. But "Set to Parent" does not exactly
describe, what this button does, see below.

> 
> 2. But what about Character Styles that have 'None' as their 'Inherit From'
> and "Set to Parent" is pushed? Won't that have the same effect as a
> Character Style that has "Default Character Style" as its 'Inherit From'? 
> That is, all character-related settings are removed  (except for Font Type
> and Font Size, which are set in the Writer Options (for Basic Fonts).

You cannot have "Default Character Style" as parent, because it is not a style.

A character, which has no character style applied, uses the character related
settings of that paragraph, to which the character belongs. That is the reason,
why a paragraph style has the tabs "Font" and "Font Effects" at all.

The Writer Options are bound to the paragraph style "Default Paragraph Style".
When you change the font in the Writer Options it will change in the "Default
Paragraph Style" and vs.

> 
> If this analysis is correct, then:
> 
> A. "Default Character Style" should be called "No Character Style"

Agree.

> B. Builtin Character Styles should have "No Character Style" as their
> "Inherit From" instead of "- None -".

No. The list, which will contain "No Character Style", refers to the object,
which gets a style applied, or in this case, which gets the style erased. But
the "Inherit From" refers to the definition of a style itself. That are
different contexts.

> C. The "- None -" option should be removed from the 'Inherit From' choices

No. It indicates, that the style has no parent style. That option is available
for all styles, which allow a hierarchy, and has always the same meaning.

> 
> Then it might be possible and meaningful to use the same tooltip for the
> "Set to Parent" button in both Paragraph Style and Character Style.

The button does in both cases the same. It removes the properties in that
dialog tab from the set of properties, which get a value by this style. The
result can be seen in the Organizer tab.

If a property has no value in the style, which is applied to an object, then
LibreOffice needs to get the value from somewhere else. The mechanism for that
is described in detail in the standard.
https://docs.oasis-open.org/office/OpenDocument/v1.3/cs02/part3-schema/OpenDocument-v1.3-cs02-part3-schema.html#__RefHeading__1416274_253892949

The problem is, to explain the inheritance mechanism to the user. And it is
obviously difficult to explain, why it is useful, that the character styles are
not inherit from a common root style, but the paragraph styles have a common
root style.

-- 
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/20210305/d5af01e4/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list