How-to: Traditional Chinese Zhuyin input in Fedora 45’s kmscon (without X11 or Wayland)
Hi everyone,
After reading about Fedora 45 replacing the traditional Linux console with kmscon, I wanted to find out whether it could support Traditional Chinese Zhuyin (Bopomofo) input, not just display Chinese characters.
I tested this on Fedora 45 prerelease in QEMU/KVM using the actual kmscon virtual console (Ctrl+Alt+F3), and it works!
The solution uses uim-fep and uim-m17n, without modifying kmscon itself.
Quick setup
Install the required packages:
sudo dnf install -y uim uim-m17n m17n-db-extras
sudo dnf upgrade -y m17n-db
In my tests, I also needed to refresh the m17n module registration:
sudo uim-module-manager --register m17nlib
Configure Ctrl+Space by creating ~/.uim.d/customs/custom-global-keys1.scm:
(define generic-on-key '("<Control> "))
(define generic-on-key? (make-key-predicate generic-on-key))
(define generic-off-key '("<Control> "))
(define generic-off-key? (make-key-predicate generic-off-key))
Then start the input method:
uim-fep -u m17n-zh-zhuyin
Press Ctrl+Space to toggle Chinese input.
I successfully tested Zhuyin composition, Chinese character candidate selection, and UTF-8 text input in the terminal.
Known limitations
This is a terminal-based workaround using a PTY wrapper, not native kmscon input method integration.
The candidate list appears at the bottom of the terminal, and the m17n dictionary may include both Traditional and Simplified Chinese characters.
Also, the default Shift+Space shortcut did not work in my environment, even though the VM received both key events. Ctrl+Space works reliably with the custom configuration above.
Upstream discussion and screenshots
I documented the complete test procedure, A/B keyboard tests, screenshots, and an untested suggestion for Simplified Chinese Pinyin users here:
I hope this helps other CJK users who want to use Fedora’s virtual console without a graphical desktop.
Feedback and testing on other hardware would be very welcome!