forked from biopolyhedron/rime-jap-poly
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjap_poly.schema.yaml
135 lines (126 loc) · 3.12 KB
/
jap_poly.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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
# Rime schema
# vim: set sw=2 sts=2 et:
# encoding: utf-8
schema:
schema_id: jap_poly
name: poly日文
version: "2013.10.08"
author:
- polyhedron <[email protected]>
description: |
日文假名輸入,小寫假名用x前導
音讀用中文,其餘用假名(歷史的假名遣)
即輸入“lekisiteki kanadukahi”,輸出“歷史的假なづかひ”
可通過放開模糊控制,輸入現代假名遣而輸出歷史的假名遣及音讀正體漢字
switches:
- name: ascii_mode
reset: 0
states: [ 假名, 西文 ]
- name: half_shape
states: [ 半角, 全角 ]
reset: 0
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:
- uniquifier
speller:
alphabet: 'abcdefghijklmnopqrstuvwxyz-'
delimiter: " '"
algebra:
- derive/x/q/
# - derive/l/r/
- derive/si/shi/
- derive/sy([auo])/sh$1/
- derive/zi/ji/
- derive/zy([auo])/j$1/
- derive/tu/tsu/
- derive/ti/chi/
- derive/ty([auo])/ch$1/
- derive/hu/fu/
#以下用於促音漢字詞(詞庫小時可用,詞庫全時註釋掉)
# - derive/([aiueo])tu$/$1t/
# - derive/([aiueo])tu$/$1k/
# - derive/([aiueo])tu$/$1s/
# - derive/([aiueo])tu$/$1p/
# - derive/([aiueo])ti$/$1t/
# - derive/([aiueo])ti$/$1k/
# - derive/([aiueo])ti$/$1s/
# - derive/([aiueo])ti$/$1p/
# - derive/([aiueo])ku$/$1t/
# - derive/([aiueo])ku$/$1k/
# - derive/([aiueo])ku$/$1s/
# - derive/([aiueo])ku$/$1p/
# - derive/([aiueo])ki$/$1t/
# - derive/([aiueo])ki$/$1k/
# - derive/([aiueo])ki$/$1s/
# - derive/([aiueo])ki$/$1p/
# - derive/([aiueo])hu$/$1t/
# - derive/([aiueo])hu$/$1k/
# - derive/([aiueo])hu$/$1s/
# - derive/([aiueo])hu$/$1p/
#以下用於連濁(詞庫小時可用,詞庫全時註釋掉)
# - derive/^k/g/
# - derive/^t/d/
# - derive/^s/z/
# - derive/^h/b/
# - derive/^h/p/
#以下用於輸入時用現代假名遣
# - derive/di/zi/
# - derive/du/zu/
# - derive/([aeiou])ha/$1wa/
# - derive/([aeiou])hi/$1i/
# - derive/([aeiou])hu/$1u/
# - derive/([aeiou])he/$1e/
# - derive/([aeiou])ho/$1o/
# - derive/wi/i/
# - derive/we/e/
# - derive/wo/o/
# - derive/au/ou/
# - derive/ahu/ou/
# - derive/ahu(.+)/ao$1/
# - derive/eu/you/
# - derive/ehu/you/
# - derive/iu/yuu/
# - derive/ihu/yuu/
# - derive/kwa/ka/
# - derive/gwa/ga/
translator:
dictionary: jap_poly
spelling_hints: 10
prism: jap_poly
# preedit_format:
# - xform/[']//
# - "xform/(^|[ '])q?([aeouiy])/$1q$2/"
reverse_lookup:
dictionary: zyenpheng
prefix: "`"
suffix: "'"
tips: 〔中古拼音〕
preedit_format:
# - xform/([nljqxy])v/$1ü/
punctuator:
import_preset: default
key_binder:
import_preset: default
recognizer:
import_preset: default
patterns:
reverse_lookup: "`[a-z]*'?$"