Skip to content

Perfect Japanese, Chinese and Korean setups - #15508

Merged
dhh merged 13 commits into
quattrofrom
cjk-setup
Oct 15, 2026
Merged

dhh merged 13 commits into
quattrofrom
cjk-setup

Conversation

@omarchybot

@omarchybot omarchybot commented Oct 15, 2026 •

Copy link
Copy Markdown
Collaborator

Choosing Japanese, Korean, Chinese, Taiwan or Hong Kong at install gives the right keyboard, input engine and glyph forms, and Setup > Language sets the session language. This closes the gaps between those pieces and the places people actually type and read CJK text.

Typing in Omarchy itself. The menu search was a Text fed by Keys.onPressed, and Qt hands input-method text only to an item that answers input-method queries, so Fcitx never engaged there: with Mozc, Hangul, Pinyin or Chewing selected, the search line got raw romaji. It is now FilterInput, a TextInput that passes every key to the menu's own handler first and types only what that leaves alone, so preedit renders in place and committed text filters the menu. Alt and Super chords don't type, the caret stays at the end because the menu owns Left and Right, and the line is read-only behind the uninstall confirmation, since a commit arrives as an input-method event rather than a key.

Glyph forms. Han is drawn differently in Japanese, Korean, Simplified and Traditional Chinese.

  • With no CJK language or input method, Arch's 65-nonlatin.conf ranks Korean first. So GTK, terminals and Qt drew Korean forms while Chromium and Ghostty drew Japanese, and Chromium took a run of CJK punctuation on an English page from Noto Sans Mongolian. 50-omarchy.conf now accepts Noto CJK JP after Omarchy's Latin families, so every app agrees on the forms Chromium already showed. Only CJK characters change face.
  • That default is an alias accept, so the user's preference file, loaded later, inserts ahead of it, and a CJK session language or a language tag still decides as before.
  • omarchy font cjk [jp|kr|sc|tc|hk|default] and Style > Font > Chinese, Japanese, Korean set or change that preference. It is the one file the first input method already seeds. Before this, nothing could change it afterwards, and Hong Kong forms were unreachable. default keeps an empty preference, so a later language or input method doesn't seed over it.

Language and input method together. Choosing Japanese, Korean or Chinese under Setup > Language now also adds Mozc, Hangul, Pinyin or Chewing when the Fcitx group has no composition engine yet, and seeds the glyph forms once. Without a reachable Fcitx the switch still succeeds and says where to add the engine.

Keyboards.

  • Positional layouts. Two-set Hangul, Zhuyin and Cangjie are positional: every keyboard prints them on QWERTY positions, as Windows and macOS keep them. New engines followed the group's Latin layout, so a Dvorak, Colemak, AZERTY or QWERTZ user typed jamo and bopomofo in the wrong places. Those presets now carry a us override when the group leads with another Latin arrangement. Korean and JIS groups keep none, because they carry the 한/영 and 半角/全角 keys. Pinyin and Mozc spell by letter and get none. Someone who added Hangul under Dvorak before this keeps what they type with; the manual says how to move it.
  • Korean 한/영 and 한자. Korean installs XKB's kr(kr104): the plain Korean layout plus Right Alt as 한/영 and Right Ctrl as 한자, so dedicated keys keep working and the many laptops and 101/104-compatible keyboards that send Right Alt and Right Ctrl for those keys gain them. Right Alt and Right Ctrl stop being plain modifiers for Korean, and dictation's Right Alt push-to-talk does not fire there; F9 and Super+Ctrl+X still do. Plain kr, which earlier installs saved, is still accepted and left alone. Accept the Korean Right Alt and Hong Kong Cangjie choices in the install selection omarchy-iso#274 accepts kr:kr104 and cangjie5, and has to land before an ISO carrying these choices is built.
  • Hong Kong and Taiwan. Hong Kong types Cangjie. The installer now offers Hong Kong (Cangjie), which seeds Cangjie5 with Hong Kong character forms during offline first-boot setup, so fcitx5-table-extra (43 MB) joins the base package set. The cangjie table in fcitx5-chinese-addons is the Simplified variant and ships disabled. Existing installs get the package on demand from omarchy setup input cangjie5. The Zhuyin row becomes Taiwan (Zhuyin), and the input-method and glyph-forms labels name Hong Kong and Taiwan for themselves rather than under any country.
  • JIS key names. The keybindings menu names code: bindings by what the leading layout prints, so a JIS keyboard shows the resize keys as - and ^ rather than US - and =.

