Skip to content

Commit 4e7c6e2

Browse files
committed
新增4码动态调频的模式
1 parent 335a3cd commit 4e7c6e2

File tree

4 files changed

+13080
-1
lines changed

4 files changed

+13080
-1
lines changed

readme.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,11 @@
6666

6767
**NEW**:
6868

69-
- 2024 年 4 月 25 日增加了整句模式,和普通双拼打法一样,不再赘述。(Thanks to [冰雪拼音](https://github.com/hanzi-chai/rime-snow-pinyin))<br>
69+
- 2024 年 4 月 25 日增加了整句模式,和普通双拼打法一样,不再赘述。(Thanks to [冰雪拼音](https://github.com/hanzi-chai/rime-snow-pinyin))
7070
- 2024 年 5 月 13 日新增带辅的整句模式。由于内容太多,未合并至本仓库,详情见 [魔龙](https://github.com/jack2game/rime-molong)
71+
- 2025 年 1 月 19 日新增字词动态模式。1 - 3 码静态,4 码所有字词动态调频,包括自造词。若想固定某个字词,有两种方式:
72+
1.`zrlong_custom_phrases.txt` 中添加,以自定义短语方式固定。
73+
2.`zrlong_fixed.dict.yaml` 中添加,以码表方式固定。
7174

7275
## 安装
7376

zrlong_dynamical.schema.yaml

Lines changed: 216 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,216 @@
1+
schema:
2+
schema_id: zrlong_dynamical
3+
name: 自然龙・动态
4+
version: "20240225"
5+
icon: "微软雅黑中.ico" # string 方案图标,格式: .ico
6+
ascii_icon: "微软雅黑英.ico"
7+
author:
8+
- 自然碼發明人:周志農
9+
- 方案製作:晡时之光
10+
- modded by 小幽幽
11+
description: |
12+
乱序韵母,自然辅,1-3码静态,4码动态。
13+
dependencies:
14+
- tigress
15+
- zrlf
16+
- stroke
17+
- moran_reverse
18+
- zrlong_fixed
19+
- jaroomaji # 日语
20+
switches:
21+
- name: ascii_mode
22+
states: [中文, 西文]
23+
- name: full_shape
24+
states: [半角, 全角]
25+
- name: ascii_punct
26+
states: [。,, .,]
27+
- name: emoji
28+
states: [🈚, 🈶]
29+
30+
engine:
31+
processors:
32+
- lua_processor@*case_processor
33+
- ascii_composer
34+
- recognizer
35+
- key_binder
36+
- speller
37+
- punctuator
38+
- selector
39+
- navigator
40+
- express_editor
41+
segmentors:
42+
- ascii_segmentor
43+
- matcher
44+
- affix_segmentor@zkci
45+
- affix_segmentor@ja
46+
- abc_segmentor
47+
- punct_segmentor
48+
- fallback_segmentor
49+
translators:
50+
- punct_translator
51+
- reverse_lookup_translator
52+
- reverse_lookup_translator@reverse_tiger
53+
- reverse_lookup_translator@reverse_stroke
54+
- reverse_lookup_translator@reverse_zrlf
55+
- table_translator
56+
- table_translator@custom_phrase # 自定義短語
57+
- table_translator@fixed
58+
- table_translator@zkci
59+
- table_translator@zrlong_full
60+
- script_translator@ja
61+
- history_translator@repeat
62+
- lua_translator@*moran_shijian # 日期orq 節氣ojq 星期oxq 時間osj
63+
- lua_translator@*moran_number # 數字轉大寫
64+
filters:
65+
- simplifier@emoji
66+
- lua_filter@*moran_quick_code_hint #简码提示
67+
- uniquifier
68+
69+
speller:
70+
alphabet: "abcdefghijklmnopqrstuvwxyz;`~"
71+
delimiter: " '"
72+
max_code_length: 4
73+
auto_select: true
74+
# auto_clear: max_length # manual | auto | max_length
75+
auto_select_pattern: ;\w+ #自动上屏规则 对 [;] 引导的编码实行候选唯一自动上屏
76+
77+
#4码动态
78+
translator:
79+
dictionary: zrlong
80+
db_class: tabledb
81+
enable_charset_filter: false
82+
enable_sentence: false
83+
enable_completion: false
84+
enable_user_dict: true
85+
enable_encoder: true
86+
initial_quality: 1000
87+
encode_commit_history: false
88+
89+
#1-3码静态
90+
fixed:
91+
dictionary: zrlong_fixed
92+
db_class: tabledb
93+
enable_charset_filter: false
94+
enable_sentence: false
95+
enable_completion: false
96+
enable_user_dict: false
97+
enable_encoder: false
98+
encode_commit_history: false
99+
initial_quality: 2000
100+
101+
102+
custom_phrase: # 自定義短語
103+
dictionary: ""
104+
user_dict: zrlong_custom_phrases
105+
db_class: stabledb
106+
enable_completion: false
107+
enable_sentence: true
108+
initial_quality: 20000
109+
#全码码表
110+
zrlong_full:
111+
dictionary: ""
112+
user_dict: zrlong_full_code_table
113+
db_class: stabledb
114+
enable_sentence: false
115+
enable_completion: false
116+
encode_commit_history: false # 是否開啓自動造詞
117+
initial_quality: 1
118+
reverse_format:
119+
comment_format:
120+
- xform/(\w\w);(\w\w)/$1[$2]/
121+
preedit_format:
122+
- xform/^o(lf|bh|cj)//
123+
124+
reverse_tiger:
125+
tag: reverse_tiger
126+
dictionary: tigress
127+
enable_completion: true
128+
prefix: "`"
129+
tips: 〔虎〕
130+
__include: reverse_format
131+
132+
reverse_stroke:
133+
tag: reverse_stroke
134+
dictionary: stroke
135+
prefix: "obh"
136+
enable_completion: true
137+
tips: 〔hspnz〕
138+
__include: reverse_format
139+
140+
reverse_zrlf:
141+
tag: reverse_zrlf
142+
dictionary: zrlf
143+
prefix: "olf"
144+
enable_completion: true
145+
tips: 〔两分〕
146+
__include: reverse_format
147+
ja: #japanese 引导输入
148+
tag: ja
149+
dictionary: jaroomaji
150+
prefix: "oja"
151+
enable_completion: true
152+
enable_sentence: true
153+
enable_user_dict: true
154+
initial_quality: 0
155+
enable_encoder: false
156+
encode_commit_history: false
157+
tips: 〔日语〕
158+
preedit_format:
159+
- xform/.*//
160+
zkci: # 造詞
161+
tag: zkci
162+
db_class: tabledb
163+
user_dict: zrlong
164+
dictionary: zrlong
165+
enable_user_dict: false
166+
enable_charset_filter: false
167+
enable_completion: false
168+
enable_sentence: true
169+
enable_encoder: false
170+
encode_commit_history: false # 是否開啓自動造詞
171+
max_phrase_length: 7
172+
prefix: "'"
173+
tips: 〔造词〕
174+
initial_quality: 10
175+
repeat: # 重复上屏
176+
input: "~"
177+
size: 1
178+
initial_quality: 0
179+
180+
moran:
181+
quick_code_indicator: ""
182+
enable_quick_code_hint: true
183+
quick_code_hint_skip_chars: true
184+
185+
emoji:
186+
opencc_config: moran_emoji.json
187+
option_name: emoji
188+
tips: all
189+
190+
reverse_lookup:
191+
dictionary: moran.chars
192+
enable_user_dict: false
193+
tips: 〔通配〕
194+
195+
punctuator:
196+
import_preset: symbols
197+
198+
key_binder:
199+
import_preset: default
200+
bindings:
201+
- { when: has_menu, accept: ";", send: "1" } # 添加分号次选
202+
- { when: has_menu, accept: "Control+e", toggle: emoji } # ctrl+e 切换 emoji
203+
recognizer:
204+
import_preset: default
205+
patterns:
206+
reverse_lookup: "(^(``[a-z`]+))|(^([a-z]{2}(`[a-z`]?|[a-z`]`)))"
207+
zkci: "^[a-z]*'[a-z']*$"
208+
reverse_tiger: "(^`$)|(^`[a-zA-Z]+$)"
209+
reverse_stroke: "^obh[A-Za-z]*$"
210+
reverse_zrlf: "^olf[A-Za-z]*$"
211+
ja: "^oja[A-Za-z]*$"
212+
punct: "^/([0-9]0?|[A-Za-z]+)$"
213+
214+
menu:
215+
page_size: 6
216+
alternative_select_keys: "|12345"

0 commit comments

Comments
 (0)