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

            Bug ID: 169562
           Summary: Autocorrect does not trigger consistently when using
                    certain IBus keyboard layouts
           Product: LibreOffice
           Version: 3.3.0 release
          Hardware: All
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Description:
This appears to be a Linux-specific issue, confirmed on both Ubuntu and Fedora.
Certain IBus keyboard layouts are not fully compatible with the autocorrect
functionality for their respective languages.


Steps to Reproduce:
1. Install the Marathi spell-checker extension for LibreOffice:
https://extensions.libreoffice.org/en/extensions/show/marathi-spellchecker
2. Install the Gamabhana package or the krutidev.mim file:
https://github.com/shantanuo/gamabhana/blob/main/usr/share/m17n/mr-krutidev.mim
3. Select the Krutidev keyboard layout and type a few words.
You will observe that autocorrect is triggered only in selected cases.

Actual Results:
When typing the word खावून using the Krutidev keyboard and pressing space,
autocorrect does not activate. (Key sequence: [kkowu → खावून)

However, when typing खावून चं and pressing space, autocorrect is triggered.
(Key sequence: [kkowu pa → खावून चं  → खावूनचं)

Expected Results:
The word खावून does not get autocorrected to खाऊन, but the phrase खावून चं 
(with a
space) gets corrected to खावूनचं (without the space). Autocorrect should work in
both cases and return खाऊनचं


Reproducible: Always


User Profile Reset: Yes

Additional Info:
It appears that when the first word ends with the character corresponding to
"u", LibreOffice assumes the user is still composing the word, so it does not
commit the text and therefore does not apply autocorrect. In contrast, when the
second word ends with the character "a", LibreOffice considers the composition
complete and applies autocorrect upon pressing space.

This behavior was verified using regular-expression checks in the
mr-krutidev.mim file. The pattern a[^"] produced zero matches, while u[^"]
produced 19 matches. This suggests that certain sequences ending with "u"
remain in an uncommitted state, preventing autocorrect from being applied when
typing specific words.

This issue is not limited to the Krutidev layout. Other IBus layouts-such as
Hindi (ITRANS) - produce the same inconsistent behavior with LibreOffice
autocorrect. This suggests a broader compatibility or text-commit issue between
IBus and LibreOffice’s input handling.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to