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

--- Comment #3 from ajlittoz <[email protected]> ---
(In reply to Dieter from comment #2)
> But I'm not sure about expected result and so I'm not sure, if it is a bug
> or not. If you a tab stop at 1cm it works.
> 
> Expected result:
> ???

Layout in Writer is based on a box model similar to the one for HTML.
Proceeding outwards, you have:
- a rectangle for paragraph text
- padding space around it
- a border with or without shadow
- "margins" around the border named indents at left and right and spacing above
and below

In my understanding of "typography", first line indent should apply on the text
rectangle. The fact it is named 1st line INDENT makes me fear it is applied on
the margins level.

>From experiment, it looks like indents (before and after) are first taken into
consideration. They are then reported in the ruler. This defines the basic text
rectangle. The left and right limits are reported in the ruler. If there is a
negative first line indent, this shifts the left (in LTR mode) border limit but
does not change the basic text rectangle as far as lines 2+ are concerned.

After this first step, padding space is used to position text inside the
paragraph rectangle. However padding space does not modify the marks in the
ruler, in particular, it does not change tab stops which are used with their
"absolute coordinates", not considering the effect of padding.

When you change before-text indent, tab stops are recomputed so that they keep
their relative position to left indent, clearly indicating that they were
intended to be relative to paragraph left indent. This is what users generally
expect.

But since padding results in shifting the position where paragraph text will be
set, the same shift should also be applied so that a padded paragraph keeps the
same relative layout as a non-padded paragraph.

Shifting the markers in the horizontal ruler to report an existing padding
might confuse seriously users (s/he defined a 0cm left indent and the mark does
not appear on the 0 graduation), then the 0-origin might be offset instead by
the value of the padding space. The case of the right (again in LTR) indent
mark is different as you don't specify a paragraph width and the position is
computed. However some means should be devised to provide padding information
to avoid a "surprise" seeing the mark not aligned on text limit.

IMHO the problem boils down to not offsetting tab stops the same way as
effective paragraph text limits are offset.

But as I mention above, to avoid user confusion some means must be found to
indicate the existence of padding in the ruler.

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

Reply via email to