-
Notifications
You must be signed in to change notification settings - Fork 0
/
mungyeong.schema.yaml
103 lines (90 loc) · 2.34 KB
/
mungyeong.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
schema:
schema_id: mungyeong
name: 文鏡
version: '20241213'
author:
- kuroame
description: |
初步者를 為한 韓国語 入力機
dependencies:
- mungyeong_dubeolsik
- mungyeong_romaja
- mungyeong_reverse
switches:
- name: ascii_mode
reset: 0
states: [ 한, 영 ]
- name: meaning
reset: 1
states: [ 無, 有 ]
engine:
processors:
- ascii_composer
- recognizer
- key_binder
- speller
- punctuator
- selector
- navigator
# Space is not to commit the first candidate, but to commit the current script text,
# just like the ordinary Korean input method.
- lua_processor@*mungyeong/mungyeong_auto_space_processor
- express_editor
segmentors:
- ascii_segmentor
- matcher
- abc_segmentor
- punct_segmentor
- fallback_segmentor
translators:
- punct_translator
- reverse_lookup_translator
- lua_translator@*mungyeong/mungyeong_translator
filters:
- simplifier@meaning
- uniquifier
speller:
alphabet: abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
delimiter: " '"
translator:
dictionary: mungyeong.extended
enable_user_dict: true
enable_completion: false
enable_sentence: false
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: [abc]
reverse_lookup:
dictionary: mungyeong_reverse.extended
prefix: "`"
suffix: "'"
tips: "〔逆〕"
recognizer:
import_preset: default
patterns:
reverse_lookup: "^`[a-z]*'?$"
key_binder:
import_preset: default