Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] <title>Chinese input method problem #97

Open
1 task done
zhangliuda opened this issue Jan 12, 2025 · 3 comments
Open
1 task done

[BUG] <title>Chinese input method problem #97

zhangliuda opened this issue Jan 12, 2025 · 3 comments

Comments

@zhangliuda
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I am using the Obsidian Docker image created by Linuxserver, along with your VNC service. When I open the web interface and connect to the service via VNC, I encounter an issue with Chinese input. After typing a few or several characters, I can no longer input text. However, the characters entered before the issue occurred are successfully displayed.

I came across the following note:
The web interface has the option for "IME Input Mode" in Settings which will allow non-English characters to be used from a non-en_US keyboard on the client. Once enabled it will perform the same as a local Linux installation set to your locale.
However, I could not find the corresponding setting in VNC.

Expected Behavior

No response

Steps To Reproduce

Based on my testing, I found that normal text input does not cause any issues. When inputting Chinese, I type out the pinyin and then press the spacebar to convert it to Chinese characters. The problem arises when I type the pinyin for five or six characters but do not convert all of them into Chinese characters before pressing Enter. This triggers the issue. Restarting Docker resolves the problem temporarily.

Environment

- OS:ubuntu
- How docker service was installed:

Docker creation

version: '3.8'
services:
  obsidian:
    image: lscr.io/linuxserver/obsidian:latest
    container_name: obsidian
    security_opt:
      - seccomp:unconfined  # 可选,若有 GUI 应用兼容性问题时使用
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Asia/Shanghai
      - LC_ALL=zh_CN.UTF-8  # 设置中文环境
    volumes:
      - /home/zhang/obsidian:/config  # 存储配置文件
    ports:
      - 8331:3001  # 将容器的 3000 端口映射到宿主机的 8331 端口
    shm_size: "1gb"  # 设置共享内存大小,避免 Electron 应用出错
    restart: unless-stopped

Container logs

2025-01-13 00:55:57,856 [PRIO] Input: Failure adding new keysym 0x10073b0
 2025-01-13 00:55:59,067 [PRIO] Input: Failure adding new keysym 0x100ff0c
 2025-01-13 00:56:02,624 [PRIO] Input: Failure adding new keysym 0x1004e0d
 2025-01-13 00:56:02,624 [PRIO] Input: Failure adding new keysym 0x10076f8
 2025-01-13 00:56:02,624 [PRIO] Input: Failure adding new keysym 0x1004fe1
 2025-01-13 00:56:04,321 [PRIO] Input: Failure adding new keysym 0x1006ce8
 2025-01-13 00:56:04,321 [PRIO] Input: Failure adding new keysym 0x100610f
 2025-01-13 00:56:06,444 [PRIO] Input: Failure adding new keysym 0x100679c
 2025-01-13 00:56:06,444 [PRIO] Input: Failure adding new keysym 0x1007136
 2025-01-13 00:56:08,659 [PRIO] Input: Failure adding new keysym 0x10073b0
 2025-01-13 00:56:09,037 [PRIO] Input: Failure adding new keysym 0x1004e86
Copy link

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

@itchenfei
Copy link

same problem

@itchenfei
Copy link

#79

linked to this issue, and finally i give a crude solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Issues
Development

No branches or pull requests

2 participants