我的输入法配置。
- Homebrew:
brew install --cask squirrel - 官网安装
- github release
我使用的 Homebrew 安装。
note:
由于上面提到的配置参考是主要设置的全拼的,而本人是使用双拼,以及还有一些其他的个性化需求,则进一步配置。
主要针对 VSCode、Obsidian、Warp、Terminal 添加了配置。
在 squirrel.custom.yaml 中的 app_options 中添加:
com.apple.Terminal: # 终端
ascii_mode: true
vim_mode: true # 开启vim mode 后,使用 Esc / ctrl + [ 退出 vim 模式时会自动切换为英文输入法
com.nektony.App-Cleaner-SII: # App Cleaner & Uninstaller
ascii_mode: true
com.microsoft.VSCode: # VScode
ascii_mode: true
vim_mode: true
md.obsidian: # Obsidian
ascii_mode: true
vim_mode: true
dev.warp.Warp-Stable: # Warp
ascii_mode: true
vim_mode: true由于原来的配置中已经有设置了一些其他的软件,可以根据自己的需求把原有的删掉。
以 VSCode 为例:
- 在
finder中的应用程序中找到VSCode,在图标上点击右键,选择显示包内容, - 在
contents内有个infop.list文件, 打开该文件(可以用vscode打开)找到CFBundleIdentifier对应的值,如VSCode的为com.microsoft.VSCode,这个就是上面要设置对应软件时用到的值。
由于本人是 lanfan 人,普通话太普通,分不清翘舌,前后鼻音等,故需要此配置。
根据上面提到的配置参考,本人原本参考着 luna_pinyin_simp.custom.yaml 中的模糊拼音设置在 double_pinyin_flypy.custom.yaml 的,但是无法起效,请看本人问题描述,最终无法,配置在了 double_pinyin_flypy.schema.yaml 中。
把以下这段添加到 speller 的 algebra 中,注意要在 xfrom* 的配置前:
# 模糊音定義先於簡拼定義,方可令簡拼支持以上模糊音
- derive/^([zcs])h/$1/ # zh, ch, sh => z, c, s
- derive/^([zcs])([^h])/$1h$2/ # z, c, s => zh, ch, sh
- derive/([aei])ng$/$1n/ # ang =>an, eng => en, ing => in
- derive/([aei])n$/$1ng/ # an => ang, en => eng, in => ing
- derive/^n/l/ # n => l
- derive/^l/n/ # l => n 如我的配置:
speller:
alphabet: zyxwvutsrqponmlkjihgfedcba
delimiter: " '"
algebra:
- erase/^xx$/
- derive/^([jqxy])u$/$1v/
- derive/^([aoe])([ioun])$/$1$1$2/
# 模糊音定義先於簡拼定義,方可令簡拼支持以上模糊音
- derive/^([zcs])h/$1/ # zh, ch, sh => z, c, s
- derive/^([zcs])([^h])/$1h$2/ # z, c, s => zh, ch, sh
- derive/([aei])ng$/$1n/ # ang =>an, eng => en, ing => in
- derive/([aei])n$/$1ng/ # an => ang, en => eng, in => ing
- derive/^n/l/ # n => l
- derive/^l/n/ # l => n
- xform/^([aoe])(ng)?$/$1$1$2/
- xform/iu$/Q/
- xform/(.)ei$/$1W/
- xform...