-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdouble_pinyin.custom.yaml
73 lines (62 loc) · 2.01 KB
/
double_pinyin.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# 一個優秀的雙拼輸入法: 西文 + 中文默認西文標點
# 支持 LaTeX 公式快捷輸入, etc.
# 從此需要習慣使用 enter 鍵入當前的英文內容. 把它設置成 tab 就更好了.
# 用輸入的鍵碼而非對應的全拼: 這個需要修改.
patch:
schema/name: 自然碼雙拼⟨魔改⟩
# 依赖于 rime-latex 以及 rime-agda
schema/dependencies/+:
- latex
- agda_input
# 默認英文標點符號
switches/@0/reset: 0
switches/@3/reset: 1
# 設置 LaTeX 輸入結合雙拼輸入 (應當製作一個新的輸入法)
# 把反斜槓 `\` 加入字母表
speller/alphabet: zyxwvutsrqponmlkjihgfedcba\
speller/delimiter: "'"
speller/auto_select: true
# 並且在標點階段處理, 這樣的話就可以處理全角和半角, 不用忍受奇怪的候選了
# punctuator/half_shape:
# "\\": ["\\"]
# punctuator/full_shape:
# "\\": ["、", "\"]
engine/+:
# 加入 latex 的碼錶, 如果我想加入自己的碼錶, 我就應該在這裏加上
# 以及 Agda 輸入法 (現已加入全家桶)
translators/+:
- table_translator@latex
- table_translator@agda_input
recognizer/patterns/+:
# 將下面的模式都映射到 symbol tag, 並且啓用下面的兩張表去查對應的符號
symbol: "^\\\\(\\D|(\\\\\\d))+$"
latex:
tag: symbol
dictionary: latex
prefix: '\'
enable_sentence: false
enable_completion: true
enable_user_dict: true
user_dict: custom_latex_user
db_class: tabledb
tips: "[LaTeX]"
agda_input:
tag: symbol
dictionary: agda_input
prefix: '\'
enable_sentence: false
enable_completion: true
enable_user_dict: true
user_dict: custom_agda_user
db_class: tabledb
tips: "[Agda]"
switches/@next:
name: emoji_suggestion
reset: 1
states: ["🈚︎", "🈶️"]
"engine/filters/@before 0": simplifier@emoji_suggestion
emoji_suggestion:
opencc_config: emoji.json
option_name: emoji_suggestion
tips: none
inherit_comment: false