-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathloengfan.schema.yaml
96 lines (86 loc) · 2.1 KB
/
loengfan.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
# Rime schema
# encoding: utf-8
schema:
schema_id: loengfan
name: 粵語兩分
version: "2020.08.05"
author:
- TianHeng <[email protected]>
- Ayaka Mikazuki <[email protected]>
description: |-
The Cantonese version of Liang Fen (兩分) input method.
dependencies:
- cangjie5
switches:
- name: ascii_mode
states: [ 中文, 英文 ]
- name: full_shape
states: [ 半形, 全形 ]
- name: ascii_punct
states: [ 。,, ., ]
engine:
processors:
- ascii_composer
- recognizer
- key_binder
- speller
- punctuator
- selector
- navigator
- express_editor
segmentors:
- ascii_segmentor
- matcher
- affix_segmentor@cangjie5
- abc_segmentor
- punct_segmentor
- fallback_segmentor
translators:
- punct_translator
- script_translator
- table_translator@cangjie5
filters:
- simplifier
- uniquifier
- reverse_lookup_filter
speller:
alphabet: zyxwvutsrqponmlkjihgfedcba
delimiter: " '"
algebra:
- derive/[123456]// # 忽略聲調
- xform/1/v/ # 陰平
- xform/4/vv/ # 陽平
- xform/2/x/ # 陰上
- xform/5/xx/ # 陽上
- xform/3/q/ # 陰去
- xform/6/qq/ # 陽去
translator:
dictionary: loengfan
spelling_hints: 20
cangjie5:
tag: cangjie5
dictionary: cangjie5
enable_user_dict: false
prefix: "v"
suffix: ";"
tips: 〔倉頡五代〕
preedit_format:
- 'xform/^([a-z]*)$/$1\t(\U$1\E)/'
- "xlit|ABCDEFGHIJKLMNOPQRSTUVWXYZ|日月金木水火土竹戈十大中一弓人心手口尸廿山女田難卜符|"
comment_format:
- "xlit|abcdefghijklmnopqrstuvwxyz~|日月金木水火土竹戈十大中一弓人心手口尸廿山女田難卜符~|"
disable_user_dict_for_patterns:
- "^z.*$"
- "^yyy.*$"
reverse_lookup:
tags: [ cangjie5 ]
overwrite_comment: false
dictionary: loengfan
punctuator:
import_preset: default
key_binder:
import_preset: default
recognizer:
import_preset: default
patterns:
cangjie5: "^v[a-z]*;?$"