Fcitx itself.

  • Theme. The candidate window follows the Omarchy theme, from a theme template. It reloads only an Fcitx that is already running, so a theme switch never starts one. It is selected once by setup and a migration, writing through a dotfiles symlink, and a later choice of Fcitx's own theme sticks.
  • Restart loop. The unit runs fcitx5 --replace, so an instance started by a user autostart or by hand hands over the bus name rather than leaving the unit restart-looping.
  • Qt 6.12. The input-method acceptance test accepts Qt 6.12's org.qt-project.qml6 window class, which had stopped it at the first Qt case.

Fixes #9580, fixes #11682, fixes #10452, fixes #7461.

This carries work from:

The second opinion was Codex at medium effort, which changed the Default preference and a test assertion.

omarchybot and others added 11 commits October 15, 2026 01:59
Qt 6.12 names qml6 windows org.qt-project.qml6, so the Qt case timed out on the first engine and the run never reached Hangul, Pinyin or Chewing.

Co-Authored-By: Z8 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A fcitx5 started outside the unit (a user autostart, a hand-run fcitx5 -d) owns org.fcitx.Fcitx5, so the unit's instance exits on arrival and Restart=always loops every two seconds while the unsupervised one serves input. --replace makes the unit's instance take the name, and the stray exits. A stray started after the unit still finds the name taken and exits without disturbing it.

Refs #7461.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The resize shortcuts are bound to the two keys right of 0 by keycode, which is right for every layout, but the keybindings menu named those keys by compiling a US keymap, so a JIS user read Super + = where their key prints ^, and Super + Shift + = (vertical resize) looked like the horizontal one. The menu now compiles the leading layout and variant, the one Hyprland resolves bindings against, so JIS reads - and ^ and Dvorak reads [ and ].

Fixes #10452.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…in layout

Two-set Hangul and Zhuyin are positional: every Korean and Taiwanese keyboard prints the jamo and bopomofo on QWERTY positions, and Windows and macOS keep them there whatever Latin layout is active. Fcitx gave each new engine an empty layout override, so it followed the group layout, and a Dvorak, Colemak, AZERTY or QWERTZ user who added Hangul or Chewing typed jamo and bopomofo in the wrong places.

Positional presets now carry a `us` layout, which the engine gets when the group leads with another Latin arrangement, at seeding, during migration alignment, and from the picker. Korean and JIS groups keep no override, since their layouts already put those keys there and carry the 한/영 and 半角/全角 keys the engine needs to switch back. Changing the leading layout re-decides only an override Omarchy set, so a user's own choice stays. Pinyin and Mozc spell by letter and get none.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Hong Kong types Cangjie, not Zhuyin, and the only Traditional Chinese choice was Chewing with Taiwan's TC glyphs, so a Hong Kong user had neither their input method nor their character forms; the HK mapping #15116 added was unreachable from any preset. `omarchy setup input cangjie5` now installs fcitx5-table-extra and adds its Cangjie5 engine with the HK font fallback. The `cangjie` table in fcitx5-chinese-addons is the Simplified variant and ships disabled, so it is not the engine Hong Kong expects. Like Hangul and Zhuyin, Cangjie's radicals sit on QWERTY positions, so the preset carries the same `us` layout override.

