Bug 144878 - Space character replaced with negative space after a digit as the first character RTL line
Summary: Space character replaced with negative space after a digit as the first chara...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.2.1.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: RTL
  Show dependency treegraph
 
Reported: 2021-10-02 17:17 UTC by Eyal Rozenberg
Modified: 2024-08-03 09:15 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Spliced screenshot of the first line without and with the bug manifesting (2.01 KB, image/png)
2021-10-02 17:17 UTC, Eyal Rozenberg
Details
Spliced screenshot - with character highlighting (2.97 KB, image/png)
2021-10-02 17:51 UTC, Eyal Rozenberg
Details
A document with the bug manifesting (15.93 KB, application/vnd.oasis.opendocument.text)
2021-11-05 11:05 UTC, Eyal Rozenberg
Details
A document with the bug manifesting + highlighting (16.00 KB, application/vnd.oasis.opendocument.text)
2021-11-05 11:13 UTC, Eyal Rozenberg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eyal Rozenberg 2021-10-02 17:17:32 UTC
Created attachment 175464 [details]
Spliced screenshot of the first line without and with the bug manifesting

I'm working on LO Writer document - a two-page formal letter in Hebrew (so, a fully RTL document). The first line of text in this letter is a date line, beginning with a day number; but for the purpose of this example I've replaced it with three characters: 3, then space, then 2.

Now, when I edit a line at the bottom of the second and last page (not even the last line), and scroll back up, the 3 and the 2 are bunched together with each other, as though there was a little "negative space" between them. When I make any edit to that first line - e.g. entering any character, even at the beginning or the end of the line - the spacing corrects itself.

Unfortunately, I don't have reproduction steps from scratch right now, and I can't share my document because it's personal. Will try to work on anonymizing it.

Version: 7.2.1.2 (x64) / LibreOffice Community
Build ID: 87b77fad49947c1441b67c559c339af8f3517e22
CPU threads: 12; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: en-US (en_IL); UI: en-US
Comment 1 Eyal Rozenberg 2021-10-02 17:48:24 UTC
I should mention this also happens if the first line left-aligned rather than right-aligned. It doesn't seem to happen to RTL characters after the digit-and-space. It _does_ happen with a digit, a space, and then a non-digit RTL character.
Comment 2 Eyal Rozenberg 2021-10-02 17:51:08 UTC
Created attachment 175465 [details]
Spliced screenshot - with character highlighting

Adding a similar spliced (partial) screenshot, but this time, I've set highlight colors for the 3 (green) the space (red) and the 2 (yellow).

You will notice that when the bug manifests, the highlit areas have the same widths (and height) - but now the '3' is just _missing_.
Comment 3 Dieter 2021-10-22 07:27:53 UTC
(In reply to Eyal Rozenberg from comment #0)
> Unfortunately, I don't have reproduction steps from scratch right now, and I
> can't share my document because it's personal. Will try to work on
> anonymizing it.

Steps to reproduce and a sample document would be helpful here. So let's change status to NEEDINFO
Comment 4 Eyal Rozenberg 2021-11-05 11:05:04 UTC
Created attachment 176117 [details]
A document with the bug manifesting

Here's a document with which the bug manifests. Upon opening the document, the space between the 3 and נובמבר on the first line is fine, but when I click on any other line in the document, the 3 "sticks" to the נובמבר.a
Comment 5 Eyal Rozenberg 2021-11-05 11:13:57 UTC
Created attachment 176118 [details]
A document with the bug manifesting + highlighting

Same document, but with green-red-yellow highlighting of the glyphs of interest.
Comment 6 QA Administrators 2021-11-06 03:56:03 UTC Comment hidden (obsolete)
Comment 7 Buovjaga 2022-11-09 15:44:41 UTC
(In reply to Eyal Rozenberg from comment #4)
> Created attachment 176117 [details]
> A document with the bug manifesting
> 
> Here's a document with which the bug manifests. Upon opening the document,
> the space between the 3 and נובמבר on the first line is fine, but when I
> click on any other line in the document, the 3 "sticks" to the נובמבר.a

Not reproduced.

Arch Linux 64-bit
Version: 7.5.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: b57307e8f3553fcb292c9c11fcf58bcef3a6cb3c
CPU threads: 8; OS: Linux 6.0; UI render: default; VCL: gtk3
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 8 November 2022
Comment 8 Eyal Rozenberg 2022-11-15 14:26:36 UTC
(In reply to Buovjaga from comment #7)
I can also no longer reproduce, so closing as WORKSFORME. Will reopen if I see this again.