2022-10-30 16:47:40 +01:00
|
|
|
|
# Rime schema
|
|
|
|
|
# encoding: utf-8
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 方案说明
|
|
|
|
|
schema:
|
|
|
|
|
schema_id: rime_ice
|
|
|
|
|
name: 雾凇拼音
|
2024-02-25 12:00:19 +01:00
|
|
|
|
version: "2024-02-25"
|
2022-10-30 16:47:40 +01:00
|
|
|
|
author:
|
|
|
|
|
- Dvel
|
|
|
|
|
description: |
|
2022-11-16 03:50:59 +01:00
|
|
|
|
雾凇拼音
|
2022-10-30 16:47:40 +01:00
|
|
|
|
https://github.com/iDvel/rime-ice
|
|
|
|
|
dependencies:
|
2024-01-29 11:51:45 +01:00
|
|
|
|
- melt_eng # 英文输入,作为次翻译器挂载到拼音方案
|
|
|
|
|
- radical_pinyin # 部件拆字,反查及辅码
|
2022-10-30 16:47:40 +01:00
|
|
|
|
|
|
|
|
|
|
2022-12-02 07:14:59 +01:00
|
|
|
|
# 开关
|
2024-01-29 11:51:45 +01:00
|
|
|
|
# reset: 默认状态。注释掉后,切换窗口时不会重置到默认状态。
|
2024-02-05 14:59:13 +01:00
|
|
|
|
# states: 方案选单显示的名称。可以注释掉,仍可以通过快捷键切换。
|
|
|
|
|
# abbrev: 默认的缩写取 states 的第一个字符,abbrev 可自定义一个字符
|
2022-10-30 16:47:40 +01:00
|
|
|
|
switches:
|
|
|
|
|
- name: ascii_mode
|
2023-09-22 13:18:46 +02:00
|
|
|
|
states: [ 中, A ]
|
2024-01-29 11:51:45 +01:00
|
|
|
|
- name: ascii_punct # 中英标点
|
2023-04-11 16:46:29 +02:00
|
|
|
|
states: [ ¥, $ ]
|
2022-10-30 16:47:40 +01:00
|
|
|
|
- name: traditionalization
|
2023-02-02 07:15:40 +01:00
|
|
|
|
states: [ 简, 繁 ]
|
2022-10-30 16:47:40 +01:00
|
|
|
|
- name: emoji
|
|
|
|
|
states: [ 💀, 😄 ]
|
2023-03-01 05:19:27 +01:00
|
|
|
|
reset: 1
|
2023-04-11 16:46:29 +02:00
|
|
|
|
- name: full_shape
|
|
|
|
|
states: [ 半角, 全角 ]
|
2024-02-04 16:27:50 +01:00
|
|
|
|
- name: search_single_char # search.lua 的功能开关,辅码查词时是否单字优先
|
2024-01-29 11:51:45 +01:00
|
|
|
|
abbrev: [词, 单]
|
|
|
|
|
states: [正常, 单字]
|
2022-10-30 16:47:40 +01:00
|
|
|
|
|
|
|
|
|
|
2023-02-08 19:06:20 +01:00
|
|
|
|
# 输入引擎
|
2022-10-30 16:47:40 +01:00
|
|
|
|
engine:
|
|
|
|
|
processors:
|
2024-01-29 11:51:45 +01:00
|
|
|
|
- lua_processor@select_character # 以词定字
|
2022-10-30 16:47:40 +01:00
|
|
|
|
- ascii_composer
|
|
|
|
|
- recognizer
|
|
|
|
|
- key_binder
|
|
|
|
|
- speller
|
|
|
|
|
- punctuator
|
|
|
|
|
- selector
|
|
|
|
|
- navigator
|
|
|
|
|
- express_editor
|
|
|
|
|
segmentors:
|
|
|
|
|
- ascii_segmentor
|
|
|
|
|
- matcher
|
|
|
|
|
- abc_segmentor
|
2024-01-29 11:51:45 +01:00
|
|
|
|
- affix_segmentor@radical_lookup # 部件拆字自定义 tag
|
2022-10-30 16:47:40 +01:00
|
|
|
|
- punct_segmentor
|
|
|
|
|
- fallback_segmentor
|
|
|
|
|
translators:
|
|
|
|
|
- punct_translator
|
|
|
|
|
- script_translator
|
2024-01-29 11:51:45 +01:00
|
|
|
|
- lua_translator@date_translator # 时间、日期、星期
|
|
|
|
|
- lua_translator@lunar # 农历
|
|
|
|
|
- table_translator@custom_phrase # 自定义短语 custom_phrase.txt
|
|
|
|
|
- table_translator@melt_eng # 英文输入
|
2024-02-04 13:49:51 +01:00
|
|
|
|
- table_translator@cn_en # 中英混合词汇
|
2024-01-29 11:51:45 +01:00
|
|
|
|
- table_translator@radical_lookup # 部件拆字反查
|
|
|
|
|
- lua_translator@unicode # Unicode
|
|
|
|
|
- lua_translator@number_translator # 数字、金额大写
|
2024-02-05 17:29:51 +01:00
|
|
|
|
- lua_translator@force_gc # 暴力 GC
|
2022-10-30 16:47:40 +01:00
|
|
|
|
filters:
|
2024-01-29 11:51:45 +01:00
|
|
|
|
- lua_filter@corrector # 错音错字提示
|
|
|
|
|
- reverse_lookup_filter@radical_reverse_lookup # 部件拆字滤镜
|
|
|
|
|
- lua_filter@search@radical_pinyin # 部件拆字辅码
|
|
|
|
|
- lua_filter@autocap_filter # 英文自动大写
|
2024-02-10 17:06:31 +01:00
|
|
|
|
- lua_filter@v_filter # v 模式 symbols 优先
|
|
|
|
|
- lua_filter@pin_cand_filter # 置顶候选项(顺序要求:置顶候选项 > Emoji > 简繁切换)
|
|
|
|
|
- lua_filter@long_word_filter # 长词优先(顺序要求:长词优先 > Emoji)
|
|
|
|
|
- simplifier@emoji # Emoji
|
|
|
|
|
- simplifier@traditionalize # 简繁切换
|
2024-01-29 11:51:45 +01:00
|
|
|
|
- lua_filter@reduce_english_filter # 降低部分英语单词在候选项的位置
|
|
|
|
|
- uniquifier # 去重
|
2022-10-30 16:47:40 +01:00
|
|
|
|
|
|
|
|
|
|
2023-02-10 16:06:02 +01:00
|
|
|
|
# Lua 配置: 日期、时间、星期、ISO 8601、时间戳的触发关键字
|
2022-11-29 11:23:53 +01:00
|
|
|
|
date_translator:
|
|
|
|
|
date: rq # 日期: 2022-11-29
|
|
|
|
|
time: sj # 时间: 18:13
|
|
|
|
|
week: xq # 星期: 星期二
|
|
|
|
|
datetime: dt # ISO 8601: 2022-11-29T18:13:11+08:00
|
|
|
|
|
timestamp: ts # 时间戳: 1669716794
|
|
|
|
|
|
|
|
|
|
|
2024-01-03 16:27:55 +01:00
|
|
|
|
# Lua 配置:农历的触发关键字
|
2024-01-29 11:51:45 +01:00
|
|
|
|
lunar: nl # 农历: 二〇二三年冬月二十 癸卯年(兔)冬月二十
|
|
|
|
|
|
|
|
|
|
|
2024-02-05 17:29:51 +01:00
|
|
|
|
# Lua 配置:长词优先
|
|
|
|
|
# 提升 count 个词语,插入到第 idx 个位置。
|
|
|
|
|
# 示例:将 2 个词插入到第 4、5 个候选项,输入 jie 得到「1接 2解 3姐 4饥饿 5极恶」
|
|
|
|
|
long_word_filter:
|
|
|
|
|
count: 2
|
|
|
|
|
idx: 4
|
|
|
|
|
|
|
|
|
|
|
2024-01-03 16:27:55 +01:00
|
|
|
|
# Lua 配置:为 corrector 格式化 comment,占位符为 {comment}
|
|
|
|
|
# 默认 "{comment}" 输入 hun dun 时会在「馄饨」旁边生成 hún tun 的 comment
|
|
|
|
|
# 例如左右加个括号 "({comment})" 就会变成 (hún tun)
|
|
|
|
|
corrector: "{comment}"
|
2024-01-02 15:25:13 +01:00
|
|
|
|
|
|
|
|
|
|
2023-10-22 09:21:26 +02:00
|
|
|
|
# Lua 配置: 降低部分英语单词在候选项的位置。
|
2023-02-10 16:06:02 +01:00
|
|
|
|
# 详细介绍 https://dvel.me/posts/make-rime-en-better/#短单词置顶的问题
|
|
|
|
|
# 正常情况: 输入 rug 得到 「1.rug 2.如果 …… 」
|
|
|
|
|
# 降低之后: 输入 rug 得到 「1.如果 2.rug …… 」
|
2023-10-22 09:21:26 +02:00
|
|
|
|
# 几种模式:
|
2024-01-30 03:17:35 +01:00
|
|
|
|
# all 降低脚本内置的单词(所有 3~4 位长度、前 2~3 位是完整拼音、最后一位是声母),words 作为自定义的额外补充
|
|
|
|
|
# custom 完全自定义,只降低 words 里的
|
2023-10-22 09:21:26 +02:00
|
|
|
|
# none 不降低任何单词,相当于没有启用这个 Lua
|
|
|
|
|
# (匹配的是编码,不是单词)
|
2023-02-10 16:06:02 +01:00
|
|
|
|
reduce_english_filter:
|
2024-01-30 03:17:35 +01:00
|
|
|
|
mode: custom # all | custom | none
|
2023-10-22 09:21:26 +02:00
|
|
|
|
idx: 2 # 降低到第 idx 个位置
|
|
|
|
|
# 自定义的单词列表,示例列表没有降低部分常用单词,如 and cat mail Mac but bad shit ……
|
2024-02-21 15:22:37 +01:00
|
|
|
|
words: [
|
|
|
|
|
aid, ann,
|
|
|
|
|
bail, bait, bam, band, bans, bat, bay, bend, bent, benz, bib, bid, bien, biz, boc, bop, bos, bud, buf, bach, bench, bush,
|
|
|
|
|
cab, cad, cain, cam, cans, cap, cas, cef, chad, chan, chap, chef, cher, chew, chic, chin, chip, chit, coup, cum, cunt, cur, couch,
|
|
|
|
|
dab, dag, dal, dam, dent, dew, dial, diet, dim, din, dip, dis, dit, doug, dub, dug, dunn, don,
|
|
|
|
|
fab, fax, fob, fog, foul, fur,
|
|
|
|
|
gag, gail, gain, gal, gam, gaol, ged, gel, ger, guam, gus, gut,
|
|
|
|
|
hail, ham, hank, hans, hat, hay, heil, heir, hem, hep, hud, hum, hung, hunk, hut, hush,
|
|
|
|
|
jim, jug,
|
|
|
|
|
kat,
|
|
|
|
|
lab, lad, lag, laid, lam, laos, lap, lat, lax, lay, led, leg, lex, liam, lib, lid, lied, lien, lies, linn, lip, lit, liz, lob, lug, lund, lung, lux, lash, loch, lush,
|
|
|
|
|
mag, maid, mann, mar, mat, med, mel, mend, mens, ment, mil, mins, mint, mob, moc, mop, mos, mot, mud, mug, mum, mesh,
|
|
|
|
|
nap, nat, nay, neil, nib, nip, noun, nous, nun, nut, nail, nash,
|
|
|
|
|
pac, paid, pail, pain, pair, pak, pal, pam, pans, pant, pap, par, pat, paw, pax, pens, pic, pier, pies, pins, pint, pit, pix, pod, pop, pos, pot, pour, pow, pub, pinch, pouch,
|
|
|
|
|
rand, rant, rent, rep, res, ret, rex, rib, rid, rig, rim, rub, rug, rum, runc, runs, ranch,
|
|
|
|
|
sac, sail, sal, sam, sans, sap, saw, sax, sew, sham, shaw, shin, sig, sin, sip, sis, suit, sung, suns, sup, sur, sus,
|
|
|
|
|
tad, tail, taj, tar, tax, tec, ted, tel, ter, tex, tic, tied, tier, ties, tim, tin, tit, tour, tout, tum,
|
|
|
|
|
wag, wand, womens, wap, wax, weir, won,
|
|
|
|
|
yan, yen,
|
|
|
|
|
zach
|
|
|
|
|
]
|
2023-02-10 16:06:02 +01:00
|
|
|
|
|
|
|
|
|
|
2024-01-31 17:30:17 +01:00
|
|
|
|
# Lua 配置: 置顶候选项
|
2024-02-08 17:16:29 +01:00
|
|
|
|
# 注释太长了,请参考 pin_cand_filter.lua 开头的说明书。
|
2024-01-31 17:30:17 +01:00
|
|
|
|
pin_cand_filter:
|
|
|
|
|
# 格式:编码<Tab>字词1<Space>字词2……
|
2024-02-08 17:16:29 +01:00
|
|
|
|
# ⚙️ 以下是个人习惯,仅供参考,推荐打补丁用自己的习惯覆盖。
|
2024-01-31 17:30:17 +01:00
|
|
|
|
# 单编码
|
|
|
|
|
- q 去 千
|
|
|
|
|
- w 我 万 往
|
2024-02-08 17:16:29 +01:00
|
|
|
|
- e 呃
|
2024-01-31 17:30:17 +01:00
|
|
|
|
- r 让 人
|
|
|
|
|
- t 他 她 它 祂
|
|
|
|
|
- y 与 于
|
2024-02-05 14:59:13 +01:00
|
|
|
|
# - u 在 custom_phrase 置顶了 有 🈶 又 由
|
|
|
|
|
# - i 在 custom_phrase 置顶了 一 1️⃣ 以 已 亦
|
2024-02-08 17:16:29 +01:00
|
|
|
|
- o 哦
|
2024-01-31 17:30:17 +01:00
|
|
|
|
- p 片 篇
|
2024-02-08 17:16:29 +01:00
|
|
|
|
- a 啊
|
2024-01-31 17:30:17 +01:00
|
|
|
|
- s 是 时 使 式
|
2024-02-08 17:16:29 +01:00
|
|
|
|
- d 的 地 得
|
2024-01-31 17:30:17 +01:00
|
|
|
|
- f 发 放 分
|
|
|
|
|
- g 个 各
|
|
|
|
|
- h 和 或
|
|
|
|
|
- j 及 将 即 既 继
|
2024-02-08 17:16:29 +01:00
|
|
|
|
- k 可
|
2024-01-31 17:30:17 +01:00
|
|
|
|
- l 了 啦 喽 嘞
|
|
|
|
|
- z 在 再 自
|
|
|
|
|
- x 想 像 向
|
|
|
|
|
- c 才 从
|
|
|
|
|
# - v
|
2024-02-10 16:18:12 +01:00
|
|
|
|
- b 吧 把 呗 百
|
2024-01-31 17:30:17 +01:00
|
|
|
|
- n 那 哪 拿 呐
|
|
|
|
|
- m 吗 嘛 呣
|
2024-02-03 06:24:00 +01:00
|
|
|
|
# 常用单字
|
2024-02-02 15:50:12 +01:00
|
|
|
|
- qing 请
|
|
|
|
|
- qu 去
|
|
|
|
|
- wo 我
|
|
|
|
|
- wei 为
|
2024-02-08 17:16:29 +01:00
|
|
|
|
- er 而 儿 二
|
2024-02-02 15:50:12 +01:00
|
|
|
|
- en 嗯
|
|
|
|
|
- rang 让
|
|
|
|
|
- ta 他 她 它 祂
|
|
|
|
|
- tai 太
|
2024-01-31 17:30:17 +01:00
|
|
|
|
- tong 同
|
|
|
|
|
- yu 与 于
|
2024-02-08 17:16:29 +01:00
|
|
|
|
- you 有 又 由
|
2024-02-02 15:50:12 +01:00
|
|
|
|
- yao 要
|
|
|
|
|
- ye 也
|
|
|
|
|
- shi 是 时 使 式
|
2024-02-03 06:24:00 +01:00
|
|
|
|
- suo 所
|
2024-02-08 17:16:29 +01:00
|
|
|
|
- shang 上
|
2024-02-03 06:24:00 +01:00
|
|
|
|
- shuo 说
|
2024-02-08 17:16:29 +01:00
|
|
|
|
- de 的 地 得
|
2024-02-02 15:50:12 +01:00
|
|
|
|
- dan 但
|
2024-02-03 06:24:00 +01:00
|
|
|
|
- dou 都
|
2024-02-02 15:50:12 +01:00
|
|
|
|
- dao 到 倒
|
2024-02-08 17:16:29 +01:00
|
|
|
|
- dian 点
|
2024-02-02 15:50:12 +01:00
|
|
|
|
- dang 当
|
2024-02-08 17:16:29 +01:00
|
|
|
|
- dui 对
|
2024-02-02 15:50:12 +01:00
|
|
|
|
- fa 发
|
|
|
|
|
- ge 个 各
|
|
|
|
|
- gang 刚
|
2024-01-31 17:30:17 +01:00
|
|
|
|
- he 和
|
2024-02-02 15:50:12 +01:00
|
|
|
|
- huo 或
|
|
|
|
|
- hui 会
|
|
|
|
|
- hai 还
|
2024-02-08 17:16:29 +01:00
|
|
|
|
- hao 好
|
2024-01-31 17:30:17 +01:00
|
|
|
|
- ji 及 即 既
|
2024-02-02 15:50:12 +01:00
|
|
|
|
- jiu 就
|
|
|
|
|
- jiang 将
|
2024-02-08 17:16:29 +01:00
|
|
|
|
- ke 可
|
|
|
|
|
- kan 看
|
2024-02-02 15:50:12 +01:00
|
|
|
|
- kai 开
|
|
|
|
|
- le 了
|
|
|
|
|
- la 啦 拉
|
|
|
|
|
- lai 来
|
|
|
|
|
- li 里
|
|
|
|
|
- zai 在 再
|
2024-01-31 17:30:17 +01:00
|
|
|
|
- zhi 只
|
2024-02-02 15:50:12 +01:00
|
|
|
|
- zhe 这 着
|
|
|
|
|
- zhen 真
|
|
|
|
|
- zui 最
|
|
|
|
|
- zheng 正
|
2024-02-08 17:16:29 +01:00
|
|
|
|
- zuo 做 坐 左
|
2024-02-02 15:50:12 +01:00
|
|
|
|
- ze 则
|
|
|
|
|
- xiang 想 像 向
|
|
|
|
|
- xian 先
|
2024-02-08 17:16:29 +01:00
|
|
|
|
- xia 下
|
2024-02-02 15:50:12 +01:00
|
|
|
|
- xing 行
|
2024-01-31 17:30:17 +01:00
|
|
|
|
- cai 才
|
2024-02-02 15:50:12 +01:00
|
|
|
|
- cong 从
|
|
|
|
|
- chu 出
|
2024-02-25 12:00:19 +01:00
|
|
|
|
- ba 把 吧
|
2024-02-02 15:50:12 +01:00
|
|
|
|
- bu 不
|
|
|
|
|
- bing 并
|
|
|
|
|
- bei 被
|
|
|
|
|
- bie 别
|
|
|
|
|
- bi 比
|
|
|
|
|
- bing 并
|
2024-02-03 06:24:00 +01:00
|
|
|
|
- na 那 哪 拿 呐
|
2024-02-02 15:50:12 +01:00
|
|
|
|
- ni 你
|
|
|
|
|
- ma 吗 嘛 妈
|
|
|
|
|
- mei 没
|
2024-02-03 06:24:00 +01:00
|
|
|
|
- mai 买 卖
|
2024-02-25 12:00:19 +01:00
|
|
|
|
- reng 仍 扔
|
2024-01-31 17:30:17 +01:00
|
|
|
|
# ta、na
|
|
|
|
|
- ta men 他们 她们 它们
|
2024-02-02 15:50:12 +01:00
|
|
|
|
- tm 他们 她们 它们
|
|
|
|
|
- ta de 他的 她的 它的
|
2024-02-03 06:24:00 +01:00
|
|
|
|
- td 他的 她的 它的
|
2024-01-31 17:30:17 +01:00
|
|
|
|
- ta men de 他们的 她们的 它们的
|
|
|
|
|
- na er 那儿 哪儿
|
|
|
|
|
- na ge 那个 哪个
|
2024-02-03 06:24:00 +01:00
|
|
|
|
- ng 那个 哪个 拿个
|
2024-01-31 17:30:17 +01:00
|
|
|
|
- na xie 那些 哪些
|
|
|
|
|
- na li 那里 哪里
|
|
|
|
|
- na bian 那边 哪边
|
|
|
|
|
- na bian er 那边儿 哪边儿
|
|
|
|
|
- na wei 那位 哪位
|
|
|
|
|
# 简码
|
|
|
|
|
- zh 这
|
2024-02-02 15:50:12 +01:00
|
|
|
|
- dd 等等
|
|
|
|
|
- dddd 等等等等
|
|
|
|
|
- gg 刚刚
|
|
|
|
|
- cgg 才刚刚
|
|
|
|
|
- zd 知道
|
|
|
|
|
- bzd 不知道
|
|
|
|
|
- ww 往往
|
|
|
|
|
- hh 哈哈
|
|
|
|
|
- kk 看看
|
|
|
|
|
- cc 常常
|
2024-02-08 17:16:29 +01:00
|
|
|
|
- xx 想想 想象
|
2024-02-02 15:50:12 +01:00
|
|
|
|
- yw 因为
|
|
|
|
|
- sm 什么
|
|
|
|
|
- wsm 为什么
|
|
|
|
|
- sbs 是不是
|
|
|
|
|
- msm 没什么
|
|
|
|
|
- smd 什么的
|
|
|
|
|
- sms 什么是
|
|
|
|
|
- sma 什么啊
|
2024-01-31 17:30:17 +01:00
|
|
|
|
|
|
|
|
|
|
2022-12-02 07:14:59 +01:00
|
|
|
|
# 主翻译器,拼音
|
2022-10-30 16:47:40 +01:00
|
|
|
|
translator:
|
2024-01-03 16:27:55 +01:00
|
|
|
|
dictionary: rime_ice # 挂载词库 rime_ice.dict.yaml
|
|
|
|
|
spelling_hints: 8 # corrector.lua :为了让错音错字提示的 Lua 同时适配全拼双拼,将拼音显示在 comment 中
|
|
|
|
|
always_show_comments: true # corrector.lua :Rime 默认在 preedit 等于 comment 时取消显示 comment,这里强制一直显示,供 corrector.lua 做判断用。
|
|
|
|
|
initial_quality: 1.2 # 拼音的权重应该比英文大
|
|
|
|
|
preedit_format: # preedit_format 影响到输入框的显示和“Shift+回车”上屏的字符
|
|
|
|
|
- xform/([jqxy])v/$1u/ # 显示为 ju qu xu yu
|
|
|
|
|
# - xform/([nl])v/$1ü/ # 显示为 nü lü
|
|
|
|
|
# - xform/([nl])ue/$1üe/ # 显示为 nüe lüe
|
|
|
|
|
- xform/([nl])v/$1v/ # 显示为 nv lv
|
|
|
|
|
- xform/([nl])ue/$1ve/ # 显示为 nve lve
|
2022-10-30 16:47:40 +01:00
|
|
|
|
|
|
|
|
|
|
2022-12-02 07:14:59 +01:00
|
|
|
|
# 次翻译器,英文
|
2022-10-30 16:47:40 +01:00
|
|
|
|
melt_eng:
|
2022-12-02 07:14:59 +01:00
|
|
|
|
dictionary: melt_eng # 挂载词库 melt_eng.dict.yaml
|
|
|
|
|
enable_sentence: false # 禁止造句
|
|
|
|
|
enable_user_dict: false # 禁用用户词典
|
|
|
|
|
initial_quality: 1.1 # 初始权重
|
2023-02-27 10:18:06 +01:00
|
|
|
|
comment_format: # 自定义提示码
|
|
|
|
|
- xform/.*// # 清空提示码
|
2022-10-30 16:47:40 +01:00
|
|
|
|
|
|
|
|
|
|
2024-02-04 13:49:51 +01:00
|
|
|
|
# 中英混合词汇
|
|
|
|
|
cn_en:
|
|
|
|
|
dictionary: ""
|
|
|
|
|
user_dict: en_dicts/cn_en
|
|
|
|
|
db_class: stabledb
|
|
|
|
|
enable_completion: true
|
|
|
|
|
enable_sentence: false
|
2024-02-10 17:13:33 +01:00
|
|
|
|
initial_quality: 0.5
|
2024-02-04 13:49:51 +01:00
|
|
|
|
comment_format:
|
|
|
|
|
- xform/^.+$//
|
|
|
|
|
|
|
|
|
|
|
2023-04-11 16:46:29 +02:00
|
|
|
|
# 自定义短语:custom_phrase.txt
|
|
|
|
|
custom_phrase:
|
|
|
|
|
dictionary: ""
|
2024-01-03 16:27:55 +01:00
|
|
|
|
user_dict: custom_phrase # 可以修改这里,改成自己的 txt 文件
|
2024-01-25 20:41:38 +01:00
|
|
|
|
db_class: stabledb # 只读数据库,无法动态调频;设为 tabledb 可以动态调频
|
2024-01-03 16:27:55 +01:00
|
|
|
|
enable_completion: false # 补全提示
|
|
|
|
|
enable_sentence: false # 禁止造句
|
|
|
|
|
initial_quality: 99 # custom_phrase 的权重应该比 pinyin 和 melt_eng 大
|
2023-04-11 16:46:29 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Emoji
|
|
|
|
|
emoji:
|
|
|
|
|
option_name: emoji
|
2024-01-29 11:51:45 +01:00
|
|
|
|
opencc_config: emoji.json
|
2024-01-29 12:09:06 +01:00
|
|
|
|
inherit_comment: false # 在 corrector.lua 及反查中,emoji 返回空注释
|
2023-04-11 16:46:29 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 简繁切换
|
|
|
|
|
traditionalize:
|
|
|
|
|
option_name: traditionalization
|
2024-01-29 11:51:45 +01:00
|
|
|
|
opencc_config: s2t.json # s2t.json | s2hk.json | s2tw.json | s2twp.json
|
|
|
|
|
tips: none # 转换提示: all 都显示 | char 仅单字显示 | none 不显示。
|
2024-01-30 01:27:34 +01:00
|
|
|
|
tags: [ abc, number, gregorian_to_lunar ] # 限制在对应 tag,不对其他如反查的内容做简繁转换
|
2023-04-11 16:46:29 +02:00
|
|
|
|
|
|
|
|
|
|
2022-11-09 08:57:06 +01:00
|
|
|
|
# 标点符号
|
2023-04-11 16:46:29 +02:00
|
|
|
|
# punctuator 下面有三个子项:
|
|
|
|
|
# full_shape 全角标点映射
|
|
|
|
|
# half_shape 半角标点映射
|
|
|
|
|
# symbols Rime 的预设配置是以 '/' 前缀开头输出一系列字符,自定义的 symbols_v.yaml 修改成了 'v' 开头。
|
2022-10-30 16:47:40 +01:00
|
|
|
|
punctuator:
|
2023-04-11 16:46:29 +02:00
|
|
|
|
full_shape:
|
|
|
|
|
__include: default:/punctuator/full_shape # 从 default.yaml 导入配置
|
|
|
|
|
half_shape:
|
|
|
|
|
__include: default:/punctuator/half_shape # 从 default.yaml 导入配置
|
|
|
|
|
symbols:
|
|
|
|
|
__include: symbols_v:/symbols # 从 symbols_v.yaml 导入配置
|
2022-10-30 16:47:40 +01:00
|
|
|
|
|
|
|
|
|
|
2024-01-29 11:51:45 +01:00
|
|
|
|
# 部件拆字反查
|
|
|
|
|
radical_lookup:
|
|
|
|
|
tag: radical_lookup
|
|
|
|
|
dictionary: radical_pinyin
|
|
|
|
|
enable_user_dict: false
|
|
|
|
|
prefix: "uU" # 反查前缀(反查时前缀会消失影响打英文所以设定为两个字母,或可改成一个非字母符号),与 recognizer/patterns/radical_lookup 匹配
|
|
|
|
|
tips: " 〔拆字〕"
|
|
|
|
|
comment_format:
|
|
|
|
|
- erase/^.*$//
|
|
|
|
|
# 部件拆字滤镜
|
|
|
|
|
radical_reverse_lookup:
|
|
|
|
|
tags: [ radical_lookup ]
|
2024-02-05 14:59:13 +01:00
|
|
|
|
# dictionary 为拼音标注来源。目前是显示本方案词库的注音,可去部件拆字方案下载更全的、带声调的、已编译好的词典
|
|
|
|
|
# https://github.com/mirtlecn/rime-radical-pinyin?tab=readme-ov-file#%E5%8F%8D%E6%9F%A5%E5%B8%A6%E5%A3%B0%E8%B0%83%E6%B3%A8%E9%9F%B3
|
|
|
|
|
dictionary: rime_ice
|
2024-01-29 11:51:45 +01:00
|
|
|
|
# comment_format: # 自定义 comment,例如在左右加上括号
|
|
|
|
|
# - xform/^/(/
|
|
|
|
|
# - xform/$/)/
|
|
|
|
|
|
|
|
|
|
|
2022-10-30 16:47:40 +01:00
|
|
|
|
# 处理符合特定规则的输入码,如网址、反查
|
|
|
|
|
recognizer:
|
2023-04-11 16:46:29 +02:00
|
|
|
|
import_preset: default # 从 default.yaml 继承通用的
|
|
|
|
|
patterns: # 再增加方案专有的:
|
2024-01-14 17:14:26 +01:00
|
|
|
|
punct: "^v([0-9]|10|[A-Za-z]+)$" # 响应 symbols_v.yaml 的 symbols,用 'v' 替换 '/'
|
2024-01-29 11:51:45 +01:00
|
|
|
|
radical_lookup: "^uU[a-z]+$" # 响应部件拆字的反查,与 radical_lookup/prefix 匹配
|
|
|
|
|
unicode: "^U[a-f0-9]+" # 脚本将自动获取第 2 个字符 U 作为触发前缀,响应 lua_translator@unicode,输出 Unicode 字符
|
|
|
|
|
number: "^R[0-9]+[.]?[0-9]*" # 脚本将自动获取第 2 个字符 R 作为触发前缀,响应 lua_translator@number_translator,数字金额大写
|
|
|
|
|
gregorian_to_lunar: "^N[0-9]{1,8}" # 脚本将自动获取第 2 个字符 N 作为触发前缀,响应 lua_translator@lunar,公历转农历,输入 N20240115 得到「二〇二三年腊月初五」
|
2022-10-30 16:47:40 +01:00
|
|
|
|
|
|
|
|
|
|
2023-04-11 16:46:29 +02:00
|
|
|
|
# 从 default 继承快捷键
|
|
|
|
|
key_binder:
|
2024-01-29 11:51:45 +01:00
|
|
|
|
import_preset: default # 从 default.yaml 继承通用的
|
|
|
|
|
search: "`" # 辅码引导符,要添加到 speller/alphabet
|
|
|
|
|
# bindings: # 也可以再增加方案专有的快捷键
|
2022-10-30 16:47:40 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 拼写设定
|
|
|
|
|
speller:
|
|
|
|
|
# 如果不想让什么标点直接上屏,可以加在 alphabet,或者编辑标点符号为两个及以上的映射
|
2024-01-29 11:51:45 +01:00
|
|
|
|
alphabet: zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA`
|
2024-02-24 12:47:54 +01:00
|
|
|
|
# initials 定义仅作为始码的按键,排除 ` 让单个的 ` 可以直接上屏
|
|
|
|
|
initials: zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA
|
2022-12-02 07:14:59 +01:00
|
|
|
|
delimiter: " '" # 第一位<空格>是拼音之间的分隔符;第二位<'>表示可以手动输入单引号来分割拼音。
|
2022-10-30 16:47:40 +01:00
|
|
|
|
algebra:
|
|
|
|
|
### 模糊音
|
|
|
|
|
# 声母
|
2024-01-29 11:51:45 +01:00
|
|
|
|
# - derive/^([zcs])h/$1/ # zh* ch* sh* 派生出 z* c* s*
|
|
|
|
|
# - derive/^([zcs])([^h])/$1h$2/ # z* c* s* 派生出 zh* ch* sh*
|
|
|
|
|
# - derive/^l/n/ # 解释:为 l 开头的拼写派生出 n 开头,即 nai 也可以输出 lai(来、莱、赖……)
|
|
|
|
|
# - derive/^n/l/ # lai 可输出 nai(奶、乃、奈……)。 可以单向或成对儿启用模糊音
|
2023-08-15 16:22:22 +02:00
|
|
|
|
# - derive/^f/h/
|
|
|
|
|
# - derive/^h/f/
|
2022-10-30 16:47:40 +01:00
|
|
|
|
# - derive/^l/r/
|
|
|
|
|
# - derive/^r/l/
|
|
|
|
|
# - derive/^g/k/
|
|
|
|
|
# - derive/^k/g/
|
|
|
|
|
# 韵母
|
2023-05-24 06:51:56 +02:00
|
|
|
|
# - derive/ang$/an/
|
|
|
|
|
# - derive/an$/ang/
|
|
|
|
|
# - derive/eng$/en/
|
|
|
|
|
# - derive/en$/eng/
|
|
|
|
|
# - derive/in$/ing/
|
|
|
|
|
# - derive/ing$/in/
|
|
|
|
|
# - derive/ian$/iang/
|
|
|
|
|
# - derive/iang$/ian/
|
|
|
|
|
# - derive/uan$/uang/
|
|
|
|
|
# - derive/uang$/uan/
|
|
|
|
|
# - derive/ai$/an/
|
|
|
|
|
# - derive/an$/ai/
|
|
|
|
|
# - derive/ong$/un/
|
|
|
|
|
# - derive/un$/ong/
|
|
|
|
|
# - derive/ong$/on/
|
|
|
|
|
# - derive/iong$/un/
|
|
|
|
|
# - derive/un$/iong/
|
|
|
|
|
# - derive/ong$/eng/
|
|
|
|
|
# - derive/eng$/ong/
|
2022-10-30 16:47:40 +01:00
|
|
|
|
# 拼音音节
|
|
|
|
|
# - derive/^fei$/hui/
|
|
|
|
|
# - derive/^hui$/fei/
|
|
|
|
|
# - derive/^hu$/fu/
|
|
|
|
|
# - derive/^fu$/hu/
|
|
|
|
|
# - derive/^wang$/huang/
|
|
|
|
|
# - derive/^huang$/wang/
|
|
|
|
|
|
|
|
|
|
### 旧时的拼写规则
|
|
|
|
|
# - derive/un$/uen/
|
|
|
|
|
# - derive/ui$/uei/
|
|
|
|
|
# - derive/iu$/iou/
|
|
|
|
|
|
|
|
|
|
### 超级简拼
|
|
|
|
|
- erase/^hm$/ # 响应超级简拼,取消「噷 hm」的独占
|
|
|
|
|
- erase/^m$/ # 响应超级简拼,取消「呣 m」的独占
|
|
|
|
|
- erase/^n$/ # 响应超级简拼,取消「嗯 n」的独占
|
|
|
|
|
- erase/^ng$/ # 响应超级简拼,取消「嗯 ng」的独占
|
|
|
|
|
- abbrev/^([a-z]).+$/$1/ # 超级简拼
|
|
|
|
|
- abbrev/^([zcs]h).+$/$1/ # 超级简拼中,zh ch sh 视为整体(ch'sh → 城市),而不是像这样分开(c'h's'h → 吃好睡好)。
|
|
|
|
|
|
2024-01-29 11:51:45 +01:00
|
|
|
|
### v u 转换
|
2024-02-05 14:59:13 +01:00
|
|
|
|
# 雾凇的词库严格按照正确的 u v(ü) 注音的,支持使用 qu/qv nue/nve 来输入 qu nve
|
2022-10-30 16:47:40 +01:00
|
|
|
|
- derive/^([nl])ve$/$1ue/
|
|
|
|
|
- derive/^([jqxy])u/$1v/
|
2024-02-05 14:59:13 +01:00
|
|
|
|
# 以防引入的其他词库没按照正确方式注音,也做一个转换
|
|
|
|
|
- derive/^([nl])ue$/$1ve/
|
2022-10-30 16:47:40 +01:00
|
|
|
|
- derive/^([jqxy])v/$1u/
|
|
|
|
|
|
|
|
|
|
### 自动纠错
|
2024-02-23 16:40:18 +01:00
|
|
|
|
########## START 这几个有副作用的规则圈起来,方便取舍
|
|
|
|
|
# 这些规则对全拼简拼混输有副作用:如「x'ai 喜爱」被纠错为「xia 下」
|
2022-10-30 16:47:40 +01:00
|
|
|
|
# zh、ch、sh
|
|
|
|
|
- derive/([zcs])h(a|e|i|u|ai|ei|an|en|ou|uo|ua|un|ui|uan|uai|uang|ang|eng|ong)$/h$1$2/ # hzi → zhi
|
|
|
|
|
- derive/([zcs])h([aeiu])$/$1$2h/ # zih → zhi
|
2024-02-23 16:40:18 +01:00
|
|
|
|
# # ia
|
|
|
|
|
# - derive/([qjx])ia$/$1ai/ # qai → qia
|
|
|
|
|
# # an
|
|
|
|
|
# - derive/([wrtypsdfghklzcbnm])an$/$1na/ # dna → dan
|
|
|
|
|
# # en
|
|
|
|
|
# - derive/([wrpsdfghklzcbnm])en$/$1ne/ # rne → ren
|
|
|
|
|
# # in
|
|
|
|
|
# - derive/([qypjlxbnm])in$/$1ni/ # qni → qin
|
|
|
|
|
# # un
|
|
|
|
|
# - derive/([qrtysdghjklzxc])un$/$1nu/ # qnu → qun
|
2024-02-25 12:00:19 +01:00
|
|
|
|
# # ian
|
|
|
|
|
# - derive/([qtpdjlxbnm])ian$/$1ain/
|
2024-02-23 16:40:18 +01:00
|
|
|
|
########## END
|
2022-10-30 16:47:40 +01:00
|
|
|
|
# ai
|
2023-02-17 19:50:10 +01:00
|
|
|
|
- derive/^([wghk])ai$/$1ia/ # wia → wai
|
2022-10-30 16:47:40 +01:00
|
|
|
|
# ei
|
2024-02-23 16:40:18 +01:00
|
|
|
|
- derive/([wfghkz])ei$/$1ie/ # wie → wei
|
2022-10-30 16:47:40 +01:00
|
|
|
|
# ie
|
2024-02-23 16:40:18 +01:00
|
|
|
|
- derive/([jqx])ie$/$1ei/ # jei → jie
|
2022-10-30 16:47:40 +01:00
|
|
|
|
# ao
|
|
|
|
|
- derive/([rtypsdghklzcbnm])ao$/$1oa/
|
|
|
|
|
# ou
|
|
|
|
|
- derive/([ypfm])ou$/$1uo/
|
|
|
|
|
# uo(无)
|
|
|
|
|
# ang
|
|
|
|
|
- derive/([wrtypsdfghklzcbnm])ang$/$1nag/
|
|
|
|
|
- derive/([wrtypsdfghklzcbnm])ang$/$1agn/
|
|
|
|
|
# eng
|
|
|
|
|
- derive/([wrtpsdfghklzcbnm])eng$/$1neg/
|
|
|
|
|
- derive/([wrtpsdfghklzcbnm])eng$/$1egn/
|
|
|
|
|
# ing
|
|
|
|
|
- derive/([qtypdjlxbnm])ing$/$1nig/
|
|
|
|
|
- derive/([qtypdjlxbnm])ing$/$1ign/
|
|
|
|
|
# ong
|
|
|
|
|
- derive/([rtysdghklzcn])ong$/$1nog/
|
|
|
|
|
- derive/([rtysdghklzcn])ong$/$1ogn/
|
|
|
|
|
# iao
|
|
|
|
|
- derive/([qtpdjlxbnm])iao$/$1ioa/
|
|
|
|
|
- derive/([qtpdjlxbnm])iao$/$1oia/
|
|
|
|
|
# ui
|
|
|
|
|
- derive/([rtsghkzc])ui$/$1iu/
|
|
|
|
|
# iu
|
|
|
|
|
- derive/([qjlxnm])iu$/$1ui/
|
|
|
|
|
# iang
|
|
|
|
|
- derive/([qjlxn])iang$/$1aing/
|
|
|
|
|
- derive/([qjlxn])iang$/$1inag/
|
|
|
|
|
# ua
|
|
|
|
|
- derive/([g|k|h|zh|sh])ua$/$1au/
|
|
|
|
|
# uai
|
|
|
|
|
- derive/([g|h|k|zh|ch|sh])uai$/$1aui/
|
2023-08-07 17:46:53 +02:00
|
|
|
|
# - derive/([g|h|k|zh|ch|sh])uai$/$1uia/ # 和「会啊、追啊」等常用词有冲突
|
2022-10-30 16:47:40 +01:00
|
|
|
|
# uan
|
|
|
|
|
- derive/([qrtysdghjklzxcn])uan$/$1aun/
|
|
|
|
|
# - derive/([qrtysdghjklzxcn])uan$/$1una/ # 和「去哪、露娜」等常用词有冲突
|
|
|
|
|
# ue
|
|
|
|
|
- derive/([nlyjqx])ue$/$1eu/
|
|
|
|
|
# uang
|
|
|
|
|
- derive/([g|h|k|zh|ch|sh])uang$/$1aung/
|
|
|
|
|
- derive/([g|h|k|zh|ch|sh])uang$/$1uagn/
|
|
|
|
|
- derive/([g|h|k|zh|ch|sh])uang$/$1unag/
|
|
|
|
|
- derive/([g|h|k|zh|ch|sh])uang$/$1augn/
|
|
|
|
|
# iong
|
|
|
|
|
- derive/([jqx])iong$/$1inog/
|
|
|
|
|
- derive/([jqx])iong$/$1oing/
|
|
|
|
|
- derive/([jqx])iong$/$1iogn/
|
|
|
|
|
- derive/([jqx])iong$/$1oign/
|
|
|
|
|
# 其他
|
|
|
|
|
- derive/([rtsdghkzc])o(u|ng)$/$1o/ # do → dou|dong
|
2024-02-20 20:50:40 +01:00
|
|
|
|
- derive/(.+)ong$/$1on/ # lon → long
|
2022-10-30 16:47:40 +01:00
|
|
|
|
- derive/([tl])eng$/$1en/ # ten → teng
|
|
|
|
|
- derive/([qwrtypsdfghjklzxcbnm])([aeio])ng$/$1ng/ # lng → lang、leng、ling、long
|