Bläddra i källkod

add feature for dict

Dew-OF-Aurora 2 veckor sedan
förälder
incheckning
786960c07e
2 ändrade filer med 253 tillägg och 0 borttagningar
  1. 251 0
      custom/rime_frost.custom.dict.yaml
  2. 2 0
      custom/rime_frost.custom.yaml

+ 251 - 0
custom/rime_frost.custom.dict.yaml

@@ -0,0 +1,251 @@
+# Rime dictionary
+# encoding: utf-8
+
+---
+name: rime_frost
+version: "2025-11-25"
+import_tables:
+  - cn_dicts/8105     # 字表
+  - cn_dicts/41448  # 大字表(按需启用)
+  - cn_dicts/base     # 基础词库
+  - cn_dicts/ext      # 扩展词库
+  - cn_dicts/tencent  # 腾讯词向量(大词库,部署时间较长)
+  - cn_dicts/others   # 一些杂项
+
+  # 细胞词库
+  - cn_dicts_cell/medication
+  - cn_dicts_cell/industry_product
+  - cn_dicts_cell/exthot
+  - cn_dicts_cell/chess
+  - cn_dicts_cell/chess2
+  - cn_dicts_cell/animal
+  - cn_dicts_cell/game
+  - cn_dicts_cell/idiom
+  - cn_dicts_cell/sport
+  - cn_dicts_cell/media
+  - cn_dicts_cell/shulihua
+  - cn_dicts_cell/food
+  - cn_dicts_cell/inputmethod
+  - cn_dicts_cell/history
+  - cn_dicts_cell/place
+  - cn_dicts_cell/geography
+  - cn_dicts_cell/name2
+  - cn_dicts_cell/literature
+  - cn_dicts_cell/music
+  - cn_dicts_cell/computer
+  - cn_dicts_cell/composite
+  - cn_dicts_cell/name
+...
+
+# 按需启用:
+
+# 大写字母
+# 可在拼音方案下直接输入大写字母(Shift + 字母),大写字母参与造句。
+# 示例:输入 `nihaoASDFzaijian` 得到 `你好ASDF再见`
+# (非雾凇方案的双拼如果要启用,需要参考双拼方案下的 speller/algebra 将大写字母搭桥改成一些特殊字符)
+A	A
+B	B
+C	C
+D	D
+E	E
+F	F
+G	G
+H	H
+I	I
+J	J
+K	K
+L	L
+M	M
+N	N
+O	O
+P	P
+Q	Q
+R	R
+S	S
+T	T
+U	U
+V	V
+W	W
+X	X
+Y	Y
+Z	Z
+
+# 数字参与中文造词,方便输入一些特殊的 ID。配合大写字母造词可以自动为 `5G网络`,`3D打印` 等词汇注音
+0	ling
+1	yi
+1	yao
+2	er
+3	san
+4	si
+5	wu
+6	liu
+7	qi
+8	ba
+9	jiu
+# 示例:输入 siSdian 得到 4S店
+3G
+4G
+5G
+3G网络
+4G网络
+5G网络
+3G流量
+4G流量
+5G流量
+2D
+3D
+4D
+3D打印
+2D电影
+3D电影
+4S店
+AE86
+M1
+M2
+M3
+M4
+M4A1
+
+
+# 加入词典,响应 opencc/others.txt 的 emoji 集合
+V动物
+V国旗
+V手势
+V表情
+V分数
+V按键
+V星号
+V特殊
+V常用
+V中华
+V中餐
+V串串
+V亚裔
+V亚裔女
+V亚裔男
+V运动
+V运动员
+V元素
+V公交
+V动物脸
+V包
+V午餐
+V饭
+V景点
+V器官
+V圆形
+V地铁
+V交通
+V坚果
+V外汇
+V钞票
+V纸币
+V货币
+V多媒体
+V夜晚
+V夜空
+V大自然
+V自然
+V气象
+V天气
+V娱乐
+V宗教
+V家禽
+V冷
+V寒冷
+V工具
+V帽
+V帽子
+V心心
+V快餐
+V怪物
+V拉丁
+V拉丁裔
+V拉美
+V拉美人
+V拉美裔
+V卷
+V数码
+V方形
+V正方形
+V日料
+V日式料理
+V日本菜
+V日用
+V早餐
+V早点
+V星座
+V时钟
+V月亮
+V有毒
+V服装
+V服饰
+V东亚人
+V东亚裔
+V果
+V水果
+V棕色人
+V棕色人种
+V植物
+V乐器
+V机械
+V正餐
+V武器
+V车
+V汽车
+V火车
+V热饮
+V牲畜
+V奖
+V奖项
+V奖牌
+V球
+V甜食
+V甜点
+V生肖
+V畜生
+V白人
+V白种人
+V眼镜
+V科学
+V穆斯林
+V节日
+V粗粮
+V精灵
+V肉
+V肤色
+V船
+V花
+V花朵
+V菜
+V蔬菜
+V叶子
+V虫
+V血型
+V衣服
+V西餐
+V调料
+V游乐园
+V酒
+V野味
+V野生动物
+V阿拉伯
+V阿拉伯人
+V雪
+V零食
+V电器
+V电子
+V鞋
+V鞋子
+V颜色
+V飞行器
+V饮料
+V餐具
+V发型
+V发色
+V鱼
+V鸟
+V面包
+V黄种人
+V黑人
+V点心

+ 2 - 0
custom/rime_frost.custom.yaml

@@ -4,6 +4,8 @@ patch:
   engine/filters/+:
     - lua_filter@*cold_word_drop.filter
 
+  translator/dictionary: rime_frost.custom
+
   switches:
     - name: ascii_mode
       states: [中, 英]