-
Notifications
You must be signed in to change notification settings - Fork 6
/
xiapin_mtc.schema.yaml
90 lines (82 loc) · 2.01 KB
/
xiapin_mtc.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
#錯誤查看%TEMP%\rime.weasel
# Rime schema settings
# encoding: utf-8
#
schema:
schema_id: xiapin_mtc
name: 蝦米_繁中
version: "20180628"
author:
- 制作人
description: |
蝦米-拼音輸入
dependencies:
- luna_pinyin
switches:
- name: ascii_mode
reset: 0
states: [ 中文, 英文 ]
- name: full_shape
states: [ 半形, 全形 ]
- name: simplification
states: [ 繁體, 简体 ]
engine:
processors:
- ascii_composer
- recognizer
- key_binder
- speller
- selector
- navigator
- express_editor
segmentors:
- ascii_segmentor
- matcher
- abc_segmentor
- fallback_segmentor
translators:
- reverse_lookup_translator
- table_translator
filters:
- simplifier
- uniquifier #過濾重複的候選字,有可能來自繁簡轉換
- single_char_filter #單字優先
speller:
alphabet: "abcdefghijklmnopqrstuvwxyz[];',."
delimiter: "`"
algebra:
- xform/^~(.*)$/$1
#為了加強造詞準確性,在字典中,以「~」前綴標記非標準拆字,再透過拼寫語法去除「~」後,送入辭典查詢
translator:
dictionary: liur_Trad
db_class: tabledb
enable_user_dict: false
enable_sentence: false
enable_encoder: false
enable_charset_filter: true
encode_commit_history: false
max_phrase_length: 10
enable_completion: false
comment_format:
- xform/^~(.+)$/>[$1] #將提示碼改為較美觀的型式
disable_user_dict_for_patterns:
- "^[',.].*$"
reverse_lookup:
dictionary: luna_pinyin
prefix: "zz"
suffix: "'"
tips: "〔拼音〕"
preedit_format: &pinyin
- xform/([nl])v/$1ü/
- xform/([nl])ue/$1üe/
- xform/([jqxy])v/$1u/
punctuator:
# import_preset: default
key_binder:
import_preset: default
recognizer:
import_preset: default
patterns:
email: ^[a-z][-_.0-9a-z]*@.*$
url: ^(www[.]|https?:|ftp:|mailto:).*$
reverse_lookup: "zz[a-z]*'?$|[a-z]+'$"