Skip to content

fix(go-backend): register 喵喵 under the Traditional Chinese locale - #1024

Open
asdf80730 wants to merge 1 commit into
EasyIME:masterfrom
asdf80730:pr/go-meow-locale
Open

asdf80730 wants to merge 1 commit into
EasyIME:masterfrom
asdf80730:pr/go-meow-locale

Conversation

@asdf80730

Copy link
Copy Markdown
Contributor

The go copy of 喵喵輸入法 registers under Simplified Chinese: ime.json
declares zh-Hans-CN with fallback zh-CN, so DllRegisterServer files
the IME under zh-Hans (LANGID 0x0804) while the node and python copies of
the very same IME register under zh-TW (0x0404).

 go-backend/input_methods/meow/ime.json
-  "locale": "zh-Hans-CN",
-  "fallbackLocale": "zh-CN",
+  "locale": "zh-Hant-TW",
+  "fallbackLocale": "zh-TW",

The pair arrived whole in 0128f36 (PR #873), copied from the go rime
manifest — the same defective pair #481 reported for rime, which #1021
already flipped there. Nothing in that PR's thread, the reporter census,
or the IME itself indicates a Simplified orientation: the method emits
only 喵 and its display name (喵喵輸入法 (Go版)) is Traditional, so the
declaration is template-copy contamination.

Validation:

  • The registration-data test tests/test_rime_registration_locale.py
    (local harness, deliberately not carried by this PR) was red before the
    flip — 4 failures, including kernel32 answering 2052 != 1028 for the go
    copy and twins declaring 2 != 1 locale pairs — and is green after:
    Ran 3 tests, OK, run today on python/python3/python.exe against the
    integration tree carrying these exact two field flips.
  • The branch's own package test passes: go test -count=1 ./input_methods/meow
    → ok 0.149s (Go 1.25.14, windows/arm64).
  • The shipped cross-build compiles the manifest's package: CGO_ENABLED=0
    GOOS=windows GOARCH=386 with go build ./input_methods/meow.

Door: two-way — reverting the two lines restores the old registration,
and the blast radius is the go 喵喵's language-bar entry after the DLL is
re-registered; the node and python copies are untouched.

Architecture and design by asdf80730. Implementation generated with AI assistance from omp (tensorfold/Qwen3.8-Flash-Next).

The go copy of 喵喵輸入法 declared locale zh-Hans-CN with fallbackLocale
zh-CN, so DllRegisterServer registered it under zh-Hans (LANGID 0x0804)
while the node and python twins register the same IME under zh-TW
(0x0404). The pair came in whole with 0128f36 (PR EasyIME#873), copied from the
go rime manifest; nothing in that PR's thread, the reporter census, or
the IME itself carries a Simplified orientation — it emits only 喵 and
its display name is Traditional. Template-copy contamination, so flip
both fields to the twins' pair, as EasyIME#481 did for rime.

Architecture and design by asdf80730. Implementation generated with AI
assistance from omp (tensorfold/Qwen3.8-Flash-Next).
@asdf80730

Copy link
Copy Markdown
Contributor Author

Hi — the first workflow run on this fork PR is waiting for a maintainer approval (run 41108272365 reports 0 jobs started). Could someone approve it so ci / build-and-sign can verify the change?

(Comment generated with AI assistance from omp (tensorfold/Qwen3.8-Flash-Next))

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant