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

Adalbert Hanßen <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |UNCONFIRMED
     Ever confirmed|1                           |0

--- Comment #22 from Adalbert Hanßen <[email protected]> ---
(In reply to Heiko Tietze from comment #20)

> ...
> Smells like NAB, in particular to "we need a tool to manage" but perhaps you
> can submit better STR with what you expect.

Sorry, I overlooked the last sentence of you. Today I went into this issue
again with my last attachment
https://bugs.documentfoundation.org/attachment.cgi?id=179971.

I found out that you can reproduce it by going the end of any paragraph before
the headline “2022-05-06_Conclusion” in it.
    1. put the insertion pointer immediately before the paragraph mark
    2. then press Enter
    3. then start typing something.

You will observe that the font will be Arial, stemming from character style
(CS) “Character_Style_20”, the strange heirloom from Microsoft Windows in that
file. (The other paragraph don’t have this CS)

So the strange behavior is caused by LibreOffice transferring
    1. CS
    2. direct formatting (DF)
from before paragraph mark to the first character of a newly started paragraph.
The paragraph formatting (PS) order as specified for the above paragraph is
applied, but the character formatting does not seem to be followed due to this
transfer from CS and DF. (I have tested this with some examples and think this
is an inappropriate feature, because the general rule is to mainly use styles
and use DF as little as possible (in the manual it says “using styles means
that you shift the emphasis from what the text (or page, or other element)
looks like, to what the text is”).

I would rather expect that when a new paragraph is started, PS formatting is
applied, discarding any CS and DF formatting currently carried over from the
last character of the previous paragraph. At the very least, there should be an
option for LibreOffice to always behave this way, and on a newly installed
system it should default to it to avoid such questions and discussions as here
in the future.

Now I have understood the reason of all these formatting glitches. I looked up
https://books.libreoffice.org/en/GS73/GS7303-StylesAndTemplates.html#toc7 to
see, if this carrying over is documented there (I expect it to be documented
there, if it were really intended that way). Searching for the keywords “
enter” and “ return” I found nothing of that type.

1. BTW: Reading this chapter let me recognize the subchapter on “Fill Format
mode (Writer and Calc)” fro the first time. I did not know that and this is
really very useful in using styles.

2. BTW: The hierarchy of formatting DF precedes CS and CS precedes PS is not
described in the manual. Ana additional paragraph should be added one level
below “Types of styles in LibreOffice” in the Getting Started Guide:
“In LibreOfficeWriter the following hierarchy applies to formatting attributes:
* Direct formatting (DF) precedes all other formatting,
* Formatting with Character Style (CS) precedes formatting through Paragraph
Style (PS).”

If my suggestion is followed, two more sentences should be added:
“If a new Paragraph is started, all direct formatting and DF and CS are reset,
the newly assigned PS applies to the newly begun paragraph. If PS is applied to
an existing paragraph, any existing DF and CS remain unaltered, therefore all
existing text without DF and without CS (i.e. “No Character Style”) use the
character properties set forth in PS.”

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to