Bug 169035 - Change all Left default text alignments - hard-coded and in templates - to Start
Summary: Change all Left default text alignments - hard-coded and in templates - to Start
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on: 113850
Blocks: Start-and-End
  Show dependency treegraph
 
Reported: 2025-10-24 13:33 UTC by Eyal Rozenberg
Modified: 2025-10-27 11:36 UTC (History)
4 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 Eyal Rozenberg 2025-10-24 13:33:40 UTC
With the fix for bug 118350, LibreOffice now supports the "Start" and "End" text alignment settings.

In almost all cases, people want to align text to the start-of-the-paragraph, not to the left edge of it as such; and to the end-of-the-paragraph, rather than to the right edge of it. For people writing left-to-right, those are effectively the same thing, most of the time. But when switching the direction of the paragraph, right-and-left remain the same, but start-and-end get flipped; this is where the distinction matter - and the correct choice should be made.

That choice is start-alignment rather than left-alignment, and this is what we should default to, everywhere (except where we explicitly want things like centering etc.)

That means, in particular, making that change in all of the document templates we bundle, as well as wherever in the code we hard-code a fallback or default value for text alignment in paragraph.

Similarly, where we currently align text to the Right, we may want to be aligning to the End. Example: Some heading paragraphs in formal letters are often right-aligned, e.g. date or address (although, arguably, they could be left-aligned but indented far towards the right edge of an LTR page); these alignments can be replaced with "align End".



Of course, it is problematic to make this change before our UI properly supports this value, so see also bug 165507.
Comment 1 m_a_riosv 2025-10-24 22:59:58 UTC
How do you know what people want, or are you the people?
Comment 2 Eyal Rozenberg 2025-10-25 00:06:48 UTC
(In reply to m_a_riosv from comment #1)
> How do you know what people want, or are you the people?

Same way I know people want the menubar at the top of the window rather than on the bottom: Nobody has ever suggested otherwise and every argument I can think of supports it.

(Actually, we've been writing ODFs with alignment start and alignment end anyways; I wonder if some of the default templates don't already have that already.)

But - you're right in that, while obvious, such a change requires a wider exposure before it is made. So let's start with a design meeting about it.

If you have an argument against this change - by all means, make it.
Comment 3 V Stuart Foote 2025-10-25 01:09:18 UTC
This is reasonable, as we can now support Start/End in both RTL & LTR direction paragraphs, and still maintain legacy Left/Right handling, moving templates to the Start/End format is the way forward for newly created documents.

There are a lot, but the mods should be negligible. With no impact on opening existing documents, only on edit and save.

+1
Comment 4 Heiko Tietze 2025-10-27 08:55:23 UTC
Ideally we amend Start with what that means actually. Like: "Start (Left)" for LTR and "Start (Right)" for RTL. We had a similar discussion at bug 147814. And others, IIRC.

In general, "Change all *" is not a good bug report as no single patch will fix it. Would be better to track this as a META ticket for "Labeling for text direction", which then could also cover other topics than just alignment. Well, bug 131192 is about this.

My take: INVALID.
Comment 5 Eyal Rozenberg 2025-10-27 11:21:36 UTC
(In reply to Heiko Tietze from comment #4)
> Ideally we amend Start with what that means actually. Like: "Start (Left)"
> for LTR and "Start (Right)" for RTL. We had a similar discussion at bug
> 147814. And others, IIRC.

Heiko, this bug is not about the labels, but rather about the values themselves: The fo:text-align attribute.

The possible values for fo:text-align are listed here:
 
https://www.w3.org/TR/2001/REC-xsl-20011015/slice7.html#text-align

and the proposal is to change from "left" to "start" and from "right" to "end", in:

1. The style definitions in the template files that we bundle
2. In places where the code chooses a fallback default value for alignment. 

it's true that we might miss somewhere from category (2.) but I'm sure our developers can make the list of the locations they are aware of, and that would either be all or almost-all of it.
Comment 6 Heiko Tietze 2025-10-27 11:31:36 UTC
(In reply to Eyal Rozenberg from comment #5)
> ... the proposal is to change from "left" to "start" and from "right" to
> "end", in:
> 
> 1. The style definitions in the template files that we bundle
+1

> 2. In places where the code chooses a fallback default value for alignment. 
-1, as a general rule, since it potentially breaks existing document.