Jia Sui 044352d49a fix(engine): 上下文重排的预过滤基准改用正读整键首位权重
1/100 预过滤的基准取 result.front(),注释声称与merge_alternative_segmentations
的 primary_top_weight 同源,实际不是:merge 取的是 primary_full(query_single_path
的整键结果),无整键行时为 0;而这里的 result 是 query_series 的完整输出。

正读在词库里没有整词时,result.front() 是一个前缀单字——真实词库里单字是 1e6+
的语料计数——于是 5000*100 < 1e6,正常备选在解码之前就被筛掉。而这恰恰是重排价值
最高的场景:正读最弱、词格只能用单字拼出路径时,正是上下文裁决该出手的时候。

改为复用 merge 的同一调用(query_single_path + 同一实参),走缓存不额外查库,
两处门槛从此不会各自漂移。

该缺陷无法用行为测试判别:正读无整词时 merge 的merged_full 只剩备选整键行,
备选本就居首,重排发生与否结果相同;构造分歧需要「词格胜者≠ 权重排序首位」,
而启发式 ln(w)+3.0×音节数 下同音节数时权重恒占优。故作为一致性修复保留。
2026-10-04 03:45:53 +08:00
2026-09-30 19:58:18 +08:00
2026-09-09 04:05:24 +09:00
2025-11-10 21:10:23 +08:00

Metasequoia IME for Windows

中文 README · Website · Docs · Privacy · Code signing policy

CI CodeQL Release Downloads License Stars

A free and open-source Chinese and Japanese input method for Windows 10 and 11, built on TSF with no legacy IMM32 path.

This repository is the whole Windows product: the TSF text service DLL, the resident server, the conversion engine, a self-written native GUI framework, the HTML surfaces and the installer. The engine was imported from MSIME-Engine and specialized for Windows; it now lives in engine/ as a first-party component, so a plain clone builds the product. See engine/UPSTREAM.md.

This is a public beta. Expect rough edges and read the release notes before upgrading.

Install

Download the installer from Releases or the download page, run it, then switch with Win + Space.

Current builds are not code signed. SmartScreen will block them and uiAccess is unavailable, which means the candidate window cannot float above elevated applications. Verify the download with the SHA256 published on the download page.

You need the Microsoft Visual C++ 2015–2022 Redistributable (x64). The server and settings app are 64-bit; the x86 redistributable is a separate package and does not substitute for it. If you cannot switch to the IME, the server keeps exiting, or the settings window closes immediately, install that first.

What it does

  • Chinese input: full pinyin, double pinyin (Xiaohe / Ziranma / Shoudao / Microsoft / Sogou / Ziguang / Zhineng ABC / Guobiao / Pinyin Jiajia), Wubi 86
  • Japanese input: romaji, with hiragana, katakana and dictionary candidates; also available as a temporary mode from Chinese
  • Helpcode (形码) filtering on pinyin schemes: six tables, single- and double-code
  • Optional cloud candidates, and AI suggestions via DeepSeek / OpenAI / SiliconFlow / Groq
  • English-Chinese glosses in the vertical candidate window
  • Mixed Chinese-English input, emoji and kaomoji, a dedicated English candidate mode
  • Local input statistics (off by default): character counts and active time stay on this machine; view and clean them under Settings → Statistics
  • Voice input with streaming recognition and optional cleanup
  • Handwriting, on-screen keyboard, floating toolbar, clipboard history
  • User dictionary management, candidate frequency tuning, skins with light and dark variants

Privacy

An input method sees every keystroke, so the boundaries are stated explicitly in PRIVACY.md: which features reach the network, what each one sends, what the defaults are, and how to turn each off.

Two things worth knowing up front. Cloud candidates are on by default — the composition spelling goes to Google's input-tools service, and it is the only network feature that works without you supplying a credential. API tokens are stored in plain text in config.toml, unlike macOS and Linux which use the Keychain and Secret Service.

There is no telemetry, analytics or crash reporting of any kind.

Building and contributing

CONTRIBUTING.md has the environment, the build order and what to run before opening a pull request. Contributions do not have to be code — dictionary entries, documentation, icons and compatibility testing all count, and the recruiting page lists them by area.

Note that most issues, documentation and code comments are in Chinese. English pull requests and issues are welcome.

Code signing policy

Free code signing provided by SignPath.io, certificate by SignPath Foundation.

What is signed, who the committers, reviewers and approvers are, the build and release process and the current status are in the code signing policy. The privacy policy is PRIVACY.md.

Licence

GPL-3.0. See LICENSE and THIRD_PARTY_NOTICES.txt.

S
Description
水杉输入法 Windows 产品:TSF、Server、GUI、设置页与安装器。内测:tg: https://t.me/msimegroup QQ Group: 829919142
https://msime.app
Readme GPL-3.0
24 MiB
0 Stars 1 Watchers 0 Forks
Languages
C++ 93.5%
Python 2.4%
PowerShell 2%
CMake 0.9%
Inno Setup 0.7%
Other 0.5%