-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathhangeul.schema.yaml
113 lines (103 loc) · 4.28 KB
/
hangeul.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
# Rime schema settings
# encoding: utf-8
# 《韓語(洋蔥鍵位)設定頁》
schema:
schema_id: hangeul # 注意此ID與文件名裏 .schema.yaml 之前的部分相同
name: ❃韓語形碼❃
version: "201908"
author:
- 『洋蔥』
description: |
韓文形碼
switches:
- name: ascii_mode
reset: 0
states: [ "韓文", "英文" ]
- name: full_shape
states: [ "半形", "全形" ]
engine:
processors:
- ascii_composer
- recognizer
- key_binder
- speller
- punctuator
- selector
- navigator
- express_editor
# - fluency_editor
segmentors:
- ascii_segmentor
- matcher
- abc_segmentor
- punct_segmentor
- fallback_segmentor
translators:
- punct_translator
- table_translator@hangeul_phrase
- script_translator
menu:
alternative_select_keys: "0123456789"
page_size: 10
speller:
alphabet: "abcdefghijklmnopqrstuvwxyz;"
delimiter: "'"
translator:
dictionary: hangeul.extended
enable_user_dict: true
enable_sentence: false
enable_completion: false
preedit_format:
- "xlit|abcdefghijklmnopqrstuvwxyz;'|ABCDEFGHIJKLMNOPQRSTUVWXYZ㉆ |"
comment_format:
- "xlit|abcdefghijklmnopqrstuvwxyz;'|ABCDEFGHIJKLMNOPQRSTUVWXYZ㉆ |"
disable_user_dict_for_patterns:
- ^[a-z]{1}$
- ^[a-z]{2}$
- ^[a-z]{3}$
hangeul_phrase:
dictionary: ""
user_dict: hangeul_phrase
db_class: tabledb #stabledb
enable_completion: false
enable_sentence: false
initial_quality: "0"
punctuator:
half_shape:
"`" : { commit: "₩" }
"|" : { commit: " " }
"$" : [ "$", "₩", "$", "¥", "¥", "€", "£", "£", "₤", "¢", "¢", "₵", "₡", "¤", "৳", "฿", "₠", "₢", "₣", "₥", "₦", "₧", "₪", "₫", "₭", "₮", "₯", "₰", "₱", "₲", "₳", "₴", "₶", "₷", "₸", "₹", "₺", "₨", "﷼" ]
"%" : [ "%", "%", "‰", "‱", "°", "℃", "℉", "Å", "㏃", "㏆", "㎈", "㏄", "㏅", "㎝", "㎠", "㎤", "㏈", "㎗", "㎙", "㎓", "㎬", "㏉", "㏊", "㏋", "㎐", "㏌", "㎄", "㎅", "㎉", "㎏", "㎑", "㏍", "㎘", "㎞", "㏎", "㎢", "㎦", "㎪", "㏏", "㎸", "㎾", "㏀", "㏐", "㏓", "㎧", "㎨", "㎡", "㎥", "㎃", "㏔", "㎆", "㎎", "㎒", "㏕", "㎖", "㎜", "㎟", "㎣", "㏖", "㎫", "㎳", "㎷", "㎹", "㎽", "㎿", "㏁", "㎁", "㎋", "㎚", "㎱", "㎵", "㎻", "㏘", "㎩", "㎀", "㎊", "㏗", "㏙", "㏚", "㎰", "㎴", "㎺", "㎭", "㎮", "㎯", "㏛", "㏜", "㎔", "㏝", "㎂", "㎌", "㎍", "㎕", "㎛", "㎲", "㎶", "㎼" ]
"&" : [ "&", "&", "#", "@", ⅟, ½, ↉, ⅓, ⅔, ¼, ⅕, ⅖, ⅗, ⅘, ⅙, ⅚, ⅐, ⅛, ⅜, ⅝, ⅞, ⅑, ⅒ ]
"*" : [ "*", *, "﹡", ※, ❂, ★, ☆, ✡, ❋, ❊, ❉, ❈, ❇, ❆, ❅, ❄, ❃, ❁, ❀, ✿, ✾, ✽, ✼, ✻, ✺, ✹, ✸, ✷, ✶, ✵, ✴, ✳, ✲, ✱, ✰, ✯, ✮, ✭, ✬, ✫, ✪, ✩, ✧, ✦, ✥, ✤, ✣, ✢, ⛤, ⛥, ⛦, ⛧ ]
"^" : [ "^", "+", "-", "×", "÷", "±", "=", "≠", "=", "+", "-", "<", ">", "∈", "∏", "∑", "≮", "≯", "∕", "√", "∝", "∞", ∟, ∠, ∥, ∧, ∨, ∩, ∪, ∫, ∮, ∴, ∵, ∷, ∽, ≈, ≌, ≒, ≡, ≤, ≥, ≦, ≧, ⊕, ⊙, ⊥, ⊿, ㏑, ㏒ ]
"=" : { commit: "=" }
"-" : { commit: "-" }
"," : { commit: "," }
"." : { commit: "." }
";" : [ ";", "…", "·", "`", "'", "\"" ]
"'" : { pair: [ "‘", "’" ] }
"\"" : { pair: [ "“", "”" ] }
key_binder:
import_preset: default
bindings:
- {accept: comma, send: comma, when: has_menu}
- {accept: period, send: period, when: has_menu}
- {accept: minus, send: minus, when: has_menu}
- {accept: equal, send: equal, when: has_menu}
- {accept: Left, send: Page_Up, when: paging}
- {accept: Right, send: Page_Down, when: paging}
- {accept: Tab, send: Shift+Right, when: composing}
- {accept: Shift+space, send: Down, when: has_menu}
- {accept: Return, send: space, when: paging}
- {accept: Return, send: space, when: has_menu}
- {accept: space, send: bar, when: has_menu}
- {accept: space, send: space, when: paging}
editor:
bindings:
Shift+Return: commit_raw_input
recognizer:
patterns:
uppercase: "[A-Z][-_+.'0-9A-Za-z]*$"
email: "^[A-Za-z][-_.0-9A-Za-z]*@.*$"
url: "^(www[.]|https?:|ftp[.:]|mailto:|file:).*$|^[a-z]+[.].+$"