-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxhsj.schema.yaml
91 lines (81 loc) · 1.96 KB
/
xhsj.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
# Rime schema settings
# encoding: utf-8
schema:
schema_id: xhsj
name: 小鹤四角
version: "0.24"
author:
- Schummacher
description: |
參考以下作品而創作:
* 小鹤音形 - 提供本方案的音码部分
* 四角号码 - 提供本方案的形码部分
* 星空键道 - 提供本方案的顶功灵感
switches:
- name: ascii_mode
reset: 0
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
- abc_segmentor
- punct_segmentor
- fallback_segmentor
translators:
- punct_translator
- table_translator@custom_phrase
- reverse_lookup_translator
- table_translator
filters:
# - simplifier
- uniquifier
speller:
alphabet: "zyxwvutsrqponmlkjihgfedcba1234567890QWERTYUIOASDFGHJKLZXCVBNM"
auto_select: true
translator:
dictionary: xhsj
enable_charset_filter: true
enable_completion: true
enable_encoder: true
enable_sentence: false
enable_user_dict: true
encode_commit_history: true
max_phrase_length: 12
# preedit_format:
# - xlit|0123456789|亠一丨丶十扌口乛八小|
# comment_format:
# - xlit|0123456789|亠一丨丶十扌口乛八小|
custom_phrase:
dictionary: ""
user_dict: custom_phrase
db_class: stabledb
enable_completion: false
enable_sentence: false
punctuator:
import_preset: symbols
recognizer:
import_preset: default
patterns:
punct: '^/([0-9]0?|[A-Za-z]+)$'
reverse_lookup: "`[a-z]*'?$"
# style:
# font_face: "TH-Tshyn-P0"
# font_point: 18 #字號
menu:
alternative_select_labels: [ 甲, 乙, 丙, 丁, 戊 ]
alternative_select_keys: ABCDE #如編碼字符佔用數字鍵則須另設選字鍵
# page_size: 5 #選單每䈎顯示個數