Gloridust/WowType
像微信输入法一样顺手的Linux输入法:长句一次打完、按错键也能认出来、纯离线语音输入、实时翻译,越用越懂你。
What is WowType?
WowType is a Chinese pinyin input method for Linux. It plugs into the fcitx5 input-method framework and aims to make typing Chinese on Linux feel as smooth as WeChat's popular input method. The project's tagline: "Type on Linux as smoothly as with WeChat Input."
What does it do?
At its core, WowType converts pinyin (the romanized spelling of Chinese sounds) into Chinese characters. But it goes beyond basic conversion:
- Whole sentences at once — type
xiangquzijieshangbanand get "想去字节上班" ("want to go work at ByteDance") directly, instead of picking words one by one. - Partial pinyin works — type
zhonggand "中国" (China) appears, even though you didn't finish the pinyin. - Forgives typos — swapped keys, adjacent keys, missing or extra keys are all tolerated (
zhognguostill gives "中国"). Correct input is unaffected. - Learns your habits — words you select and phrases you use together get remembered. If you pick "我们再讨论" once, it won't suggest "我们在讨论" next time. Unused learning fades after 30 days.
- Shorthand and mixed input —
bjdx→ 北京大学 (Peking University);kyi→ 可以 (can/okay);github→ GitHub. You can mix Chinese and English without switching modes. - Emoji suggestions — type "开心" (happy) and the third candidate is 😊. A dedicated panel (Super +
.) lets you search emoji and symbols by pinyin or English (xiao→ 😂,pizza→ 🍕). - Voice input — hold the right
Altkey and speak; release to insert text. Recognition runs locally using WeChat's offline model — audio never leaves your computer. The model (~100 MB) downloads once from Tencent's servers on first use. - Translation — a single
Shiftpress cycles through Chinese → English → Translate mode. In Translate mode, type Chinese and it auto-translates to English (or 13 other languages) after a pause; type a foreign language and it translates to Chinese. Uses your own OpenAI-format API endpoint (DeepSeek, Qwen, Ollama, etc.) or an optional offline model (HY-MT, ~1.13 GB, downloaded separately). - Date/time and calculator — type
riqi(orrq) for today's date,shijian(orsj) for the current time,xingqifor the day of week; typev1+2*3and get7. - Toolbar — type
vthen space for clipboard history (last 20 items, memory only, off by default), custom phrases, symbols, and emoji. - Auto-spacing — optionally insert spaces between Chinese and Latin text (
你好Linux→你好 Linux). - Traditional Chinese, fuzzy sounds, double-pinyin — switchable traditional output; 12 fuzzy-sound groups (z=zh, n=l, f=h, etc.) each toggleable; 7 double-pinyin schemes (Ziranma, Xiaohe, Microsoft, Sogou, ZhiNeng ABC, Ziguang, Pinyin Jiajia).
- Graphical settings — a settings app ("WowType 设置") where you can change candidate layout, fuzzy sounds, voice key, add custom words (names, companies, long phrases, emails — custom words rank first and work with shorthand), and more. Changes apply instantly.
- Fast and private — an 890,000-word dictionary; candidates appear within milliseconds per keystroke. No network connection needed for typing; your input never leaves your machine (voice model downloads once; translation only sends text when you're in Translate mode).
How does it work?
Keystrokes → fcitx5 plugin (C++) ─C ABI─> Pinyin engine (Rust)
├─ Syllable segmentation: full / shorthand / partial / typo-tolerant
├─ Beam search on syllable graph, scored by word frequency + language model + user habits
└─ Candidate organization: whole sentences, sentence prefixes, words, single characters
The engine is written in Rust, compiled as a static library linked into the fcitx5 plugin. Its design is inspired by WeChat Input (WeType) 3.0's public behavior and symbol names, but it uses none of WeType's code, dictionary, or models. The dictionary comes from the open-source Rime-ice project. Voice recognition uses WeChat's offline model (downloaded from Tencent on first use) with inference code from the voicekey project (pure Rust).
Installation
System requirements: Linux x86_64, fcitx5 5.1 or newer. Ubuntu 22.04's bundled fcitx5 (5.0) is too old.
One-line install (recommended) for Ubuntu 24.04/26.04, Debian 13, Arch Linux (and derivatives), Fedora:
curl -fsSL https://raw.githubusercontent.com/Gloridust/WowType/main/install.sh | bash
This script downloads the matching package (~29 MB, dictionary included), verifies it against SHA256SUMS, installs it with your system package manager, optionally switches your input framework to fcitx5, and adds WowType to fcitx5's input method list. Running it again upgrades.
Manual install is also documented: download the .deb or .rpm from Releases, or build from source (for other distros). NixOS users can use the provided flake. After installing, you must add WowType to fcitx5's input method list (via Fcitx 5 Configuration or wowtype-config --add-to-group), then restart fcitx5.
Verification:
wowtype-check --lexicon /usr/share/wowtype/lexicon.tsv
wowtype-show --lexicon /usr/share/wowtype/lexicon.tsv nihao
# nihao: 1.你好词 2.拟好词 ...
Key usage
| Key | Action |
|---|---|
| Space | Select first (or highlighted) candidate |
1–9 |
Select corresponding candidate |
← → |
Move cursor between candidates |
↓ |
Expand candidate panel (6 columns, WeChat-style) |
↑, - =, PgUp PgDn |
Page through candidates |
| Enter | Insert typed letters as-is |
Esc |
Clear current input |
| Backspace | Undo last word selection (pinyin returns to edit area); otherwise delete a letter |
' |
Separate syllables (xi'an → 西安) |
Super + . |
Emoji panel |
Single Shift |
Toggle English / Chinese / Translate |
Right Alt |
Voice input |
v + Space |
Toolbar (clipboard, phrases, symbols, emoji) |
Settings
The settings app (run wowtype-config) has pages for:
- General — candidate layout (horizontal/vertical), count per page (3–9), green theme toggle, fcitx5 integration check, log export
- Input — full vs. double pinyin, double-pinyin scheme, Shift behavior, fuzzy sounds, typo correction, traditional Chinese, date/time, calculator, toolbar, auto-spacing,
;/'for 2nd/3rd candidate - Emoji — emoji suggestions, panel shortcut
- Voice — voice input toggle, voice key (right Alt / right Ctrl / Menu / F8–F10), copy result to clipboard, model download status
- Translate — translation toggle, target language, formal tone, local model, API service (provider, URL, key, model), connection test
- Custom words — add words with auto-filled pinyin, import/export, search, undo
- Update — check for updates, view changelog, download and install
Troubleshooting highlights
- Can't find WowType in input method list — uncheck "Only show current language" when adding; verify
/usr/share/fcitx5/inputmethod/wowtype.confexists; restart withwowtype-config --restart-fcitx. - Chrome/Electron apps can't type Chinese after fcitx5 restart — fully quit and reopen them.
- Few candidates / missing common words — the dictionary wasn't found; reinstall (packages include it) or place
lexicon.tsvin~/.local/share/wowtype/. - First switch to WowType takes 1–2 seconds — normal: it loads the dictionary and builds a snapshot; ~0.3s afterward.
- Emoji show as boxes — install a color emoji font:
sudo apt install fonts-noto-color-emoji. - Logs —
~/.local/state/wowtype/wowtype.log; export via settings orwowtype-config --export-log.
Development
- Rust tests:
cargo test --workspace - C interface smoke test:
./scripts/abi-smoke.sh - Plugin key tests:
scripts/addon-test.sh(runs a private fcitx5, doesn't affect your active input method) - Voice test cases:
WOWTYPE_VOICE_WAV=... WOWTYPE_VOICE_EXPECT=... scripts/addon-test.sh - Pushing a
v*tag auto-builds packages for all distros and publishes to Releases.
Code layout: core/ (pinyin engine + C interface), fcitx5-addon/ (fcitx5 plugin), settings/ (GTK 4 settings app), voice/ (voice input), voice-daemon/ (experimental standalone daemon), tools/ (dictionary conversion, eval cases), docs/ (engine details, UX audit, handoff guide, voice, data formats).
License
Code is dual-licensed under MIT or Apache-2.0. The bundled dictionary follows Rime-ice's GPL-3.0; the word-level language model words.lm is CC BY-SA 4.0; emoji keywords come from Unicode CLDR (Unicode License v3).
Credits
- Rime-ice: dictionary and English word list (GPL-3.0)
- OpenCC: simplified/traditional conversion tables (Apache-2.0)
- Unicode CLDR: emoji keywords (Unicode License v3)
- fcitx5: input method framework
- voicekey: offline voice recognition code
- WeChat Input: design and experience reference
In one sentence: WowType is a fast, private, feature-rich Chinese pinyin input method for Linux that mimics WeChat Input's feel — whole-sentence prediction, typo tolerance, learning, emoji, voice, and translation — all running locally on fcitx5.
Related
- Project
- Project
- Project
- Project