Debian Codegraph @

data/minimal/luna_pinyin.schema.yaml

raw symbols SCIP
1 # Rime schema
2 # encoding: utf-8
3
4 schema:
5 schema_id: luna_pinyin
6 name: 朙月拼音
7 version: "0.15.test"
8 author:
9 - 佛振 <chen.sst@gmail.com>
10 description: |
11 Rime 預設的拼音輸入方案。
12 參考以下作品而創作:
13 * CC-CEDICT
14 * Android open source project
15 * Chewing - 新酷音
16 * opencc - 開放中文轉換
17
18 switches:
19 - name: ascii_mode
20 reset: 0
21 states: [ 中文, ABC ]
22 abbrev: [ 中, A ]
23 - name: full_shape
24 states: [ 半寬文字, 全寬文字 ]
25 # - name: simplification
26 # states: [ 傳統漢字, 简化字 ]
27 # abbrev: [ 繁, 简 ]
28 - options: [ zh_trad, zh_simp, zh_hk, zh_tw ]
29 states:
30 - 傳統漢字
31 - 简化字
32 - 香港字形
33 - 臺灣字形
34 abbrev: [ 繁, 简, 港, 臺 ]
35 - name: ascii_punct
36 states: [ 中文標點, 西文標點 ]
37 abbrev: [ '。', '.' ]
38
39 engine:
40 processors:
41 - ascii_composer
42 - recognizer
43 - key_binder
44 - speller
45 - punctuator
46 - selector
47 - navigator
48 - express_editor
49 segmentors:
50 - ascii_segmentor
51 - matcher
52 - abc_segmentor
53 - affix_segmentor@alphabet
54 - affix_segmentor@cangjie
55 - affix_segmentor@pinyin
56 - punct_segmentor
57 - fallback_segmentor
58 translators:
59 - punct_translator
60 - reverse_lookup_translator
61 - script_translator
62 - table_translator@cangjie
63 - script_translator@pinyin
64 filters:
65 - reverse_lookup_filter@cangjie_lookup
66 - simplifier@zh_simp
67 - simplifier@zh_tw
68 - uniquifier
69
70 speller:
71 alphabet: zyxwvutsrqponmlkjihgfedcba
72 delimiter: " '"
73 algebra:
74 - erase/^xx$/
75 - abbrev/^([a-z]).+$/$1/
76 - abbrev/^([zcs]h).+$/$1/
77 - derive/^([nl])ve$/$1ue/correction
78 - derive/^([jqxy])u/$1v/correction
79 - derive/un$/uen/correction
80 - derive/ui$/uei/correction
81 - derive/iu$/iou/correction
82 - derive/([aeiou])ng$/$1gn/correction
83 - derive/([dtngkhrzcs])o(u|ng)$/$1o/correction
84 - derive/ong$/on/correction
85 - derive/ao$/oa/correction
86 - derive/([iu])a(o|ng?)$/a$1$2/correction
87
88 translator:
89 dictionary: luna_pinyin
90 preedit_format:
91 - xform/([nljqxy])v/$1ü/
92
93 alphabet:
94 tag: alphabet
95 prefix: ':'
96 suffix: ';'
97 tips: 〔西文〕
98 closing_tips: 〔中文〕
99
100 cangjie:
101 tag: cangjie
102 dictionary: cangjie5
103 prefix: 'C:'
104 suffix: ';'
105 tips: 〔倉頡〕
106 closing_tips: 〔拼音〕
107 preedit_format:
108 - "xlit|abcdefghijklmnopqrstuvwxyz|日月金木水火土竹戈十大中一弓人心手口尸廿山女田難卜符|"
109 comment_format:
110 - "xlit|abcdefghijklmnopqrstuvwxyz~|日月金木水火土竹戈十大中一弓人心手口尸廿山女田難卜符~|"
111
112 pinyin:
113 tag: pinyin
114 dictionary: luna_pinyin
115 enable_user_dict: false
116 prefix: 'P:'
117 suffix: ';'
118 tips: 〔拼音〕
119 preedit_format:
120 - xform/([nl])v/$1ü/
121
122 cangjie_lookup:
123 tags: [ pinyin ]
124 dictionary: cangjie5
125 comment_format:
126 - "xlit|abcdefghijklmnopqrstuvwxyz ~|日月金木水火土竹戈十大中一弓人心手口尸廿山女田難卜符、~|"
127
128 reverse_lookup:
129 dictionary: cangjie5
130 enable_completion: true
131 prefix: '`'
132 suffix: "'"
133 tips: 〔倉頡〕
134 preedit_format:
135 - "xlit|abcdefghijklmnopqrstuvwxyz|日月金木水火土竹戈十大中一弓人心手口尸廿山女田難卜符|"
136 comment_format:
137 - xform/([nl])v/$1ü/
138
139 zh_simp:
140 option_name: zh_simp
141 tips: all
142
143 zh_tw:
144 option_name: zh_tw
145 opencc_config: t2tw.json
146
147 punctuator:
148 import_preset: default
149
150 key_binder:
151 import_preset: default
152
153 recognizer:
154 import_preset: default
155 patterns:
156 alphabet: '(?<![A-Z]):[^;]*;?$'
157 cangjie: "C:[a-z']*;?$"
158 pinyin: "P:[a-z']*;?$"
159 reverse_lookup: "`[a-z]*'?$"