There is no installer row: installer engines live in the base package set so offline first boot can configure them, and fcitx5-table-extra is 43 MB.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Many Korean laptops, and keyboards in 101/104-key compatible mode, send Right Alt and Right Ctrl from their 한/영 and 한자 keys. The Korean row's plain `kr` layout only maps the dedicated Hangul keycodes, so on those keyboards 한/영 did nothing and Super+I was the only way into Hangul. XKB's `kr(kr104)` maps Right Alt to Hangul and Right Ctrl to Hangul_Hanja, so a second row carries it as the desktop override `kr:kr104`, a layout and variant the keyboard defaults and the Fcitx seeding now split apart.

Right Alt then sends Hangul rather than Alt_R, so the dictation push-to-talk binding, which matches the Alt_R keysym, cannot take the 한/영 key.

The ISO's input-selection validation has to accept `kr:kr104` before an ISO carrying this row is built.

Co-Authored-By: MoerAI <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Han characters are drawn differently in Japanese, Korean, Simplified and Traditional Chinese, and an English desktop with no input method gets whichever variant fontconfig happens to rank first (Korean in GTK and terminals, Japanese in Chromium). The first input method seeds a preference, but nothing could change or clear it afterwards, and Hong Kong forms were unreachable.

`omarchy font cjk [jp|kr|sc|tc|hk|default]` and Style > Font > Chinese, Japanese, Korean rewrite the one preference file the input method already seeds, through configure.py's writer, so its alias-accept shape still reaches Chromium's family-less fallback (by naming the Latin families 50-omarchy.conf substitutes) and never displaces the Latin font. Being weak, it governs untagged text only: tagged text and a CJK session LANG keep their own forms.

Choosing Japanese, Korean or Chinese under Setup > Language now also adds Mozc, Hangul, Pinyin or Chewing when the Fcitx group has no composition engine yet, and seeds the glyph forms once. Without a reachable Fcitx the switch still succeeds and names where to add the engine.

The submenu is widened like Style > Font so the check after the longest rows is not truncated away, and omarchy-font-cjk joins the guard readers since six rows read it.

Design from #9969 by Yasuhiro Usutani, with the conf.d placement, append-not-prepend and Chromium fallback findings from linyiru's review there.

Co-Authored-By: Yasuhiro Usutani <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The candidate window kept fcitx5's stock light-grey popup whatever the theme. A template renders its palette with the rest of the theme, and omarchy-theme-set-fcitx5 copies it into an fcitx5 theme directory beside links to the packaged glyphs. It then reloads classicui only when Fcitx is already running, so a theme switch never starts it.

Selecting the theme in classicui.conf is a one-time step, run by setup and the migration. Theme switches skip it because headless setup does not run the retint list, and because a choice of fcitx5's own theme made later has to stick. It writes through a dotfiles symlink. It treats default and default-dark as unclaimed, since configtool writes them on any classicui save.

Highlighted preedit text uses the background colour on the accent, as the candidate does, so it stays readable.

Co-Authored-By: AkitaOnRails <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The search line was a Text fed by Keys.onPressed, and Qt hands input-method text only to an item that answers inputMethodQuery, so fcitx5 never even engaged in the menu: typing with Mozc, Hangul, Pinyin or Chewing selected put raw romaji in the line. It is now FilterInput, a TextInput that forwards every key to the menu's handler first and types only what that leaves alone, so preedit renders in place and commits reach the filter.

FilterInput swallows Alt and Super chords, which the old accumulator never typed, and keeps the caret hidden at the end, because the menu owns Left and Right. While the uninstall confirmation is open the line is read-only: a commit arrives as an input-method event, not a key, so swallowing keys alone let composed text land behind the dialog.

Fixes #11682.

Co-Authored-By: linyiru <[email protected]>
Co-Authored-By: TAE58 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
With no CJK language, input method or chosen forms, Arch's 65-nonlatin puts Noto Sans CJK KR first, so GTK, terminals and Qt drew Han in Korean forms while Chromium and Ghostty drew Japanese, and Omarchy's own shell could mix the two inside one Japanese string. Chromium's per-character fallback also sorted Noto Sans Mongolian ahead of every CJK face for a run of CJK punctuation on an English page, changing the line height.

