-
Notifications
You must be signed in to change notification settings - Fork 0
/
dangrvond.schema.yaml
91 lines (82 loc) · 2.1 KB
/
dangrvond.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
# vim: set sw=2 sts=2 et:
# encoding: utf-8
schema:
schema_id: dangrvond
name: 唐韻
version: "2015.09.14"
author:
- 紫雪藍海<[email protected]>
description: |
中古拼音輸方案,根據「廣韻」音系,參考諸家擬音而製作。
switches:
- name: ascii_mode
reset: 0
states: [ 中文, 西文 ]
- name: half_shape
states: [ 全角, 半角 ]
- name: simplification
reset: 0
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
- r10n_translator
- reverse_lookup_translator
filters:
- simplifier
- uniquifier
speller:
alphabet: 'abcdefghijklmnopqrstuvwxyz'
delimiter: " '"
algebra:
- "xform/'//"
- derive/^zz/z/
- derive/^zg/dg/
- derive/^zj/j/
- abbrev/([ptkcxqs]h).+$/$1/ # 聲母簡拼
- abbrev/^(zz).+$/$1/ # 聲母簡拼
- abbrev/^(ng).+$/$1/ # 聲母簡拼
- abbrev/^(nj).+$/$1/ # 聲母簡拼
- abbrev/^(zj).+$/$1/ # 聲母簡拼
- abbrev/^(zg).+$/$1/ # 聲母簡拼
- abbrev/^(tx).+$/$1/ # 聲母簡拼
- abbrev/^(dg).+$/$1/ # 聲母簡拼
- abbrev/^([a-z]).+$/$1/ # 聲母簡拼
- fuzz/^([a-z]{1,2}).+$/$1/ # 以目前Rime的性能,中古拼音方案使用首字母簡拼時卡頓現象比較嚴重,盡量不要使用。本方案替代以每音節取前兩碼爲簡拼。
translator:
dictionary: dangrvond.extended
spelling_hints: 2
# strict_spelling: true
enable_user_dict: true
preedit_format:
- xform/v/ü/
reverse_lookup:
dictionary: wubi86
prefix: "`"
tips: 〔五筆〕
punctuator:
import_preset: symbols
key_binder:
import_preset: default
recognizer:
import_preset: default
patterns:
number: "^[-+]?[0-9][.:0-9]*[%]?$"
punct: "^/[0-9]*[a-z]*$"
reverse_lookup: "`[a-z]*'?$"