-
Notifications
You must be signed in to change notification settings - Fork 0
/
four_corner_method.schema.yaml
106 lines (97 loc) · 2.63 KB
/
four_corner_method.schema.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
96
97
98
99
100
101
102
103
104
105
106
# Rime schema
# encoding: utf-8
schema:
name: "四角號碼檢字法"
schema_id: four_corner_method
version: 0.1
author:
- "發明人 王雲五"
dependencies:
- pin
description: |
碼表自瑾昀得,雪齋整理製作
以「qwertyuiop」卽第一排字母表示四角號碼「1234567890」
顯示字的Unicode編碼,格式爲〖U+xxxx〗
switches:
- name: ascii_mode
reset: 0
states:
- "中文"
- "西文"
- name: full_shape
reset: 0
states:
- "半角"
- "全角"
engine:
filters:
- simplifier
- uniquifier
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
- reverse_lookup_translator
- table_translator
speller:
alphabet: qwertyuiop
# alphabet: 1234567890
delimiter: " ' "
recognizer:
import_preset: default
patterns:
email: "^[a-z][-_.0-9a-z]*@.*$"
uppercase: "^[A-Z][-_+.'0-9A-Za-z]*$"
url: "^(www[.]|https?:|ftp:|mailto:).*$"
reverse_lookup: "z[a-z]*'?$"
# 不須「U+」提示者,刪去以下兩項「#」符號卽可
translator:
comment_format:
- xform/~?;([0-9A-F]+)$/〖U+$1〗/
- "xlit|qwertyuiop~|1234567890〜|"
# - xform/U\+//
dictionary: four_corner_method
enable_charset_filter: false # 是否開啓字符集過濾
enable_encoder: false # 是否開啓自動造詞
encode_commit_history: false # 是否對已上屛詞自動成詞
enable_completion: true # 提前顯示尚未輸入完整碼的字
enable_sentence: false # 太极图自动组句
enable_user_dict: false # 是否开启用户词典(用户词典记录动态字词频、用户词
max_phrase_length: 40 # 最大自動成詞詞長
always_show_comments: true
comment_format: # 提示碼自定義
- xform/~// # 去掉编码提示前的波浪线
preedit_format:
- "xlit|qwertyuiop|1234567890|"
spelling_hint: 20
reverse_lookup:
comment_format:
- xform/;([0-9A-F]+)$/〖U+$1〗/
- "xlit|qwertyuiop|1234567890|"
# - xform/U\+//
dictionary: pin
prism: mk_fy # 把这一行注掉就还原为全拼反查
preedit_format:
- "xform/([nl])v/$1ü/"
- "xform/([nl])ue/$1üe/"
- "xform/([jqxy])v/$1u/"
prefix: "z"
suffix: "'"
tips: "〔MK雙拼〕"
key_binder:
import_preset: default
punctuator:
import_preset: default