-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjk_ascii.schema.yaml
120 lines (108 loc) · 2.59 KB
/
jk_ascii.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# Rime schema
# encoding: utf-8
schema:
schema_id: jk_ascii
name: 英文·知心
author:
- 发明人 Jack Liu <https://aituyaa.com>
description: |
- 知心字符,一款快速输入数字和预设字符的键盘式输入法方案
- https://github.com/loveminimal/rime-jk
icon: "assets/pr.ico"
ascii_icon: 'assets/ascii.ico'
switches:
__include: jk.yaml:/switches
engine:
processors:
- chord_composer
- key_binder
- recognizer
- speller
- punctuator
- selector
- navigator
- express_editor
segmentors:
- matcher
- abc_segmentor
- punct_segmentor
- fallback_segmentor
translators:
- echo_translator
- punct_translator
- table_translator
- reverse_lookup_translator
- lua_translator@*force_gc
filters:
- lua_filter@*prettify_comment
- uniquifier
# === speller ===
speller:
# [ ✗上屏 ]
# 如果不想让什么标点直接上屏,可以加在 alphabet,或者编辑标点符号为两个及以上的映射
# alphabet: ·
alphabet: Z~
# alphabet: zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA
# alphabet: zZYXWVUTSRQPONMLKJIHGFEDCBA
# [ ✓上屏 ]
# initials 定义仅作为始码的按键,排除 ` 让单个的 ` 可以直接上屏
initials: zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA`
# initials: zyxwvutsrqponmlkjihgfedcba`
chord_composer:
__include: jk.yaml:/chord_composer_mini
# __include: jk_pinyin_bj.schema.yaml:/chord_composer
translator:
dictionary: jk_ascii
enable_sentence: false
enable_user_dict: false
enable_word_completion: true
initial_quality: 1.1
comment_format: {comment}
punctuator:
import_preset: default
symbols:
__include: symbols_z:/symbols
half_shape: &symtable
',' : { commit: ',' }
'.' : { commit: '.' }
'<' : '<'
'>' : '>'
'/' : '/'
'?' : { commit: '?' }
';' : { commit: ';' }
':' : { commit: ':' }
"'" : "'"
'"' : '"'
'\' : '\'
'|' : '|'
'`' : '`'
'~' : '~'
'!' : { commit: '!' }
'@' : '@'
'#' : '#'
'%' : '%'
'$' : '$'
'^' : '^'
'&' : '&'
'*' : '*'
'(' : '('
')' : ')'
'-' : '-'
'_' : '_'
'+' : '+'
'=' : '='
'[' : '['
']' : ']'
'{' : '{'
'}' : '}'
full_shape: *symtable
key_binder:
import_preset: default
# bindings/+:
# - { when: always, accept: Control+u, send: '_' }
# - { when: always, accept: Control+i, send: '-' }
# - { when: always, accept: Control+o, send: '=' }
recognizer:
__include: jk.yaml:/recognizer
reverse_lookup:
__include: jk.yaml:/reverse_lookup