r/coolgithubprojects • u/Leather-Expression69 • 11h ago
Linux-Hantype – I built a Chinese Pinyin input method for Linux using Python and IBus
galleryI've been working on a personal project called Linux-Hantype, a lightweight Chinese Pinyin Input Method Editor (IME) for Linux, written in Python
I wanted to build something similar to the Windows Pinyin input method, but for Linux, while learning more about Python, Linux development, and input method frameworks.
What it does:
- Converts Pinyin into Chinese characters using local dictionaries.
- Displays candidate suggestions in a popup while typing.
- Allows candidate selection with Space or number keys.
- Works offline for normal Chinese typing.
- Integrates with IBus.
- Includes an installer and a small command-line interface.
The basic commands are:
ime on
ime off
ime statusI've developed and tested it on Arch Linux with Hyprland (Wayland). Support for other Linux distributions is a work in progress.
You can see a demonstration in the repository's README.
I'd really appreciate feedback, especially from Linux users who type Chinese or have experience with IBus.
Let me know what you think or what features you'd like to see!Hey everyone!I've been working on a personal project called Linux-Hantype, a lightweight Chinese Pinyin Input Method Editor (IME) for Linux, written in Python.I wanted to build something similar to the Windows Pinyin input method, but for Linux, while learning more about Python, Linux development, and input method frameworks.What it does:Converts Pinyin into Chinese characters using local dictionaries.
Displays candidate suggestions in a popup while typing.
Allows candidate selection with Space or number keys.
Works offline for normal Chinese typing.
Integrates with IBus.
Includes an installer and a small command-line interface.The basic commands are:
ime on
ime off
ime statusI've developed and tested it on Arch Linux with Hyprland (Wayland). Support for other Linux distributions is a work in progress.
can see a demonstration in the repository's README.
I'd really appreciate feedback, especially from Linux users who type Chinese or have experience with IBus.
Let me know what you think or what features you'd like to see!
