-
Notifications
You must be signed in to change notification settings - Fork 5
/
reverse_lookup.yaml
109 lines (95 loc) · 3.16 KB
/
reverse_lookup.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
97
98
99
100
101
102
103
104
105
106
107
108
109
# https://github.com/rime/rime-emoji/blob/master/emoji_suggestion.yaml
patch_emoji:
switches/@next:
name: emoji_suggestion
reset: 1
states: ["🈚️️\uFE0E", "🈶️️\uFE0F"]
"engine/filters/@next 0": simplifier@emoji_suggestion
emoji_suggestion:
opencc_config: emoji.json
option_name: emoji_suggestion
tips: all
# https://github.com/BlindingDark/rime-easy-en/blob/master/easy_en.yaml
patch_easy_en_double_pinyin_mspy:
__include: patch_easy_en
speller/alphabet: "zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA;"
patch_easy_en_terra_pinyin:
__include: patch_easy_en
speller/alphabet: >-
zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA-;/<,>\
speller/initials: >-
zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA
patch_easy_en_japanese:
__include: patch_easy_en
speller/alphabet: >-
zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA-
patch_easy_en:
schema/dependencies/@next: easy_en
engine/translators/@next: table_translator@easy_en
easy_en:
__include: easy_en.schema:/translator
enable_completion: true
enable_sentence: false
initial_quality: -1
recognizer/patterns/uppercase: ""
speller/alphabet:
__include: easy_en.schema:/speller/alphabet
# pinyin simp reverse lookup, trigger with `P
patch_pinyin_simp:
recognizer/patterns/zlookup: "`[a-z]*'?$"
recognizer/patterns/reverse_lookup: "`P[a-z]*'?$"
reverse_lookup:
dictionary: pinyin_simp
prefix: "`P"
suffix: "'"
tips: 〔拼音〕
preedit_format:
- xform/([nl])v/$1ü/
- xform/([nl])ue/$1üe/
- xform/([jqxy])v/$1u/
# luna_pinyin reverse lookup, trigger with `P
patch_luna_pinyin:
recognizer/patterns/zlookup: "`[a-z]*'?$"
recognizer/patterns/reverse_lookup: "`P[a-z]*'?$"
reverse_lookup:
dictionary: luna_pinyin.extended
prefix: "`P"
suffix: "'"
tips: 〔lunar_pinyin〕
preedit_format:
- xform/([nl])v/$1ü/
- xform/([nl])ue/$1üe/
- xform/([jqxy])v/$1u/
# luna_pinyin reverse lookup, trigger with `p
patch_luna_pinyin2:
# to recognize '`p' to prevent it from being directly
# recognized as 'punct' and being displayed directly.
recognizer/patterns/zlookup: "`[a-z]*'?$"
# the short dash at the beginning of '_luna_pinyin_lookup' is to
# make it recognizable as the first one.
recognizer/patterns/_luna_pinyin_lookup: "`p[a-z]*'?$"
# @2 is abc_segmentor
engine/segmentors/@after 2: affix_segmentor@_luna_pinyin_lookup
engine/translators/@999: script_translator@_luna_pinyin_lookup
_luna_pinyin_lookup:
tag: _luna_pinyin_lookup
dictionary: luna_pinyin.extended
prefix: "`p"
suffix: "'"
tips: 〔朙月拼音〕
preedit_format:
- xform/([nl])v/$1ü/
- xform/([nl])ue/$1üe/
- xform/([jqxy])v/$1u/
# japanese reverse lookup, trigger with `j
patch_japanese:
recognizer/patterns/zlookup: "`[a-z]*'?$"
recognizer/patterns/_japanese_lookup: "`j[a-z]*'?$"
engine/segmentors/@after 2: affix_segmentor@_japanese_lookup
engine/translators/@999: script_translator@_japanese_lookup
_japanese_lookup:
tag: _japanese_lookup
dictionary: japanese
prefix: "`j"
suffix: "'"
tips: 〔japanese〕