-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathKappaJP.schema.yaml
111 lines (101 loc) · 2.71 KB
/
KappaJP.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
# Rime schema
# encoding: utf-8
schema:
name: "河童五筆"
schema_id: KappaJP
version: "2022.8.16.v1.8.2"
author:
- "发明人 王永民"
- "零尾河童 <sanbikappa@qq.com>"
- "Rime schema by 紅葉猫 <momijineko@foxmail.com>"
description: |
河童日本語五筆入力方案
碼表源自 零尾河童
敲 z 鍵鍵入符號
右Shift進行仮名變換
四碼自動上屏
分号二重、z 鍵三重、空格上屏
switches:
- name: ascii_mode
reset: 0
states: ["かな", "英数"]
- name: kata
reset: 0
states: [ひら, カタ]
- name: full_shape
reset: 1
states: ["半角", "全角"]
- name: ascii_punct
states: [",。", ",."]
engine:
filters:
- simplifier@kata
- uniquifier
processors:
- ascii_composer
- recognizer
- key_binder
- speller
- punctuator
- selector
- navigator
- express_editor
segmentors:
- ascii_segmentor
- abc_segmentor
- matcher
- punct_segmentor
- fallback_segmentor
translators:
#- echo_translator
- punct_translator
- table_translator
speller:
max_code_length: 4
auto_select: true
auto_select_unique_candidate: true
kata:
option_name: kata
opencc_config: hira2kata.json
tags: [abc]
translator:
dictionary: KappaJP
enable_charset_filter: true
enable_user_dict: false
enable_sentence: false
enable_encoder: true
encode_commit_history: false
max_phrase_length: 4
enable_completion: true
preedit_format:
#- xform/^([a-z]*)$/$1|\U$1\E/
#- "xlit|abcdefghijklmnopqrstuvwxyz|工子又大月土王目水日口田山已火之金白木禾立女人纟言符|"
comment_format:
#- "xlit|abcdefghijklmnopqrstuvwxyz~|工子又大月土王目水日口田山已火之金白木禾立女人纟言符~|"
disable_user_dict_for_patterns:
- "^z.*$"
- "^yyy.*$"
punctuator:
full_shape:
",": ["、", ","]
half_shape:
",": ["、", ","]
import_preset: default
recognizer:
import_preset: default
ascii_composer:
switch_key:
Shift_L: inline_ascii
Shift_R: noop
customization: 1148821450
key_binder:
bindings:
- { accept: semicolon, send: 3, when: has_menu }
- { accept: apostrophe, send: 2, when: has_menu }
- { accept: "Shift+space", toggle: full_shape, when: always }
- { accept: minus, send: Page_Up, when: has_menu }
- { accept: equal, send: Page_Down, when: has_menu }
- { accept: ISO_Left_Tab, send: Page_Up, when: composing }
- { accept: "Shift+Tab", send: Page_Up, when: composing }
- { accept: Tab, send: Page_Down, when: composing }
import_preset: default