[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
Sat Mar 6 23:35:07 UTC 2021


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

--- Comment #7 from sdc.blanco at youmail.dk ---
(In reply to Regina Henschel from comment #6)
Thanks again for the detailed example. 

> > When "Inherit From" is "None" then values specified in "Contained" are
> > removed.
> 
> No, see style RedBold. It has "None" but still defines values for the font
> color.
Actually I think I am right here.  Edit "RedBold" CS, go to Font Effects tab
and press "Standard". Font Color becomes Automatic (and Light Red no longer
appears in Contained). Similarly, on the "Font" tab, press "Standard" and Font
Style changes to "Regular".  If you do both actions, then you will see that
Contains becomes empty for "RedBold" -- which is what my proposal says.

I also tried "Standard" on the "Borders" tab for "RedBoldAndBorder". I believe
it should inherit "RedBold" borders value, but I was not surprised that it did
not work because of bug 136339 (for Area and Highlighting).  (I thought there
was also a bug report for Borders, but I could not find it, if it exists).

Because "Standard" only applies to a tab, maybe I should modify the formulation
to:
   When "Inherit From" is "None" then any values on this tab, which are
   specified in "Contained" are removed.


fwiw, I studied 16.2 <style:style> carefully before making my proposal, which
was motivated by the logic described in 16.2 <style:style>.

But I am happy that your detailed example is consistent with my auto-didactic
understanding, and also that my tooltip proposal "survived" the first empirical
challenge, presented by "RedBold".

But in this case, when the logic is specified, it seems better to follow that,
rather than work empirically (especially given the bugs). 

My reasoning for character styles is that they are not applied to paragraphs
(because they are style definitions), so they will always end up with "none"
for paragraphs. But if paragraph styles do not define a property, then "an
implementation-dependent value is used."  Here I admit that I trusted/guessed
that the implemented values for Character would match the implemented values
for Paragraph at the "bottom". 

And was wondering if it would be better if LO used a <style:default-style> for
text family, which is permitted, but inspection of an LO .odt file indicates
that LO does not use it.

> It is indeed a challenge, to describe this behavior in tooltips and to use
> adequate labels.
The goal is only to describe accurately what happens when Standard is pressed
(independently of whether it communicates "why").

-- 
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/20210306/163130ff/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list