Proposal: Optional CJK input method support for Fedora's kmscon console (F45/F46)

Hi Fedora developers, and @jfalempe,

Thank you for bringing kmscon to Fedora 45!

I’m a Fedora user from Taiwan, and I have been testing Traditional Chinese input in the new kmscon virtual console.

I successfully configured Traditional Chinese Zhuyin (Bopomofo) input using uim-fep, uim-m17n, and the m17n-zh-zhuyin engine.

I confirmed that Chinese composition, candidate selection, Ctrl+Space toggling, and UTF-8 text input work in the actual Fedora 45 kmscon console, without X11 or Wayland.

The complete setup, screenshots, and test results are documented here:

However, this currently requires manual package installation, m17n module initialization, custom key bindings, and starting uim-fep.

Would Fedora be interested in providing optional CJK input method support for kmscon, either through a ready-to-use configuration or a more integrated solution?

Some possible approaches:

  • Document the existing uim-fep workaround in Fedora’s official documentation.

  • Provide an optional package or configuration that makes console input methods easier to enable.

  • Consider native input method integration as a longer-term improvement.

I would prefer an opt-in solution, so that minimal Fedora Server installations would not gain unnecessary dependencies.

Simplified Chinese Pinyin may also be possible through the m17n framework, although I have not tested it myself.

I understand that Fedora 45 is already near its final release, so Fedora 46 may be a more realistic target for larger changes. A post-release Fedora 45 improvement or official documentation would also be welcome.

I would appreciate feedback on the most appropriate approach and where this work should be coordinated.

Thanks!

1 Like

Thanks for your work.

It’s possible to add a kmscon-uim empty package, that depends on uim, and it can even add a small script to setup uim for different languages.

Regarding the shift+space issue, there is no standard escape code for shift+space, so kmscon only send space, and the shift information is lost. That’s probably why you have to use ctrl+space instead. The Kitty keyboard protocol should handle that properly, but kmscon doesn’t support it yet, and I don’t know if uim does.

Regarding documentation, adding a kmscon-uim page with all your instructions should also be easy to do. So user would be able to read it using man kmscon-uim

Hi Jocelyn,

Thanks for your detailed response!

I really like the idea of an optional “kmscon-uim” package with a small setup script and a “man kmscon-uim” documentation page. That sounds like a practical solution without adding unnecessary dependencies to the default installation.

Thanks also for explaining the Shift+Space limitation. That matches my keyboard event tests, and Ctrl+Space works with the custom uim configuration.

One additional question about keyboard shortcuts:

Since Super+Space is already the standard shortcut for switching input sources in Fedora GNOME, supporting the same shortcut in kmscon would provide a more consistent user experience between the graphical desktop and the virtual console.

I noticed that kmscon already recognizes the Super (Logo) modifier for its built-in shortcuts.

Would it be technically feasible to provide an optional Super+Space binding that triggers the same input method toggle as Ctrl+Space, perhaps by handling the shortcut directly in kmscon before passing input to “uim-fep”?

I understand that traditional terminal escape sequences cannot preserve the Super modifier, so this might require changes to kmscon itself. This is just a nice-to-have feature, not a requirement for the proposed package.

I’d be happy to help test the package, contribute the Zhuyin configuration instructions, and help draft the man page or setup script.

Where would you prefer this work to be contributed — the upstream kmscon repository or Fedora’s package repository?

Thanks again!

Yes, it’s technically possible to send the same escape code for super+space than for ctrl+space.

But that means diverging from what others are doing.

So I think it can be the default, but we may need to add a configuration option if that breaks some other workflow.

I think you can start by adding a new kmscon-uim man page in kmscon (so create a kmscon-uim.1.xml.in in the docs/man/ directory:

Regarding packaging, I usually test on my copr repo first:

You can either fork it, or I can do and test the changes for you.

Hi Jocelyn,

Thanks for the explanation and for pointing me to the relevant source code!

It’s great to know that Super+Space is technically feasible. I agree that compatibility with existing workflows should be considered, and having a configuration option sounds reasonable.

I’ll start with the kmscon-uim.1.xml.in man page, as you suggested, using the existing kmscon documentation as a reference.

Once the documentation is ready, I’ll submit a pull request for your review.

After that, I’d be happy to help test the optional package and explore the Super+Space implementation separately.

Thanks again for your guidance and willingness to help!