-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathflyhe_fast.custom.yaml
More file actions
97 lines (86 loc) · 5.26 KB
/
Copy pathflyhe_fast.custom.yaml
File metadata and controls
97 lines (86 loc) · 5.26 KB
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
# 飞鹤快码方案的配置补丁
# 覆盖 flyhe_fast.schema.yaml 的部分参数。
# 在此方案下,这里的配置具有最高优先级
---
patch:
"menu/alternative_select_keys": 1234567 # 候选键
"menu/page_size": 5 # 候选项个数
"style/font_point": 18 # 候选字大小
"style/line_spacing": 5 # 行间距大小
"style/show_paging": false # 是否显示分页符号
"style/inline_preedit": true # 编码位是否嵌入候选框
# "style/horizontal": true # 候选菜单横向布局(true)/纵向布局(false)
"style/candidate_list_layout": linear # 候选菜单横向(linear)/纵向(stacked)
"style/text_orientation": horizontal # 候选文字横向(horizontal)/纵向(vertical)
switches/+:
- name: prediction
states: [休想, 联想]
# 输入引擎
'engine/processors/@before 0': predictor
'engine/translators/@before 0': predict_translator
speller/+:
algebra/+:
## 模糊音:
- derive/^([jy])v/$1u/
- derive/^([qx])u/$1v/
punctuator/+:
digit_separators: ".:" # 指定要转换为英文半角的符号, 若双击则恢复全角(中文)
# digit_separator_action: commit # 上一行指定的符号在按下数字后的动作行为
symbol_menu_prefix: '/vs'
symbol_normal_prefix: '/'
key_binder/+:
import_preset: default # 从 default.yaml 继承通用的
select_first_character: "9" # `9/minus` 以词定字(首字)
select_last_character: "0" # `0/equal` 以词定字(尾字)
symbol_menu_fallback: "Control+p" # 符号二级菜单返回主菜单键
# 次翻译器
melt_eng/dictionary: melt_eng_custom # 挂载词库 melt_eng_custom.dict.yaml
pair_punct: # 符号配对开关
enable: true
cand_selector: # 候选选择器
word_lookup_limit: 300 # 检索最多迭代数
auto_select_char: true # 单字优先时全码唯一则自动顶屏(小鹤音形效果)
auto_select_phrase: false # 词组加间接辅码唯一则自动上屏(默认关闭)
if_unmatched_show_mark: "-" # 当未匹配到候选项时, 首选 yield 一个标记以提示(留空则不显示)
tone_convert_format: # 声调过滤(依次对应: 一[轻]二三四声), 修改则不适配同文键盘
- xlit/IUNM/1234/
date_time:
date_format:
# 时区格式: TZ: +08:00/Z
# 年份格式: year_cn: 二〇二六年; year: 2026
# 月份格式: month_cn: 二月; month: 02; month_en: February; month_en_st: Feb.
# 星期格式: week_cn: 星期日; week_cn_st: 周日; week_en: Sunday; week_en_st: Sun.
# 当日格式: day_cn: 二十二日; day: 22; day_en_st: 22th
- "{year}年{month}月{day}日" # 2026年02月22日
- "{year}/{month}/{day}" # 2026/02/22
- "{year}.{month}.{day}" # 2026.02.22
- "{year_cn}年{month_cn}月{day_cn}日" # 二〇二六年二月二十二日
- "{year}.{month}.{day} {hour}:{min}:{sec}" # 2026.02.22 14:30:45
- "{month_en_st} {day_en_st}, {year}" # Feb 05th, 2026
- "{day_en_st} {month_en}, {year}" # 22th February, 2026
- "{month_en} {day_en_st}, {year}" # February 22th, 2026
- "{year}-{month}-{day}{TZ}" # 2026-02-22T20:42:51+08:00
- "{year}年{month}月{day}日 {hour}点{min}分{sec}秒" # 2026年02月22日 18点37分06秒
time_format:
# 时间格式: hour: 18; min: 30; sec: 45; TS: AM/PM
- "{hour}:{min}" # 18:30
- "{hour}:{min} {TS}" # 6:30 PM
- "{hour}:{min}:{sec} {TS}" # 6:30:45 PM
- "{hour}:{min}:{sec}" # 18:30:45
- "{hour}点{min}分" # 18点37分
- "{hour}点{min}分{sec}秒" # 18点37分06秒
- "{hour}时{min}分{sec}秒" # 18时37分06秒
# 时间前缀: 凌晨, 早上, 上午, 中午, 下午, 夜晚, 午夜
enable_time_prefix: true # 是否开启时间前缀(默认开启, 可在触发词末尾添加单引号'临时关闭)
predictor: # 候选字词联想预测
# trigger: 'ee' # 手动触发弹出预测候选菜单
# cancel_key: "'" # 额外的用于关闭预测菜单按键
# max_iterations: 1 # 联想预测的次数
# min_candidates: 2 # 联想预测的候选项最少个数(不足时,尝试读fallback_db)
# max_candidates: 4 # 联想预测的候选项最多个数
# max_context_commits: 2
# db: predict.userdb # librime-predict-leveldb 数据库
# fallback_db: predict.db # librime-predict 数据库
# rules_db: predict_rules.db
# continuous_prediction: true # 是否开启连续预测 false: 受 max_iterations 限制; true: 尽可能持续预测,直到没有候选
# deleted_record_expire_days: 90 # 默认0永不清理