[Libreoffice-ux-advise] [Bug 155494] Cursor goes beyond margins when typing spaces at the end of a line

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat May 27 18:31:26 UTC 2023


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

--- Comment #11 from Attila Szűcs <attila.szucs at collabora.com> ---
I think this bug report should be rethinked.. and maybe some smaller feature
request could be enought for you..

But it is a complex situation and many ideas could be problem for someone
else...
because this whole situation is a bit controversiar ... we want to be able to
hit more spaces, but we want to see as there would be no spaces there .. some
cases we want to be able to move into it.. some cases we don't.. we dont want
to break line because of them.. but if you put 1 letter in the middle, then
suddenly show the spoaces at next line, and change its behaviour...

there was 3 related ticket on bugzilla about this: tdf#43100 tdf#104683
tdf#12071

however... some could say... it is a rare case when someone want to put 10+
space at the end of the line... (even i dont know when/why someone want it,
sure some will do, just like i when i tested it :) )

The original problem (what i fixed) was a more common problem, that you was not
able to see how many spaces are at the end of the line... because sometimes we
mistakenly type 2 spaces.
For example at justified case, it does not even show 1 space .. because letters
was until the margo... and nothing was displayed after margo...

For some peoples, it was a critical bug, as they used 3. party tool, that was
made errors if there was extra spaces on the line end... They had to open it in
MS word to even check where are the errors... and we don't want to suggest
peoples to use MS word just because of this.. :)

So it had to be fixed... and it was not so simple to fix.. as the extra spaces
was not stored like other spaces.. you can check my gerrit, and see what is
SwHolePortion, and i had to make sure the layout will not change by this.

Once i diplayed the hidden spaces .. when you tried to delete some.. it was
very confusing that the cursor was not worked as in the middle of the line...
it moved differently and showed false position .. 
So i made the cursor to work just like in the middle of the line. 
Just like MS Word do.

i did not handled every special cases.. maybe we should crop cursor position at
the page end.. but we could think about columns end.. and other cases like..
when there are a hole portion in the middle of the line... (if there is an
image that cut a hole into some lines.. )

maybe the "writing a number in then end of the line" could be good too.. but
that is again a complex feature (not so easy to implement).. how to display it,
so you will not confuse it with real text?.. where to put, when text is
centered? at the margin, or right next to text?..  and what about the cursor...
if someone want to cut 4 space to the next line from the 10... should he be
able to do it.. or should we say, no.. you will have to delete the 4 from here,
and insert the 4 space there...

Some peoples even suggested to not have any spaces after the margin, but at
justified mode, the spaces at the end of the line, must be after the margin...
as letters are paced from left to right margins... the space between the last
word of the 1. line, and the first word of the 2. line... must be outside of
the  margins..

I think this kind of ideas should be designed deeply, and carefully.

So in short: I would suggest for you to ask fix only for what annoy you now..
for example to not show cursor after the page end... or crop cursor visible
position to the page end... or someting like that... i dont promise to fix
that.. as i have other things to do now..  but who knows.. :)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Libreoffice-ux-advise mailing list