-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmungyeong.schema.yaml
More file actions
119 lines (107 loc) · 3.09 KB
/
Copy pathmungyeong.schema.yaml
File metadata and controls
119 lines (107 loc) · 3.09 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
schema:
schema_id: mungyeong
name: 文鏡
version: '20250807'
author:
- kuroame
description: |
韓国語入力機
dependencies:
- mungyeong_dubeolsik
- mungyeong_romaja
- mungyeong_reverse
# - kagiroi
# - moran
switches:
- name: ascii_mode
states: [ 한, 영 ]
- name: candidates
reset: 1
states: [ 無, 漢 ]
- name: meaning
states: [ 🚫📖 , 📖 ]
engine:
processors:
- ascii_composer
- lua_processor@*mungyeong/mungyeong_hangul_speller
# - lua_processor@*kagiroi/kagiroi_kana_speller # for kagiroi revserse lookup
- recognizer
- key_binder
- punctuator
- selector
- navigator
- express_editor
segmentors:
- ascii_segmentor
- matcher
- punct_segmentor
- fallback_segmentor
translators:
- punct_translator
# - reverse_lookup_translator@kagiroi # for kagiroi # for kagiroi revserse lookup
# - reverse_lookup_translator@moran # for kagiroi # for moran revserse lookup
- lua_translator@*mungyeong/mungyeong_translator
filters:
- simplifier@meaning
- uniquifier
translator:
dictionary: mungyeong.extended
enable_user_dict: true
enable_completion: false
enable_sentence: false
preedit_format:
- xform/ //
punctuator:
__include: mungyeong:/punctuator
editor:
bindings:
Return: commit_script_text
mungyeong:
# Choose the layout you want to use.
# 2-set and romaja layouts are provided by default.
# You can also define your own layout following these steps:
# 1. Create new files:
# - mungyeong_your_layout.schema.yaml (reference: mungyeong_dubeolsik.schema.yaml)
# - mungyeong_your_layout.dict.yaml (reference: mungyeong_dubeolsik.dict.yaml)
# 2. Add your layout as a dependency in the schema/dependencies of this file.
# 3. Change the layout value: your_layout
# 4. Re-deploy to apply changes
layout: dubeolsik # dubeolsik, romaja
# Automatically insert a space after selecting a candidate or committing text
auto_space: true
meaning:
option_name: meaning
opencc_config: mungyeong_hanja_meaning.json
show_in_comment: true
tips: all
comment_form:
- "xform/-/ /"
tags: [mungyeong]
kagiroi:
dictionary: kagiroi_kanji
prefix: "J"
tag: kagiroi
tips: 〔カギロイ〕
layout: romaji
preedit_format:
- xform/^J//
speller:
alphabet: -qwertyuiopasdfghjkl;zxcvbnm
moran:
dictionary: moran.chars
prefix: "C"
tips: "〔魔然〕"
tag: moran
preedit_format:
- xform/^C//
recognizer:
import_preset: default
patterns:
kagiroi: '^(?:J|\xE3\x81[\x81-\xBF]|\xE3\x82[\x80-\x9F]|\xE3\x83\xBC)(?:\xE3\x81[\x81-\xBF]|\xE3\x82[\x80-\x9F]|\xE3\x83\xBC|[a-z\-;])*$'
moran: "^C[a-z]*$"
mungyeong: '^(?:(?:\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])(?:(?:(?:\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])*$'
key_binder:
import_preset: default
bindings:
__patch:
- mungyeong:/key_bindings/mungyeong_switches