Skip to content

Lỗi không thay thế ký tự trước trên Wayland (Hyprland) — chỉ hoạt động đúng ở Preedit mode #28

@Baron-23

Description

@Baron-23

Mô tả lỗi

Khi sử dụng fcitx5-lotus để gõ tiếng Việt theo kiểu Telex trên Wayland (Hyprland):

Gõ ar → kết quả là aả

Kết quả mong muốn: ả

Tức là ký tự trước đó không bị thay thế, mà engine lại chèn thêm ký tự đã ghép dấu phía sau.

Lỗi xảy ra ổn định, không phải ngẫu nhiên.

Ảnh hưởng theo chế độ (Mode)

Trong phần Chế độ, kết quả như sau:

✅ Preedit → hoạt động đúng (không bị lỗi)

❌ Uinput (Smooth) → bị lỗi aả

❌ Uinput (Slow) → bị lỗi

❌ Uinput (Hardcore) → bị lỗi

❌ Surrounding Text → bị lỗi không gõ được dấu

Tức là chỉ duy nhất Preedit mode hoạt động đúng, tất cả các mode còn lại đều lỗi

Các bước tái hiện

  1. Khởi động vào phiên Wayland (Hyprland)

  2. Chọn input method lotus.

  3. Đặt chế độ thành:

Uinput (Smooth) hoặc

Uinput (Slow) hoặc

Uinput (Hardcore) hoặc

Surrounding Text

  1. Mở một ứng dụng bất kỳ (ví dụ: Kitty Firefox, OnlyOffice…).

Kết quả mong đợi

a + r → ả

a + s → á

Các dấu Telex phải chỉnh sửa ký tự trước tại chỗ (in-place replacement)

Kết quả thực tế

Kết quả hiển thị:
a + r → aả
a + s → aá

Phiên bản fcitx5-lotus

1.0.0-1

Cách cài đặt

AUR (fcitx5-lotus-bin)

Hệ điều hành / Distro

CachyOS, Kernel: 6.19.3-cachyos

Môi trường Desktop

Hyprland

Diagnose

#System Info
Linux 6.19.3-2-cachyos x86_64 GNU/Linux
Distribution: CachyOS (rolling, Arch-based)#
XDG_SESSION_TYPE=wayland
Bash 5.3.9


#Environment
DISPLAY=':0'
WAYLAND_DISPLAY='wayland-1'


#Keyboard Layout
xkb_symbols { include "pc+us(colemak_dh_wide)+inet(evdev)" };


#Locale
LANG=en_US.UTF-8
LC_NUMERIC=vi_VN
LC_TIME=vi_VN
LC_MONETARY=vi_VNFcitx State
Fcitx version: 5.1.17
fcitx5 executable: /usr/bin/fcitx5
fcitx5-remote works
DBus name org.fcitx.Fcitx5 owned correctly


#Qt
QT_IM_MODULE=fcitx

Qt5 immodule working

Qt6 immodule working (Wayland platform)

Qt4 immodule not found


#GTK
GTK_IM_MODULE=fcitx
GTK2

gtk2 installed

fcitx5 immodule NOT found

GTK3

fcitx5 immodule found and cached

32-bit immodule missing in cache

GTK4

immodule present


#Enabled Addons (24)

Classic UI 5.1.17

DBus + DBus Frontend

Wayland + Wayland IM frontend

XCB + XIM frontend

IBus frontend

Fcitx4 frontend

Lotus Wrapper 1.0.0

Unikey Wrapper 5.1.9

Keyboard

Status Notifier

Spell

Emoji

etc.

All addon libraries found.


#Input Method Profile
Default Layout = us-colemak_dh_wide
Default IM = lotus
Items:
 - keyboard-us-colemak_dh_wide
 - lotus


#Crash Log

Fcitx 5.1.17 -- Signal 11 (Segmentation fault)

Backtrace:

/usr/lib/fcitx5/libunikey.so
/usr/lib/fcitx5/libunikey.so
/usr/lib/libFcitx5Core.so.7
/usr/lib/fcitx5/libwaylandim.so
/usr/lib/libwayland-client.so.0
/usr/lib/libsystemd.so.0

Thông tin bổ sung

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions