avatar

目錄
【最好用的 Windows 中文輸入法】Rime 小狼毫 - 我的方案設置分享

前言

最近重裝了小狼毫,記錄一下過程。
話說,Rime 真是我用過 (無論是在 Windows 或 Mac) 最好用的中文輸入法!!
打句子不用選字,能自動識別出合適的字,令打字速度快了十倍,真是超贊!!

Rime typing demo

到官網下載安裝

RIME | 中州韻輸入法引擎: https://rime.im/

Customization

Customization Guide · rime/home Wiki
https://github.com/rime/home/wiki/CustomizationGuide

C:\Program Files (x86)\Rime\weasel-0.14.3\data

選擇輸入法

default.custom.yaml

yaml
# default.custom.yaml
# save it to:
# ~/.config/ibus/rime (linux)
# ~/Library/Rime (macos)
# %APPDATA%\Rime (windows)

patch:
schema_list:
# - schema: luna_pinyin # 朙月拼音
- schema: luna_pinyin_simp # 朙月拼音 简化字模式
- schema: luna_pinyin_tw # 朙月拼音 臺灣正體模式
# - schema: terra_pinyin # 地球拼音 dì qiú pīn yīn
# - schema: bopomofo # 注音
# - schema: bopomofo_tw # 注音 臺灣正體模式
# - schema: jyutping # 粵拼
- schema: cangjie5 # 倉頡五代
# - schema: cangjie5_express # 倉頡 快打模式
- schema: quick5 # 速成
# - schema: wubi86 # 五笔86
# - schema: wubi_pinyin # 五笔拼音混合輸入
# - schema: double_pinyin # 自然碼雙拼
# - schema: double_pinyin_mspy # 微軟雙拼
# - schema: double_pinyin_abc # 智能ABC雙拼
# - schema: double_pinyin_flypy # 小鶴雙拼
# - schema: wugniu # 吳語上海話(新派)
# - schema: wugniu_lopha # 吳語上海話(老派)
# - schema: sampheng # 中古漢語三拼
# - schema: zyenpheng # 中古漢語全拼
# - schema: ipa_xsampa # X-SAMPA 國際音標
- schema: emoji # emoji表情
- schema: kaomoji # 自訂顏文字
"menu/page_size": 9

介面 UI

squirrel.custom.yaml

yaml
# 適用於【鼠鬚管】0.9.13+
# 位置:~/Library/Rime/squirrel.custom.yaml
# 用法:想要哪項生效,就刪去該行行首的#字符,但注意保留用於縮進的空格

patch:
# us_keyboard_layout: true # 鍵盤選項:應用美式鍵盤佈局
# show_notifications_when: growl_is_running # 狀態通知,默認裝有Growl時顯示,也可設爲全開(always)全關(never)
# style/horizontal: true # 候選窗横向顯示
# style/inline_preedit: false # 非內嵌編碼行
style/font_face: "Hiragino Sans GB" # 我喜歡的字體名稱
style/font_point: 14 # 字號
style/corner_radius: 5 # 窗口圓角半徑
# style/border_height: 0 # 窗口邊界高度,大於圓角半徑才有效果
# style/border_width: 0 # 窗口邊界寬度,大於圓角半徑才有效果
style/color_scheme: dark_temple # 選擇配色方案

# 註:預設的配色方案及代碼(指定爲 style/color_scheme )
# 碧水 - aqua
# 青天 - azure
# 明月 - luna
# 墨池 - ink
# 孤寺 - lost_temple
# 暗堂 - dark_temple
# 星際我爭霸 - starcraft
# 谷歌 - google
# 曬經石 - solarized Rock

速成、中英切換、繁簡轉換、全角標點符號

quick5.schema.yaml

yaml
# Rime schema settings
# encoding: utf-8

schema:
schema_id: quick5
name: 速成
version: "0.19"
author:
- 佛振 <chen.sst@gmail.com>
description: |
速成、倉頡詞句連打
碼表源自倉頡之友發佈的《五倉世紀版》
www.chinesecj.com
dependencies:
- luna_pinyin

switches:
- name: ascii_mode
reset: 0
states: [中文, 西文]
- name: full_shape
states: [半角, 全角]
- name: simplification
states: [漢字, 汉字]
- name: ascii_punct
states: [。,, .,]

engine:
processors:
- ascii_composer
- recognizer
- key_binder
- speller
- punctuator
- selector
- navigator
- express_editor
segmentors:
- ascii_segmentor
- matcher
- abc_segmentor
- punct_segmentor
- fallback_segmentor
translators:
- punct_translator
- script_translator
- reverse_lookup_translator
filters:
- simplifier
- uniquifier

speller:
alphabet: zyxwvutsrqponmlkjihgfedcba
delimiter: " ;'"
algebra:
- 'derive/^([^z])\w+(\w)$/$1$2/' # 取倉頡首尾二碼爲速成碼

translator:
dictionary: quick5
prism: quick5
preedit_format:
- "xlit|abcdefghijklmnopqrstuvwxyz;'|日月金木水火土竹戈十大中一弓人心手口尸廿山女田難卜符··|"
comment_format:
- "xlit|abcdefghijklmnopqrstuvwxyz~|日月金木水火土竹戈十大中一弓人心手口尸廿山女田難卜符~|"
disable_user_dict_for_patterns:
- "^z.*$"
- "^yyy.*$"

abc_segmentor:
extra_tags:
- reverse_lookup

reverse_lookup:
dictionary: luna_pinyin
prefix: "`"
suffix: "'"
tips: 〔拼音〕
preedit_format:
- xform/([nl])v/$1ü/
- xform/([nl])ue/$1üe/
- xform/([jqxy])v/$1u/
comment_format:
- "xlit|abcdefghijklmnopqrstuvwxyz|日月金木水火土竹戈十大中一弓人心手口尸廿山女田難卜符|"

punctuator:
import_preset: default

key_binder:
import_preset: default

recognizer:
import_preset: default
patterns:
reverse_lookup: "`[a-z]*'?$"

quick5.custom.yaml

yaml
patch:
schema/dependencies:
- kaomoji
engine/translators:
- punct_translator
- script_translator
- reverse_lookup_translator
recognizer/patterns/reverse_lookup: "^[a-z]{2,}$|^v[a-z]*$|^`[a-z]*$"
reverse_lookup:
dictionary: kaomoji
enable_completion: false
prefix: "`"
tips: "〔颜文字〕"

# punctuator/import_preset: alternative
switches:
- name: ascii_mode
reset: 0
states: ["中文", "西文"]
- name: full_shape
states: ["半角", "全角"]
- name: ascii_punct
reset: 1
states: [",。", ",."]
- name: zh_simp
reset: 1
states: ["漢字", "汉字"]
menu/page_size: 9

References


如果您喜歡我的文章,歡迎幫我在下面按5下讚!感謝您的鼓勵和支持!

文章作者: ouoholly
文章鏈接: https://ouoholly.github.io/post/Rime-input-Win-weasel-setup/
版權聲明: 本博客所有文章除特別聲明外,均採用 CC BY-NC-SA 4.0 許可協議。歡迎「部份引用」與介紹(如要全文轉貼請先留言詢問),轉載引用請註明來源 ouoholly 的倉庫,謝謝!

評論