Repository navigation
Pick the matching Noto CJK variant for language-tagged text - #15116
Conversation
The generic assigns swap sans-serif, serif and monospace for fonts with no CJK glyphs, so tagged Chinese text ends up on whatever Noto CJK variant the charset scan finds first, usually the Japanese one. Fold the many Chinese tags down to one per variant and prepend the matching family ahead of the assigns.
|
Normalize a private language copy so CJK selection cannot discard Urdu or other requested languages. Exact membership keeps bare Chinese tags on their intended variant in langsets that also contain another language. Clear caller locale overrides in both matching paths, cover mixed-language requests and each override, and report unavailable Chinese locale coverage explicitly. Co-Authored-By: GPT-6 in Codex <[email protected]> Co-Authored-By: Codex Medium (GPT-6.1-sol) <[email protected]>
|
Both Greptile findings are fixed in 641f09a. Chinese normalization now uses a private language property, preserving other requested languages and Urdu’s Nastaliq fallback. Both test paths clear inherited locale overrides. Exact membership checks also keep bare Chinese tags on their intended variant in mixed-language requests. Verified on disposable Omarchy workers: the original mixed Chinese/Urdu request selected Naskh and now selects Nastaliq; Traditional Chinese selects TC rather than the base’s KR; bare Chinese with English selects SC. The complete CJK matrix passed, including each locale override, and all three deliberately broken mutations were rejected. An English-only worker ran the tagged and mixed-language checks and explicitly skipped only unavailable Chinese-locale coverage. Chinese and Latin text were also inspected in the live desktop. The full CLI/shell run recorded 5,759 passing checks, four skipped checks, and 12 failing test files. Each failure was reproduced on unchanged base 9480d1b: ASCII width, logo animation, USB/Thunderbolt unit packaging, default-agent migration, cold compositor startup, passwordless cleanup, power ordering, bar insertion, screenshot sanity, shortcut routing, device-toggle fixtures, and unowned system paths. The skips were Apple display cache, Kitty configuration, and USB/Thunderbolt tooling; the CJK checks ran without skips on the Chinese-locale worker. Reviewed by GPT-6 in Codex and Codex Medium (GPT-6.1-sol). The second opinion contributed the mixed-language bare-Chinese defect; its final review of the published commit found no remaining defects. Review independence is not guaranteed. Waiting on the maintainer’s decision. |
* Accept Qt 6.12's qml6 window class in the input method acceptance test 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]> * Take the input bus name from a stray fcitx5 instead of restart-looping 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]> * Name keycode bindings by what the leading layout prints on the key 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]> * Keep Hangul and Zhuyin keys on their standard positions under any Latin 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]> * Offer Cangjie for Hong Kong, with Hong Kong character forms 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]> * Offer Korean with Right Alt as 한/영 and Right Ctrl as 한자 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]> * Let people choose CJK glyph forms, and bring them with a CJK language 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]> * Theme the Fcitx candidate window with the current Omarchy theme 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]> * Type Japanese, Chinese and Korean into the menu search 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]> * Default untagged Han to Japanese forms 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]> * Keep an explicit return to the system's CJK forms 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]> * Offer Hong Kong at install, and name Hong Kong and Taiwan for themselves 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]> * Give Korean one install choice, with Right Alt as 한/영 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]> --------- Co-authored-by: Omarchybot <[email protected]> Co-authored-by: Z8 <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: MoerAI <[email protected]> Co-authored-by: Yasuhiro Usutani <[email protected]> Co-authored-by: David Heinemeier Hansson <[email protected]> Co-authored-by: AkitaOnRails <[email protected]> Co-authored-by: linyiru <[email protected]> Co-authored-by: TAE58 <[email protected]> Co-authored-by: Codex Medium <[email protected]>
Omarchy’s generic font assignments can select the wrong Noto CJK face for Han characters: a Traditional Chinese request can resolve to the Korean face. This selects the Simplified Chinese, Traditional Chinese, Hong Kong, Japanese, or Korean fallback for the requested language while retaining Omarchy’s Latin font families.
Chinese and Cantonese tags are normalized in a private pattern property, leaving the application’s original languages available to other font rules. Exact membership checks keep bare Chinese tags on their intended variant when a request also contains other languages, so a Chinese/Urdu request retains its Nastaliq fallback.
The regression checks cover string and langset requests, mixed languages, and locale defaults with inherited overrides cleared. Locale-dependent checks explicitly report a skip when the Chinese locale is unavailable.