element-hq / element-hq/element-android

Chinese Pinyin Input not Working Correctly if Inline Composing Enabled

Open
#8,521 0 comments 0 reactions 0 assignees View on GitHub
A-Rich-Text-Editor O-Occasional S-Major T-Defect Z-Labs
Dominant language
Kotlin
Stars
3.7k
Forks
917
PR merge metrics
No merged PRs in 30d

Description

### Steps to reproduce

1. Install and enable Gboard.
2. Go to Gboard settings, Languages, Add keyboard, Chinese, Chinese (Simplified), then select Pinyin and DISABLE inline composing.
3. Go to Element for Android, type whatever you like using the Chinese keyboard.
4. Go to Gboard settings, Languages, Chinese (Simplified), then ENABLE inline composing.
5. Go to Element for Android, type some Chinese using the Chinese keyboard.
6. Move the cursor and type some Chinese.

### Outcome

https://github.com/vector-im/element-android/assets/109552167/fb92a252-ef0d-46c6-9e7e-88ba8871512b

#### What did you expect?
In Step 3, input was normal as desired (as shown between 0s to 15s in the video). Regardless of the cursor's position, Chinese characters could be typed accurately in the specific location. Note that the pinyin (the letters typed) would remain within Gboard until the desired Kanji was selected or the "enter" key was pressed.
#### What happened instead?
However, in Step 6, the issue was replicated (as observed between 26s to 44s in the video). Chinese characters could be typed normally only when the cursor was positioned at the end of the text. The pinyin would appear inside the chatbox and get replaced with the corresponding Kanji when selected in Gboard, demonstrating the inline composing feature. Unfortunately, if the cursor was moved anywhere forward, the input seemed to get interrupted once a letter was typed, and it became impossible to select the desired Kanji.

### Your phone model

_No response_

### Operating system version

_No response_

### Application version and app store

Element Version: 1.5.32 Olm Version: 3.2.12 Gboard Version: 12.9.20.521739039

### Homeserver

_No response_

### Will you send logs?

No

### Are you willing to provide a PR?

No

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.