Python port of the reranker: core/lm.py runs the same CKIP gpt2-tiny-chinese model with numpy (batched per candidate length, scores match the Swift and reference implementations), Converter.kbest, core/reranker.py (modes, time budget, pause after overruns, cache), core/system_monitor.py (Windows: CPU usage and battery saver; Linux: load average, thermal zones, low-power profile and low battery) and core/ai.py (settings.json, background model loading, status line). Windows: numpy wheels for PIME's 32-bit Python 3.8 (PIME 1.3) and 3.15 (PIME 2) are bundled under autozhuyin/vendor and picked by Python version; a settings menu on the taskbar IME icon and the language bar (left click on the icon toggles English mode). Linux: install.sh uses the system numpy or downloads the matching wheel from PyPI (tools/fetch_numpy.py, SHA-256 checked); an IBus settings menu. Without numpy or the model the input method works as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
68 lines
3.1 KiB
Plaintext
68 lines
3.1 KiB
Plaintext
自動注音 AutoZhuyin(Windows 測試版)
|
||
=====================================
|
||
|
||
用大千注音鍵盤直接打字,不用切換中英文,輸入法會自動判斷你打的是注音還是英文。
|
||
|
||
按鍵: ji3 hello world su3cl3 (最後按空白)
|
||
輸出: 我hello world 你好
|
||
|
||
|
||
安裝
|
||
----
|
||
1. 先安裝 PIME 輸入法框架(免費、開源):
|
||
https://github.com/EasyIME/PIME/releases
|
||
下載 PIME-x.x.x-setup.exe 安裝(預設選項即可)。
|
||
|
||
2. 解壓縮這個 zip,在 install.bat 上按右鍵 →「以系統管理員身分執行」。
|
||
|
||
3. 設定 → 時間與語言 → 語言與地區 → 中文(台灣) → 語言選項 → 新增鍵盤,
|
||
加入「自動注音 AutoZhuyin」。如果清單裡沒有,重新開機一次。
|
||
|
||
4. 用 Win + 空白鍵 切換到自動注音。
|
||
|
||
|
||
使用方式
|
||
--------
|
||
空白 注音:一聲;音節打完時送出中文。英文:送出單字加空白
|
||
Enter 送出目前組字
|
||
Tab 判斷錯了?按 Tab 在中/英之間翻轉,輸入法會記住這次修正
|
||
← → 在組字區移動游標,選要改哪個字;游標在中間時直接打注音
|
||
會插入新字,Backspace 刪掉游標前的字
|
||
↓ 開啟游標前那個字或詞的候選字,按數字鍵 1–9 選字;
|
||
選過的字會被記住,下次優先出現
|
||
Esc 取消組字
|
||
單按 Shift 切換英文模式(按鍵直接送出、保持小寫、沒有底線),
|
||
再單按一次回到中英自動判斷,會出現「英文」/「中英自動」小提示;
|
||
打到一半時按,同 Tab 整段翻轉
|
||
Shift+字母 打大寫字母(也會強制英文)
|
||
< > ? ! : 中文語境下自動變成全形 ,。?!:
|
||
` + 標點 強制全形標點,例如 `< 或 `, = , `. = 。 `/ = ? `; = ;
|
||
`' = 、 `[ `] = 「」 `( `) = () `! = !
|
||
` 後面接其他鍵就是普通的反引號
|
||
|
||
注音符號的順序打錯也沒關係,例如 ㄧㄒㄠˇ 會自動變成 ㄒㄧㄠˇ(小)。
|
||
|
||
|
||
AI 選字
|
||
-------
|
||
用中研院 CKIP 的繁體中文小型語言模型,看前後文挑同音字(他跑「得」很快、請你「再」說一次),
|
||
完全在本機運算,不連網。在工作列的輸入法圖示上按右鍵(或語言列的設定按鈕)可以選:
|
||
AI 選字:關閉/省電/標準(預設)/高品質
|
||
系統忙碌時自動暫停 AI(預設開啟:CPU 很忙時暫停,省電模式時改用省電)
|
||
選單裡會顯示目前狀態。電腦比較慢時建議用「省電」,運算太慢時也會自動暫停一分鐘。
|
||
|
||
|
||
回報問題
|
||
--------
|
||
請告訴我:
|
||
- 按了哪些鍵(例如 2;3)
|
||
- 預期打出什麼、實際出現什麼
|
||
- 在哪個程式裡打字(Word、LINE、Chrome…)
|
||
|
||
自訂詞:%APPDATA%\PIME\autozhuyin\user-phrases.txt
|
||
每行一個詞,格式:ㄗˋ-ㄉㄨㄥˋ-ㄓㄨˋ-ㄧㄣ 自動注音 -4
|
||
|
||
解除安裝:在 uninstall.bat 上按右鍵 →「以系統管理員身分執行」。
|
||
|
||
詞庫來源:小麥注音 McBopomofo(MIT 授權)。
|