-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdouble_pinyin_flypy.custom.yaml
45 lines (42 loc) · 1.73 KB
/
double_pinyin_flypy.custom.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# double_pinyin.custom.yaml
#
# 補靪功能:將小鶴雙拼的詞庫修改爲朙月拼音擴充詞庫
#
# 作者:瑾昀 <cokunhui@gmail.com>
#
# 部署位置:
# ~/.config/ibus/rime (Linux)
# ~/Library/Rime (Mac OS)
# %APPDATA%\Rime (Windows)
#
# 於重新部署後生效
#
#
# 注意:本補靪適用於所有雙拼方案(「自然碼雙拼」、「智能ABC雙拼」、「小鶴雙拼」、「MSPY雙拼」)。
# 只須將本 custom.yaml 的前面名字改爲對應的輸入方案名字然後放入用戶文件夾重新部署即可。如 double_pinyin_abc.custom.yaml。
# 朙月拼音用戶請使用 luna_pinyin.custom.yaml。
#
#
# 附雙拼方案與其對應的 id 一覽表:
# 輸入方案 id
# 自然碼雙拼 double_pinyin
# 智能ABC雙拼 double_pinyin_abc
# 小鶴雙拼 double_pinyin_flypy
# MSPY雙拼 double_pinyin_mspy
#
patch:
switches: # 注意縮進
- name: ascii_mode
reset: 0 # reset 0 的作用是當從其他輸入方案切換到本方案時,
states: [ 中文, 西文 ] # 重設爲指定的狀態,而不保留在前一個方案中設定的狀態。
- name: full_shape # 選擇輸入方案後通常需要立即輸入中文,故重設 ascii_mode = 0;
states: [ 半角, 全角 ] # 而全/半角則可沿用之前方案中的用法。
- name: simplification
reset: 1 # 增加這一行:默認啓用「繁→簡」轉換。
states: [ 漢字, 汉字 ]
- name: ascii_punct
states: [ 。,, ., ]
# 載入朙月拼音擴充詞庫
"translator/dictionary": luna_pinyin.extended
# librime-lua 输入动态时间和日期
"engine/translators/@6": lua_translator@date_translator