Skip to content

Commit 7c0a48b

Browse files
committed
Clean History
0 parents  commit 7c0a48b

40 files changed

+4808814
-0
lines changed

README.md

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# rime-profile
2+
3+
Rime输入法配置
4+
5+
## 最近更新
6+
7+
2023/06/08
8+
9+
- 将小鹤音形改为小鹤双拼,并启用外置词库
10+
11+
## 特点
12+
13+
- 补丁基于官方拼音输入方案“朙月拼音”制作
14+
- 实现中英日混合输入
15+
- 拼音输入法加入 BeautifulRime、[中文维基](https://github.com/felixonmars/fcitx5-pinyin-zhwiki)[萌娘百科](https://github.com/outloudvi/mw2fcitx)、自定义流行语词库
16+
- 英文输入法采用 [EasyEN](https://github.com/BlindingDark/rime-easy-en)
17+
- 日语输入法词库来自谷歌开源的日语输入法 [Mozc](https://github.com/google/mozc),可实现连词成句
18+
19+
## 配置存放位置
20+
21+
```text
22+
easel (Windows):%APPDATA%\Rime
23+
trime (Android): /sdcard/rime
24+
ibus-rime (Linux): ~/.config/ibus/rime
25+
fctix5-rime (Linux):~/.local/share/fctix5/rime
26+
iRime (iOS): 使用内置 Web 服务器访问
27+
```
28+
29+
## 使用方法
30+
31+
- 安装过程可能涉及 luna_pinyin.extended.dict.yaml 的构建(Build),请确保预留 2GB RAM(仅重新部署过程中需要)和 1GB 存储空间
32+
- 下载客户端并安装
33+
- Clone 项目(推荐使用 `--depth=1` 以节省网络流量和存储空间),将 **Conf-Fixed*** 文件夹内文件覆盖到配置文件夹内。提示文件被占用则可以直接 Kill 所有客户端进程
34+
- 按需编辑 `installation.yaml`
35+
- 重新启动输入法客户端,执行重新部署
36+
- 输入法方案选择“朙月拼音”即可使用
37+
- 如果需要制作自己的词库,**ProcessDict** 文件夹内的脚本兴许有所帮助

default.custom.yaml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
customization:
2+
distribution_code_name: Weasel
3+
distribution_version: 0.15.0
4+
generator: "Rime::SwitcherSettings"
5+
modified_time: "Wed Dec 2 22:10:56 2020"
6+
rime_version: 1.8.5
7+
patch:
8+
"menu/page_size": 5
9+
schema_list:
10+
- {schema: luna_pinyin}
11+
- {schema: luna_pinyin_zhwiki}
12+
- {schema: double_pinyin_flypy}
13+
- {schema: stroke}
14+
- {schema: easy_en}
15+
- {schema: mozc}
16+

double_pinyin_flypy.custom.yaml

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
patch:
2+
translator/initial_quality: 100
3+
translator/enable_completion: true
4+
translator/encode_commit_history: true
5+
translator/enable_user_dict: true
6+
translator/enable_sentence: true
7+
simplifier/opencc_config: s2t.json
8+
switches/@2/states: [ 汉字, 漢字 ]
9+
# 键盘字母表加入大写
10+
speller/alphabet: zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA
11+
recognizer/patterns/uppercase: ''
12+
# zhWiki增补包
13+
sechma/dependences/@after 0: luna_pinyin_zhwiki
14+
engine/translators/@after 3: script_translator@zhwiki
15+
zhwiki:
16+
dictionary: luna_pinyin_zhwiki
17+
spelling_hints: 9
18+
enable_user_dict: true
19+
enable_sentence: false
20+
initial_quality: 100
21+
# 加入英语输入法
22+
sechma/dependences/@after 1: easy_en
23+
engine/translators/@after 4: table_translator@english
24+
# 英语输入法设置
25+
english:
26+
dictionary: easy_en
27+
spelling_hints: 9
28+
enable_completion: true
29+
encode_commit_history: true
30+
enable_user_dict: true
31+
enable_sentence: false
32+
initial_quality: 0
33+
# 加入日语输入法
34+
sechma/dependences/@after 2: mozc
35+
engine/translators/@after 5: table_translator@mozc
36+
# 日语输入法设置
37+
mozc:
38+
dictionary: mozc.extended
39+
spelling_hints: 9
40+
enable_completion: true
41+
enable_user_dict: true
42+
enable_sentence: true
43+
initial_quality: 0
44+
# 加载扩充词库
45+
translator/dictionary: luna_pinyin.extended
46+
# 改写拼写运算,使得含西文的词汇(位于luna_pinyin.cn_en.dict.yaml中)不影响简拼功能
47+
speller/algebra/@before 0: 'xform/^([b-df-np-z])$/$1_/'
48+
# 加载符号表
49+
punctuator/import_preset: symbols
50+
recognizer/patterns/punct: '^/([0-9]0?|[A-Za-z]+)$'

double_pinyin_flypy.schema.yaml

+144
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
# Rime schema
2+
# encoding: utf-8
3+
4+
schema:
5+
schema_id: double_pinyin_flypy
6+
name: 小鶴雙拼
7+
version: "0.18"
8+
author:
9+
- double pinyin layout by 鶴
10+
- Rime schema by 佛振 <[email protected]>
11+
description: |
12+
朙月拼音+小鶴雙拼方案。
13+
dependencies:
14+
- stroke
15+
16+
switches:
17+
- name: ascii_mode
18+
reset: 0
19+
states: [ 中文, 西文 ]
20+
- name: full_shape
21+
states: [ 半角, 全角 ]
22+
- name: simplification
23+
states: [ 漢字, 汉字 ]
24+
- name: ascii_punct
25+
states: [ 。,, ., ]
26+
27+
engine:
28+
processors:
29+
- ascii_composer
30+
- recognizer
31+
- key_binder
32+
- speller
33+
- punctuator
34+
- selector
35+
- navigator
36+
- express_editor
37+
segmentors:
38+
- ascii_segmentor
39+
- matcher
40+
- abc_segmentor
41+
- punct_segmentor
42+
- fallback_segmentor
43+
translators:
44+
- punct_translator
45+
- reverse_lookup_translator
46+
- script_translator
47+
filters:
48+
- simplifier
49+
- uniquifier
50+
51+
speller:
52+
alphabet: zyxwvutsrqponmlkjihgfedcba
53+
delimiter: " '"
54+
algebra:
55+
- erase/^xx$/
56+
- derive/^([jqxy])u$/$1v/
57+
- derive/^([aoe])([ioun])$/$1$1$2/
58+
- xform/^([aoe])(ng)?$/$1$1$2/
59+
- xform/iu$/Q/
60+
- xform/(.)ei$/$1W/
61+
- xform/uan$/R/
62+
- xform/[uv]e$/T/
63+
- xform/un$/Y/
64+
- xform/^sh/U/
65+
- xform/^ch/I/
66+
- xform/^zh/V/
67+
- xform/uo$/O/
68+
- xform/ie$/P/
69+
- xform/i?ong$/S/
70+
- xform/ing$|uai$/K/
71+
- xform/(.)ai$/$1D/
72+
- xform/(.)en$/$1F/
73+
- xform/(.)eng$/$1G/
74+
- xform/[iu]ang$/L/
75+
- xform/(.)ang$/$1H/
76+
- xform/ian$/M/
77+
- xform/(.)an$/$1J/
78+
- xform/(.)ou$/$1Z/
79+
- xform/[iu]a$/X/
80+
- xform/iao$/N/
81+
- xform/(.)ao$/$1C/
82+
- xform/ui$/V/
83+
- xform/in$/B/
84+
- xlit/QWRTYUIOPSDFGHJKLZXCVBNM/qwrtyuiopsdfghjklzxcvbnm/
85+
#- abbrev/^(.).+$/$1/
86+
87+
translator:
88+
dictionary: luna_pinyin
89+
prism: double_pinyin_flypy
90+
preedit_format:
91+
- xform/([bpmfdtnljqx])n/$1iao/
92+
- xform/(\w)g/$1eng/
93+
- xform/(\w)q/$1iu/
94+
- xform/(\w)w/$1ei/
95+
- xform/([dtnlgkhjqxyvuirzcs])r/$1uan/
96+
- xform/(\w)t/$1ve/
97+
- xform/(\w)y/$1un/
98+
- xform/([dtnlgkhvuirzcs])o/$1uo/
99+
- xform/(\w)p/$1ie/
100+
- xform/([jqx])s/$1iong/
101+
- xform/(\w)s/$1ong/
102+
- xform/(\w)d/$1ai/
103+
- xform/(\w)f/$1en/
104+
- xform/(\w)h/$1ang/
105+
- xform/(\w)j/$1an/
106+
- xform/([gkhvuirzcs])k/$1uai/
107+
- xform/(\w)k/$1ing/
108+
- xform/([jqxnl])l/$1iang/
109+
- xform/(\w)l/$1uang/
110+
- xform/(\w)z/$1ou/
111+
- xform/([gkhvuirzcs])x/$1ua/
112+
- xform/(\w)x/$1ia/
113+
- xform/(\w)c/$1ao/
114+
- xform/([dtgkhvuirzcs])v/$1ui/
115+
- xform/(\w)b/$1in/
116+
- xform/(\w)m/$1ian/
117+
- xform/([aoe])\1(\w)/$1$2/
118+
- "xform/(^|[ '])v/$1zh/"
119+
- "xform/(^|[ '])i/$1ch/"
120+
- "xform/(^|[ '])u/$1sh/"
121+
- xform/([jqxy])v/$1u/
122+
- xform/([nl])v/$1ü/
123+
124+
reverse_lookup:
125+
dictionary: stroke
126+
enable_completion: true
127+
prefix: "`"
128+
suffix: "'"
129+
tips: 〔筆畫〕
130+
preedit_format:
131+
- xlit/hspnz/一丨丿丶乙/
132+
comment_format:
133+
- xform/([nl])v/$1ü/
134+
135+
punctuator:
136+
import_preset: default
137+
138+
key_binder:
139+
import_preset: default
140+
141+
recognizer:
142+
import_preset: default
143+
patterns:
144+
reverse_lookup: "`[a-z]*'?$"

0 commit comments

Comments
 (0)