Accepting Noto CJK JP after Omarchy's Latin families makes every app agree on the forms Chromium already showed, and fixes the punctuation. It is an alias accept in the system file, so a user's preference file, loaded later in 50-user, inserts ahead of it, and a CJK LANG or language tag still decides as before. Only CJK characters change face; Latin, symbols, emoji and Nerd Font glyphs resolve as they did.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Choosing Default deleted the preference file, which is also what "never chosen" looks like, so the next CJK language or input method seeded over it: pick Default, switch to Korean and back, and Han was Korean again. Default now writes a preference with no forms in it, which seeding treats as taken.

The Chromium fallback assertions read the replica's output through process substitution, so a crash before any output left an empty array and a loop that asserted nothing. The helper now fails the test when the replica fails or answers fewer queries than it was asked.

The manual says how someone who added Hangul or Chewing under Dvorak before the positional override can move its keys: Omarchy does not remap an engine they already type with.

Co-Authored-By: Codex Medium <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@omarchybot omarchybot added the verified Omarchy Triage has verified that this issue is ready for final review label Oct 15, 2026
@greptile-apps

greptile-apps Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no new blocking issue remains.

Summary

The PR improves Chinese, Japanese, and Korean typing, glyph choices, menu search, and Fcitx themes.

  • CJK language choices add typing engines when a group has none.
  • CJK input engines keep their intended keys across keyboard layouts.
  • CJK glyph forms can be chosen in Style or from the command line.
  • Menu search accepts text composed by an input method.
  • The Fcitx candidate window follows the current Omarchy theme.
  • The Fcitx service takes over an instance already using its bus name.

Reviews (3) · Last reviewed commit: "Give Korean one install choice, with Rig..." · Reviewed by Greptile

Comment thread default/input-methods/typing_setup.py Resolved
omarchybot and others added 2 commits October 15, 2026 03:07
Hong Kong now has an installer choice: Hong Kong (Cangjie) seeds Cangjie5 with Hong Kong character forms during offline first-boot setup, so fcitx5-table-extra joins the base package set, where installer engines have to be. Existing installs are not sent the 43 MB package; `omarchy setup input cangjie5` installs it on demand as before.

The Traditional Chinese installer row becomes Taiwan (Zhuyin), the input method labels read Taiwan (Zhuyin) and Hong Kong (Cangjie), and the glyph-forms menu offers Taiwan and Hong Kong, each named for itself rather than under any country.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
kr104 is the plain Korean layout plus Right Alt as 한/영 and Right Ctrl as 한자, so dedicated keys keep working and keyboards that send Right Alt and Right Ctrl for those keys gain them. That covers both kinds of keyboard, so a second row asked Korean users a question they could only answer wrong. Korean now installs kr104; Right Alt and Right Ctrl stop being plain modifiers there, and dictation push-to-talk stays on F9. Plain `kr`, which earlier installs saved, is still accepted and left alone.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
omarchybot added a commit to wstock/omarchy that referenced this pull request Oct 15, 2026
Quattro's menu now types into its filter through FilterInput, a TextInput (omacom#15508), so the menu's own printable-key branch is gone and the menu half of this fix with it; the menu takes quattro's side. The image picker still filters from Keys.onPressed with the exact-modifier check, so it keeps Util.extendsFilter. The helper's test moves to filter-extends-test.sh, since quattro's filter-input-test.sh now tests FilterInput, and stops asserting on the menu.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
rdoupe added a commit to omarchy-asus/omarchy that referenced this pull request Oct 16, 2026
Inside a live Omarchy session 21 of upstream's test files fail because
they inherit OMARCHY_PATH=/usr/share/omarchy, the XDG base directories,
mise shims and the GTK platform theme. fork/test clears those, so the
only remaining failure is a real one (i18n-test: untranslated keys from
omacom#15508), on upstream and the fork alike.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@emirb emirb added this to the 4.5 milestone Oct 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

verified Omarchy Triage has verified that this issue is ready for final review

Projects

None yet

3 participants