forked from lippmann/lrime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zrm2000.schema.yaml
98 lines (86 loc) · 2.69 KB
/
zrm2000.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
# Rime schema settings
# vim: set sw=2 sts=2 et:
# encoding: utf-8
schema:
schema_id: zrm2000
name: "自然码辅码版"
version: "2009新春版"
author:
- 发明人: 周志农 先生
description: |
描 述: 自然码输入系统2000, 2009新春版
码 表: 《自然码2009新春版》V7.27
网 址: http://www.zrm.com.cn/
switches:
- name: ascii_mode
reset: 0
states: [ 中文, 西文 ]
- name: full_shape
states: [ 半角, 全角 ]
- name: simplification
states: [ 漢字, 汉字 ]
- name: ascii_punct
states: [ 。,, ., ]
engine:
processors:
- ascii_composer
- recognizer
- key_binder
- speller
- punctuator
- selector
- navigator
- express_editor
segmentors:
- ascii_segmentor
- matcher
- abc_segmentor
- punct_segmentor
- fallback_segmentor
translators:
- echo_translator
- punct_translator
- table_translator@english
- table_translator@custom_phrase
- table_translator
- reverse_lookup_translator
filters:
- simplifier
- uniquifier
- reverse_lookup_filter
speller:
alphabet: ',.abcdefghijklmnopqrstuvwxyz'
initials: 'abcdefghijklmnopqrstuvwxyz'
delimiter: " '"
max_code_length: 6
translator:
dictionary: zrm2000
english:
dictionary: english
enable_completion: true
enable_sentence: true
custom_phrase:
dictionary: ""
user_dict: custom_phrase
db_class: stabledb
enable_completion: false
enable_sentence: false
initial_quality: 1
punctuator:
import_preset: default
key_binder:
import_preset: default
bindings:
# has_menu 对应有候选词的条件
# paging 对应已经有翻页动作的条件
- { when: has_menu, accept: semicolon, send: 2 } # 第2候选键(;)
- { when: has_menu, accept: apostrophe, send: 3 } # 第3候选键(')
#- { when: has_menu, accept: minus, send: Page_Up } # 前翻页键(-):定义has_menu而非paging.候选首页未后移/后翻,确保前翻页键无动作
#- { when: has_menu, accept: equal, send: Page_Down } # 后翻页键(=)
- { when: has_menu, accept: comma, send: Page_Up } # 前翻页键([):定义has_menu而非paging.候选首页未后移/后翻,确保前翻页键无动作
- { when: has_menu, accept: period, send: Page_Down } # 后翻页键(])
#- { when: has_menu, accept: comma, send: comma } # 屏蔽default.yaml定义的前翻键(,)
#- { when: has_menu, accept: period, send: period } # 屏蔽default.yaml定义的后翻键(.)
recognizer:
import_preset: default