Repository navigation
Conversation
Every session already runs fcitx5 for the compose sequences, so Bopomofo only needs an engine registered with it. omarchy-setup-input-chewing installs fcitx5-chewing, restarts fcitx5 so it picks the engine up, and appends chewing to the current input method group rather than replacing it, leaving a Japanese or Korean engine added earlier in place. The manual covers the Ctrl+Space toggle, how to change the Bopomofo arrangement away from standard, and why the left-Shift toggle that Windows users expect does not fire under the default kb_options.
default/omarchy/launcher.hides:11 hides fcitx5-configtool, so both the manual section and the setup command's closing message pointed at a GUI that never shows up in the launcher after installing it. Name the terminal instead. Found by @akitaonrails while reviewing the Japanese sibling, omacom#9634.
|
Cross-reference, because this turns out to be one of three open siblings and the description named none of them. Prior art I should have credited. #11719 (@MoerAI, Korean, opened 2026-09-13) and #9634 (@komagata, Japanese, opened 2026-09-01) do this job for their languages. This PR is the same work as #11719: the same six files, the same DBus append instead of a group rewrite, the same readiness loop, and the same explanatory comments word for word, with the engine name changed. #11719 was there four days first and the description here credits neither sibling, which it should have. All three collide on one line. Each of the three adds exactly this to "setup.input-method": {"icon":"","label":"Input Method"},Each then adds its own row beneath that one, an assertion in the same block of The manual is the only part of that merge which is not mechanical, because the three touch it differently. #9634 rewrites the shared fcitx5 paragraph so Japanese goes through the menu and every other language stays at The setup command is now written three times. Beyond the readiness loop, the three scripts share the restart-then-wait sequence, the group-append via There is evidence the shared knowledge does not survive copying. @akitaonrails found on #9634 that What @akitaonrails' review of #9634 changes here. Two of its three points apply to this PR unchanged.
Its closing note carries over as well, and neither of those two issues is Mozc-specific on its own report: #11303 was filed with |
|
@linyiru Thank you for taking the time to connect these PRs, acknowledge the earlier work, and explain how they fit together. I really appreciate you carrying the findings from @akitaonrails’ review over to the Chewing setup as well! I agree that the shared Fcitx 5 setup flow and the manual should be consolidated as these land. Keeping the current PRs focused and extracting the common logic in a follow-up sounds good to me. Thank you for offering to work on that. I’ve added links to the Korean and Traditional Chinese PRs in #9634. If either lands first, I’m happy to adjust the Japanese PR’s parent menu entry and documentation to match. The shared menu instructions plus per-engine details sound like a good structure. For #12139, I’d keep tracking it separately for now: #11719 notes that current Chromium enables the relevant support by default, while #12139 notes that a comparison with and without the flag is still missing. It would be useful to resolve that across the affected browser versions before treating it as a prerequisite for all three setup PRs. Thanks again for helping make these changes work together for users across languages! |
|
Thanks for tying this to #11456 and calling out the Korean sibling #11719 — the shared one-step input-setup pattern is the right direction (Japanese #13327 too). Currently CONFLICTING against |
|
Thank you for this. What it does is now on This is now on This was checked against |
Refs #11456.
Omarchy already runs fcitx5 in every session for the Caps Lock compose sequences, so Traditional Chinese input only needs an engine registered with it.
omarchy-setup-input-chewingdoes that in one step, with a menu row under Setup > Input Method.What it does
fcitx5-chewing, then restarts fcitx5 so the running instance sees it — fcitx5 only scans for engines at startup.chewingto the current input method group over DBus rather than replacing the group, so anfcitx5-mozcor Korean engine added earlier stays put.Manual
manual/34-keyboard-mouse-trackpad.mdgains a "Typing in Traditional Chinese" section: the Ctrl+Space toggle, how to move Chewing off the standard Bopomofo arrangement to Hsu or ETen withfcitx5-configtool, and why the left-Shift tap that Windows users reach for does nothing here.That last one is #7440. The default
kb_optionsincludesshift:both_capslock_cancel, which gives the Shift keys a two-level alphabetic mapping, so the release keysym isCaps_Lockrather thanShift_Land fcitx5's release-of-modifier check never matches. The manual documents it and offers thekb_options = "compose:caps"opt-out rather than changing the default for everyone.Tests
test/shell.d/input-chewing-test.sh— three scenarios withomarchy-pkg-add,fcitx5-remoteandbusctlmocked, asserting that the group append preserves engines that were already there.test/acceptance.d/input-chewing-test.sh— runs the setup command, typessu3cl3into afootwindow withwtype, and asserts Han characters were committed. It followssecurity-test.shforOMARCHY_ACCEPTANCE_SUDO_PASSWORD, including the pty, so the validated credential reaches the setup command's own sudo.The acceptance assertion tests the Han codepoint range rather than an exact string, on purpose: Bopomofo reaches Han through a candidate list whose order comes from Chewing's phrase dictionary and adapts to earlier selections, so unlike Hangul no exact output is guaranteed. Two mechanics the test had to account for, both found the hard way in a live session — selecting the engine needs
fcitx5-remote -oas well as-s chewing, since a group whose first entry is a plain keyboard layout starts out in passthrough; and Chewing consumes the first Return committing its pre-edit buffer, so the reader needs a second one.Verification
On a live Omarchy session (Arch,
fcitx5-chewing 5.1.13-1,libchewing 0.13.1-1):./test/cli./test/shellwith this change./test/shellonquattro, unchanged./test/shellThose 5 are pre-existing and environment-related (config, locate, kernel-migration, snapper, unowned-system-paths); this change adds none.
The setup command and the composing path were exercised by hand in that session: engine registration, the toggle, and Bopomofo committing Han. The acceptance file itself has not been run through
omarchy-iso-test— I don't have the ISO harness set up, so it's worth a run on your side.Scope
Deliberately opt-in. #11456 asks whether preinstall or the first-run wizard is preferred, and this takes neither position — it's one command and one menu row, so wiring it into the wizard later is small. Pinyin (
fcitx5-chinese-addons) would slot in the same way as a sibling command.No overlap with #12142, which themes the fcitx5 candidate window.
🤖 Generated with Claude Code