DocumentServer icon indicating copy to clipboard operation
DocumentServer copied to clipboard

Erratic caret movement over characters containing Niqqud (Hebrew vowel diacritics)

Open WiseFerret opened this issue 1 year ago • 3 comments

This issue is unique.

  • [x] I have used the search tool and did not find an issue describing my bug.

Operating System

Linux (DEB package)

Version information

9.0.0.0-172

Expected Behavior

Niqqud signs are vowel diacritics which are typed over Hebrew carachters, which mark consonants only. Every normal character can carry several Niqqud signs. They can come under the character, inside it, above it, at its center, at its side, etc. When I type a niqqud sign after a regular Hebrew character, I expect the caret to remain after the regular character and not move. When I move the caret with the left arrow keys over a character that already contains a Niqqud signs, I expect one of the following behaviours:

  1. (LibreOffice behaviour - simple and preferable) after I press the left arrow key once, the caret moves to the left of the character. At this point, when I press backspace, the last Niqqud sign I added will be deleted, and the caret will remain to the left of the character. After all Niqqud signs are deleted, the next backspace deletes the character itself.
  2. (MS Office way - complicated) after I press the left arrow key, the caret advances visually to the left over the character. It will advance to the disatance of w/n+1, where "w" is the width of the character and "n" is the number of vowel signs it currently contains. If I press backspace at that point, the relevant niqqud sign is deleted and the caret place is updated according to the formula. Note that its location over the character is independent of the location of the actual niqqud signs.

Both methods ensure that when I press the arrow key to the left, the caret will always move to the left or stay in place, but will never move to the right (and vice versa).

Actual Behavior

When I type Niqqud signs or move the caret in one direction over a word that contains Niqqud signs, the caret jumps erratically to the left and to the right according to the actual location of the Niqqud sign inside the character

Reproduction Steps

  1. Copy the following word to Livreoffice: הַמשֻׁשֶּה
  2. ּSelect it and set the directionality to RTL
  3. Press Home to move the caret to the right of the word
  4. Press the left arrow key several times
  5. Watch the caret jump to the left and to the right

Additional information

This issue makes the work on long texts which contain Niqqud very confusing and uncomfortable. I keep Libreoffice for this reason. I believe this issue affects vowel signs in Arabic as well.

WiseFerret avatar Jul 02 '25 22:07 WiseFerret

Hello, @WiseFerret ! Thank you for your detailed report regarding. I have tested the described behavior in versions 9.0.0 and 9.0.3 on Windows 11 and Kubuntu 24.04, and the issue does not reproduce in these versions — the caret movement corresponds to the expected behavior described in point 1 (LibreOffice behavior).

To help us investigate this problem further and ensure we can reproduce the issue on our end, could you please provide a video demonstration of the erratic caret movement on version 9.0.3?

The video should include the following steps:

  1. Opening a new document in ONLYOFFICE Document Editor
  2. Copying the test word הַמשֻׁשֶּה
  3. Setting the directionality to RTL
  4. Moving the caret to the right of the word using the Home key
  5. Pressing the left arrow key several times to show the erratic movement

We appreciate your cooperation in resolving this issue.

ElenaMaaya avatar Jul 15 '25 11:07 ElenaMaaya

You are correct, I cannot recreate this too. However, a similar problem exists when actually typing Niqqud. In this case, the caret jumps back when typing the first Niqqud sign and then advances partially over the character. It should just remain to the left of the character. I attach a clip.[

https://github.com/user-attachments/assets/8662fc9d-c4c9-4843-8db6-acccc2f4c492

](url)

I changed the issue title accordingly.

WiseFerret avatar Jul 15 '25 23:07 WiseFerret

Hello @WiseFerret ! Thank you for report! I can confirm that the problem exists. I created ticket 76153 with your issue. Problem reproduces in Document Server.

ElenaMaaya avatar Jul 29 '25 14:07 ElenaMaaya