-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathkagiroi.schema.yaml
More file actions
181 lines (161 loc) · 5.15 KB
/
Copy pathkagiroi.schema.yaml
File metadata and controls
181 lines (161 loc) · 5.15 KB
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
schema:
schema_id: kagiroi
name: カギロイ
icon: kagiroi.ico
version: '20250717'
author:
- kuroame
description: |
スマートな日本語入力。
dependencies:
- kagiroi_romaji
- kagiroi_kanji
- kagiroi_ansikana
- kagiroi_szromaji
- kagiroi_matrix
# - moran
# - mungyeong
switches:
- name: ascii_mode
reset: 0
states: [ あ, 英字 ]
- options: [ hiragana, katakana, hw_katakana]
reset: 0
states: [ ひらがな, カタカナ, カタカナ]
- name: full_shape
states: [ 半角, 全角 ]
- name: ascii_punct
states: [ 。,, ., ]
- name: emoji
states: [ 🈚, 🈶 ]
engine:
processors:
- ascii_composer
# - lua_processor@*mungyeong/mungyeong_hangul_speller # for mungyeong revserse lookup
- recognizer
- key_binder
- lua_processor@*kagiroi/kagiroi_kana_speller # convert raw input to hiragana
- speller
- punctuator
- selector
- navigator
- express_editor
segmentors:
- ascii_segmentor
- matcher
- abc_segmentor
- punct_segmentor
- fallback_segmentor
translators:
- punct_translator
# - reverse_lookup_translator@mungyeong # for kagiroi # for mungyeong revserse lookup
# - reverse_lookup_translator@moran # for kagiroi # for moran revserse lookup
- table_translator@custom_phrase
- lua_translator@*kagiroi/kagiroi_translator
filters:
- simplifier@emoji
- uniquifier
speller:
__include: kagiroi:/alphabet/3_dan_hira
# use 4_dan_hira if you want to use ansikana or other layout that requires 4 rows of keys
# __include: kagiroi:/alphabet/4_dan_hira
translator:
dictionary: kagiroi
enable_user_dict: true
enable_sentence: false
enable_completion: false
tag: kagiroi
custom_phrase:
dictionary: ""
user_dict: kagiroi_custom_phrases
db_class: stabledb
enable_completion: false
enable_sentence: false
punctuator:
__patch:
- kagiroi:/punct/3_dan
# use 4_dan if you want to use ansikana or other layout that requires 4 rows of keys
# - kagiroi:/punct/4_dan
recognizer:
import_preset: default
patterns:
moran: "^C[a-z]*$"
mungyeong: '^K(?:(?:(?:\xEA[\xB0-\xBF]|\xEB[\x80-\xBF]|\xEC[\x80-\xBF]|\xED[\x80-\x9D])[\x80-\xBF]|\xED\x9E[\x80-\xA3]|\xE3\x84[\xB1-\xBF]|\xE3\x85[\x80-\xA3])|[a-zA-Z])*$'
abc_segmentor:
extra_tags:
- kagiroi
editor:
bindings:
Return: commit_script_text
key_binder:
import_preset: default
bindings:
__patch:
- kagiroi:/key_bindings/paging_with_minus_equal # comment this line out to free -= for use in 4-dan layouts
- kagiroi:/key_bindings/kagiroi_switches
emoji:
opencc_config: kagiroi_emoji.json
option_name: emoji
tips: none
kagiroi_kanji:
dictionary: kagiroi_kanji
mungyeong:
dictionary: mungyeong.extended
target: kagiroi_kanji
prefix: 'K'
tag: mungyeong
tips: "〔문경〕"
layout: dubeolsik
preedit_format:
- xform/^K//
auto_space: false
moran:
dictionary: moran.chars
target: kagiroi_kanji
prefix: "C"
tips: "〔魔然〕"
tag: moran
preedit_format:
- xform/^C//
kagiroi:
# Choose the input method layout. Whichever layout you select,
# you must also add its corresponding schema file to the dependencies list in your schema
# See kagiroi_xxx.dict.yaml to check the actual definition of the layout
# options:
# - romaji: Similar to the standard Romaji input pre-installed on most operating systems
# - szromaji: A custom, extended Romaji layout. (Note: Currently in early development)
# - ansikana: Kana input (like a Japanese physical keyboard) adapted for a standard ANSI keyboard
# (Note: Kana input will need a 4-dan alphabet/punctuator`)
layout: romaji
speller:
__include: kagiroi:/alphabet/3_dan
# use 4_dan if you want to use ansikana or other layout that requires 4 rows of keys
# __include: kagiroi:/alphabet/4_dan
translator:
sentence:
# number of sentence candidates
size: 2
# allow table words to participate in sentence formation (only after being committed)
allow_table_word: false
# Mapping input during translation, it's a convenient way to tweak input
# without affecting the behavior of the kana speller
input_mapping:
# Explain trailing n as ん, this is useful when using romaji layout
# since you can avoid typing n twice to get ん
- xform/^(.*)n$/$1ん$/
# for szromaji users
# - xform/^(.*)a$/$1あ$/
# - xform/^(.*)i$/$1い$/
# - xform/^(.*)u$/$1う$/
# - xform/^(.*)e$/$1え$/
# - xform/^(.*)o$/$1お$/
# Gikun (義訓) is a powerful feature for personalizing your dictionary.
# It allows you to associate a non-standard reading (what you type) with a specific word or phrase (the result)
# For example: The word "未来" (standard reading: みらい), with Gikun, you could create
# a custom entry like "あす;未来" to make rime suggest "未来" when you type "あす"
gikun:
# Enable or disable the Gikun feature
enable: true
# The delimiter to separate the reading and the text of the word
# Note: This character must also be added to your `speller/alphabet` to be recognized by the speller
delimiter: ";"