-
Notifications
You must be signed in to change notification settings - Fork 1
/
pinyin_jap.schema.yaml
121 lines (109 loc) · 3.14 KB
/
pinyin_jap.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
# Rime
# encoding: utf-8
#
# 李さんの日本語入力方法,小李的日本语输入法.
# (没错,是对学习过新标日小李赴日的neta,適用於基本不懂日語並且也無意深入学習,但是又有一定日語書写的人)
# 通过加载袖珍简化字拼音方案自定义配置,引用Japanese Poly Nano实现混输中日。和融合拼音(rime_pinyin)共用詞庫,可以使用融合拼音的詞庫覆蓋本方案的文件。
# 完全忽略音読訓読,使用全拼方式录入汉字,日语中如有对应的汉字自动转换为日语字形。 使用罗马音录入假名,使用x前导可以输入小写,輸入大写字母可以録入片仮名。
# tumuyan,in 2022.12.25
schema:
schema_id: pinyin_jap
name: 李さんの日本語
version: "0.8"
author:
- 佚名
description: |
源自 Android 拼音
dependencies:
- jap_poly_nano
keyboard:
layout: 9 # 26+10
label: en #
switches:
- options: [jpcharset_j, jpcharset_c,jpcharset,ascii_mode]
states: [ 仮名,漢字,日語,英文 ]
reset: 1
- options: [noop, show_rizi, show_s2t]
reset: 1
states: [ 简中,新日,繁中 ]
- name: ascii_punct
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:
- table_translator@jap_poly
- punct_translator
- script_translator
- reverse_lookup_translator
filters:
- uniquifier
- simplifier@rizi_conversion
- simplifier@s2t_conversion
- lua_filter@jpcharset_filter
speller:
alphabet: zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA-_
initials: zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA
delimiter: " '"
algebra:
- abbrev/^([a-z]).+$/$1/
- abbrev/^([zcs]h).+$/$1/
- derive/^([nl])ue$/$1ve/
- derive/^([jqxy])u/$1v/
- derive/un$/uen/
- derive/ui$/uei/
- derive/iu$/iou/
- derive/([aeiou])ng$/$1gn/
- derive/([dtngkhrzcs])o(u|ng)$/$1o/
- derive/ong$/on/
- derive/ao$/oa/
- derive/([iu])a(o|ng?)$/a$1$2/
translator:
dictionary: pinyin_jap
enable_correction: false
preedit_format:
- xform/([nl])v/$1ü/
- xform/([nl])ue/$1üe/
- xform/([jqxy])v/$1u/
punctuator:
import_preset: symbols
key_binder:
import_preset: default
bindings:
- {accept: minus, send: '-', when: has_menu}
- {accept: equal, send: '=', when: has_menu}
recognizer:
import_preset: default
patterns:
# hack: to enable "/fh" style symbols, '/' must be mapped to a [list].
# so those who have customized '/' for direct commit won't be affected by
# this change.
punct: "^/([0-9]+[a-z]*|[a-z]+)$"
reverse_lookup: "`[a-z]*'?$"
jap_poly:
dictionary: jap_poly_nano
spelling_hints: 9
enable_completion: true
enable_sentence: true
enable_user_dict: false
initial_quality: 1
# 引入2组编码滤镜
s2t_conversion:
opencc_config: s2t.json
option_name: show_s2t
rizi_conversion:
opencc_config: rizi.json
option_name: show_rizi