Bug 113144 - Mouse selection of a grapheme cluster excludes diacritics in a different span
Summary: Mouse selection of a grapheme cluster excludes diacritics in a different span
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
6.0.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Selection Diacritics
  Show dependency treegraph
 
Reported: 2017-10-15 22:09 UTC by Yousuf Philips (jay) (retired)
Modified: 2024-11-18 15:34 UTC (History)
3 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 Yousuf Philips (jay) (retired) 2017-10-15 22:09:41 UTC
From bug 113134 comment 15, "when you select the Heh by keyboard, it will also select the Mapiq, which will result in the character appearing correctly when changing the font, but if you select the Heh by mouse, it will not select the Mapiq, resulting in no change of the Mapiq when changing the font.

See screencast [attachment 137001 [details]] from 00:36.

This didnt happen with the arabic diacritics i tried, and dont know all the hebrew ones that are available to test, so i'll leave it to Eyal and Lior to see if it is an isolated hebrew diacritic or does it happen to all.
Comment 1 Omer Zak 2017-11-20 22:21:29 UTC
Reproduced in:

Version: 6.0.0.0.alpha1+
Build ID: 9050854c35c389466923f0224a36572d36cd471a
CPU threads: 8; OS: Linux 4.9; UI render: default; VCL: gtk3; 
Locale: en-US (en_US.utf8); Calc: group

OS: Debian 64bit Stretch (Debian 9.2, with some backported packages)


In some experiments, both character and Mapiq were selected by mouse, yielding correct placement of the Mapiq when font was changed. In other experiments, only the character was selected and the reported behavior was seen.
Comment 2 QA Administrators 2018-11-21 03:44:40 UTC Comment hidden (obsolete)
Comment 3 QA Administrators 2020-11-21 04:22:27 UTC Comment hidden (obsolete)
Comment 4 Eyal Rozenberg 2020-11-21 09:06:39 UTC
This bug still manifests with build:

Version: 7.0.3.1
Build ID: d7547858d014d4cf69878db179d326fc3483e082
CPU threads: 4; OS: Linux 5.2; UI render: default; VCL: gtk3
Locale: he-IL (en_IL); UI: en-US
Calc: threaded

Reproduction instructions:

1. Create a new document
2. Be in an RTL paragraph
3. Insert the character ה (Hebrew letter He) - either by typing it in or using Insert Special Character
4. Use the Insert Special Character to insert a Hebrew Dagesh-or-Mapiq (U+5BC)
5. The Dagesh/Mapiq point will appear to the side of the He, not within it (this is bug 113134)
6. Select the He with the mouse.
7. Change the font family to another Hebrew family (e.g. from David CLM to Frank Ruehel CLM)
8. The Dagesh/Mapiq point will stay to the side of the He, not within it
9. Select the He with the keyboard
10. Change the Hebrew font back (e.g. from Frank Ruehel CLM to David CM)
11. The Dagesh/Mapiq point will now be drawn within the letter He
Comment 5 QA Administrators 2023-08-11 03:05:26 UTC Comment hidden (obsolete)
Comment 6 Eyal Rozenberg 2023-08-11 15:34:24 UTC
Reproduced with:

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 5cd9de202765e243e41416802f3e4486b8a96f16
CPU threads: 4; OS: Linux 6.1; UI render: default; VCL: gtk3
Locale: he-IL (en_IL); UI: en-US
Comment 7 QA Administrators 2023-08-12 03:05:29 UTC Comment hidden (obsolete)
Comment 8 Eyal Rozenberg 2023-10-02 19:39:40 UTC
Still seeing this (as well as  bug 113134) with:


Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: f8e591ab9182e0a61c4ae5b8f77b166fcaeaa877
CPU threads: 4; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: he-IL (en_IL); UI: en-US
Comment 9 Jonathan Clark 2024-11-18 14:57:54 UTC
When using the mouse to select text from beginning to end, if the selection ends on a grapheme cluster that is split across multiple spans, the selection will end at the span containing the base character. Diacritics outside of that span are excluded from the selection.

Selecting with the keyboard works as expected.

This bug affects all languages, but the specific visual presentation may vary depending on language, font, and LO version. To reproduce this bug, you should use a language/font that has separate glyphs for characters and diacritics. The fixes for bug 61444 and bug 124116 mitigated the diacritic placement issues from the original report, but the style mismatch should still be visible. The above instructions use Insert Special Chars to create a split grapheme cluster, and will not work if bug 155274 is fixed.
Comment 10 Eyal Rozenberg 2024-11-18 15:34:19 UTC
(In reply to Jonathan Clark from comment #9)
> and will not work if bug 155274 is fixed.

Can they be made to work if the special chars are inserted separately and at a distance, formatted, then have the interposing chracters/glyphs removed?