forked from cnfeat/Rime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdouble_pinyin_flypy.custom.yaml
executable file
·95 lines (89 loc) · 2.9 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
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
patch:
schema/dependencies: {}
switches:
- name: ascii_mode
reset: 0
states: [ 中文, 西文 ]
- name: emoji_suggestion
reset: 1
states: [ "Yes", "No" ]
- name: full_shape
states: [ 半角, 全角 ]
- name: zh_simp
reset: 1
states: [ 漢字, 汉字 ]
- name: ascii_punct
states: [ 。,, ., ]
engine/translators:
- punct_translator
- script_translator
engine/filters:
- simplifier@emoji_suggestion
- simplifier@zh_simp
- uniquifier
# - charset_filter@gbk
- single_char_filter
### 此处注释 emoji
# emoji_suggestion:
# opencc_config: emoji.json
# option_name: emoji_suggestion
# tips: all
reverse_lookup: {}
punctuator:
import_preset: default
symbols:
"/fs": [½, ‰, ¼, ⅓, ⅔, ¾, ⅒ ]
"/bq": [😂️, 😅️, ☺️, 😱️, 😭️, 😇️, 🙃️, 🤔️, 💊️, 💯️, 👍️, 🙈️, 💩️, 😈️ ]
"/dn": [⌘, ⌥, ⇧, ⌃, ⎋, ⇪, , ⌫, ⌦, ↩︎, ⏎, ↑, ↓, ←, →, ↖, ↘, ⇟, ⇞]
"/fh": [ ©, ®, ℗, ℠, ™, ℡, ⓘ, ♂, ♀, ☉, ☊, ☋, ☌, ☍, ☐, ☑︎, ☒, ☜, ☝, ☞, ☟, ✎, ✄, ♲, ♻, ⚐, ⚑, ⚠]
"/xh": [ *, ×, ✱, ★, ☆, ✩, ✧, ❋, ❊, ❉, ❈, ❅, ✿, ✲]
half_shape:
"#": "#"
"`": "`"
"~": "~"
"@": "@"
"=": "="
"/": ["/", "÷", "、"]
"*": ["*", "×", "·", "・", "※", "*", "❂"]
'\': ["、", '\']
"'": {pair: ["「", "」"]}
"\"": "\""
"[": ["[", "【"]
"]": ["]", "】"]
"{": ["{", "〖", "『"]
"}": ["}", "〗", "』"]
_: ["——", "_"]
"|": "|"
"(": ["(", "("]
")": [")", ")"]
"$": ["¥", "$", "€", "£", "¢", "¤"]
"<": ["<", "《", ",", "〈", "«"]
">": [">", "》", ".", "〉", "»"]
recognizer:
import_preset: default
patterns:
punct: "^/([a-z]+|[0-9]0?)$"
html: "^<[a-z]+>$"
code: "[a-zA-Z]+(*$"
url: "^(www[.]|https?:|ftp[.:]|mailto:|file:).*$|^[a-z]{1,10}[.:_-].*$"
### 精简 simp
"translator/dictionary": pinyin_simp
"translator/preedit_format": {}
### 双拼使用自定义词典 custom_phrase.txt
custom_phrase:
dictionary: ""
user_dict: custom_phrase
db_class: stabledb
enable_completion: false
enable_sentence: false
initial_quality: 1
"engine/translators/@5": table_translator@custom_phrase
### 加載 easy_en 依賴
# "schema/dependencies/@1": easy_en
# "engine/translators/@4": table_translator@english # 載入翻譯英文的碼表翻譯器,取名爲 english
# english: # english 翻譯器的設定項
# dictionary: easy_en
# spelling_hints: 9
# enable_completion: false # 是否启用英文输入联想补全
# enable_sentence: false
# initial_quality: 0 # 调整英文候选词的位置,如 -3 会更靠后