Bug 166270 - Code completion misbehaves when typing the Arabic character "ز" (which shares the same key position as the period character ".") .
Summary: Code completion misbehaves when typing the Arabic character "ز" (which shares...
Status: ASSIGNED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
24.8.6.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Devansh Varshney
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-20 23:00 UTC by Mohamed Ali
Modified: 2025-05-24 17:38 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
wrong code completion (14.28 KB, image/png)
2025-05-15 15:58 UTC, Mohamed Ali
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mohamed Ali 2025-04-20 23:00:18 UTC
Description:
In the current version of LibreOffice, when typing the Arabic character "ز" (which is positioned on the same key as the period character "."), code completion is incorrectly triggered. This issue arises because LibreOffice does not differentiate between the period and other characters on the same key, like "ز". This causes unexpected behavior.

Steps to Reproduce:
1.Open LibreOffice and navigate to the code editor
2.Type "ز" in the editor.
3.Observe that code completion is triggered, even though the character is not a period.

Actual Results:
Code completion is triggered when typing "ز", incorrectly interpreting it as the period character.

Expected Results:
 Code completion should properly distinguish between the period character "." and other characters like "ز". It should not trigger code completion when typing "ز" as it does with the period.


Reproducible: Always


User Profile Reset: No

Additional Info:
.
Comment 1 Tasneem 2025-05-15 14:36:14 UTC
Thank you for reporting the bug. I can not reproduce the bug in

Version: 25.2.3.2 (X86_64) / LibreOffice Community
Build ID: bbb074479178df812d175f709636b368952c2ce3
CPU threads: 12; OS: Windows 11 X86_64 (10.0 build 26100); UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

This does not trigger code completion for me, rather it types the ز for me correctly.
Comment 2 Mohamed Ali 2025-05-15 15:58:12 UTC
Created attachment 200832 [details]
wrong code completion

When I write it, it treats it as if I typed a period (.) and shows the full suggestions.
Comment 3 Mohamed Ali 2025-05-15 16:00:26 UTC
(In reply to Tasneem from comment #1)
> Thank you for reporting the bug. I can not reproduce the bug in
> 
> Version: 25.2.3.2 (X86_64) / LibreOffice Community
> Build ID: bbb074479178df812d175f709636b368952c2ce3
> CPU threads: 12; OS: Windows 11 X86_64 (10.0 build 26100); UI render:
> Skia/Vulkan; VCL: win
> Locale: en-US (en_US); UI: en-US
> Calc: CL threaded
> 
> This does not trigger code completion for me, rather it types the ز for me
> correctly.

I have added an attachment that shows this.
Comment 4 Mohamed Ali 2025-05-15 20:03:41 UTC
Version: 24.8.7.2 (X86_64) / LibreOffice Community
Build ID: f4f281f562fb585d46b0af5755dfe1eb6adc047f
CPU threads: 16; OS: Linux 6.11; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: CL threaded
Comment 5 Devansh Varshney 2025-05-15 20:21:32 UTC
> 
> I have added an attachment that shows this.


Let's break down the key differences between your setup and Tasneem's:

Feature             | Your Setup (Bug Present)   | Tasneem's Setup (Bug NOT Present)
--------------------|----------------------------|-----------------------------------
LibreOffice Ver.    | 24.8.7.2 (Community)        | 25.2.3.2 (Community)
OS                  | Linux 6.11                  | Windows 11 X86_64
VCL Backend         | gtk3                        | win
UI Render           | default                     | Skia/Vulkan
Locale & UI Lang    | en-US (en_US.UTF-8)         | en-US (en_US)
Keyboard Layout     | Arabic (Egypt)              | (Assumed an Arabic layout, but not specified)
CPU threads         | 16                          | 12


Additional environment details:

- Method to switch layouts: Super + Space


Potential Cause:

- Given these differences, the issue seems to be specific to the Linux environment using the GTK3 VCL backend, possibly in interaction with the "Arabic (Egypt)" keyboard layout where "ز" shares a key with "."?

- It might also be specific to this LO version branch (24.8.x) on GTK3, and potentially resolved or not present in the newer 25.2.x branch or on other VCL backends like Windows?

I will look into this in morning.
Comment 6 Buovjaga 2025-05-16 04:51:05 UTC
Mohamed: did you test with your own build to get the latest result? When reporting bugs, remember to mark the operating system field correctly, so it is not misleading.
Comment 7 Mohamed Ali 2025-05-16 17:06:29 UTC
(In reply to Buovjaga from comment #6)
> Mohamed: did you test with your own build to get the latest result? When
> reporting bugs, remember to mark the operating system field correctly, so it
> is not misleading.

i also tested with 

Version: 25.8.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 7236de3ca25fb34abda5d15b4243612772e7973c
CPU threads: 16; OS: Linux 6.11; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: CL threaded

it's the same thing