rime-ice/README.md
2023-01-06 00:36:41 +08:00

156 lines
5.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 雾凇拼音
![demo](./others/demo.webp)
功能齐全,词库体验良好,长期更新修订。
## 基本套路
- 简体 | 全拼 | 双拼
- 主要功能
- [melt_eng](https://github.com/tumuyan/rime-melt) 英文输入
- [两分输入法](http://cheonhyeong.com/Simplified/download.html) 拼字
- 简繁切换
- 日期、时间、星期
- 自整理的 Emoji
- [以词定字](https://github.com/BlindingDark/rime-lua-select-character)
- [长词优先](https://github.com/tumuyan/rime-melt/blob/master/lua/melt.lua)
- [Unicode](https://github.com/shewer/librime-lua-script/blob/main/lua/component/unicode.lua)
- 所有标点符号直接上屏,「/」模式改为「v」模式「/」直接上屏
- 增加了许多拼音纠错
- 简体字表、词库
- [《通用规范汉字表》的 8105 字字表](https://github.com/iDvel/The-Table-of-General-Standard-Chinese-Characters)
- [华宇野风系统词库](http://bbs.pinyin.thunisoft.com/forum.php?mod=viewthread&tid=30049)
- [清华大学开源词库](https://github.com/thunlp/THUOCL)
- [《现代汉语常用词表》](https://gist.github.com/indiejoseph/eae09c673460aa0b56db)
- [《现代汉语词典》](https://forum.freemdict.com/t/topic/12102)
- [《同义词词林》](https://forum.freemdict.com/t/topic/1211)
- [《新华成语大词典》](https://forum.freemdict.com/t/topic/11407)
- [搜狗网络流行新词](https://pinyin.sogou.com/dict/detail/index/4)
- [腾讯词向量](https://ai.tencent.com/ailab/nlp/en/download.html)
- 词库修订
- 校对大量异形词、错别字、错误注音
详细介绍:[雾凇拼音,我的 Rime 配置及新手指引](https://dvel.me/posts/my-rime/)
<br>
## 长期维护词库
因为没有找到一份比较好的词库,干脆自己维护一个。综合了几个不错的词库,精心调教了很多。
主要维护的词库:
- `8105` 字表。
- `base` 基础词库。
- `sogou` 搜狗流行词。
- `ext` 扩展词库,小词库。
- `tencent` 扩展词库,大词库。
- Emoji
维护内容主要是异形词、错别字的校对,错误注音的修正,缺失的常用词汇的增添,词频的调整。
欢迎在词库方面提 issue我会及时更新修正。
<br>
## 使用说明
备份后删除配置目录下原有的配置文件,再将仓库所有文件复制粘贴进去就好了。
配置目录:
- 鼠须管: `~/Library/Rime`
- 小狼毫: `%APPDATA%\Rime`
更新词库:
词库每个月都会更新几次,更新时只需要将下面 3 个文件夹覆盖过去并重新部署即可。
- `cn_dicts` 拼音相关词库
- `en_dicts` 英文相关词库
- `opencc` Emoji
<br>
## 简单指引
### 格式
在修改配置或词库前,请注意 Rime 对格式的要求UTF-8 编码,严格遵循缩进,在配置文件中以空格缩进。
但是词条之间是用 Tab 分割的:
```
拼音 pin yin 1234
拼音<Tab>pin<Space>yin<Tab>1234
```
### 主要的配置文件
- `default.custom.yaml` 一些全局设置。
- `xxx.schema.yaml` 方案配置,大部分功能的引用和实现。
部署成功后,建议查阅一遍,按照自己的偏好进行修改,基本都写了注释。
### 常用修改示例
##### 呼出方案选单
`default.custom.yaml` 中修改,默认为 Control+Shift+gravegrave 是 `` ` `` 反引号Tab 上面那个)。
##### Shift 切换中英
`default.custom.yaml` 中修改 `Shift_L` 对应的选项,将 `noop` 修改为 `commit_code` 、`commit_text` 或 `clear`。
##### 逗号句号翻页
1. 在 `default.custom.yaml` 中解开句号逗号翻页的注释。
2. 在 `rime_ice.schema.yaml` 中注释掉 `url_2`。(因为这个选项会覆盖掉句号的行为)
##### 引入其他词库
在 `rime_ice.dict.yaml` 中添加,`- cn_dicts/xxx` 即表示援引 `cn_dicts/` 目录下的 `xxx.dict.yaml` 文件。
##### 自定义短语
在 `custom_phrase.txt` 中添加,建议清空,换成你自己的习惯。
双拼需要额外手动创建 `custom_phrase_double.txt`。
##### 标点符号映射
在 `symbols_custom.yaml` 中修改,单个映射即直接上屏,多个映射可以进行复选。
##### 模糊音
在 `rime_ice.schema.yaml` 中 `algebra` 下面解开相关注释,可单向或成对选择。
##### 日期时间等关键字
在方案中修改 `date_translator` 下 `date`、`time` 等对应的关键字。
<br>
## 感谢
上述用到的词库,及 [@Huandeep](https://github.com/Huandeep) 整理的多个词库。
上述提到的方案及功能参考。
搜狗转 Rime[lewangdev/scel2txt](https://github.com/lewangdev/scel2txt)
大量参考[校对网](http://www.jiaodui.com/bbs/)。
Thanks to JetBrains for the OSS development license.
[![JetBrains](https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.svg)](https://jb.gg/OpenSourceSupport)
<br>
## ❤️ 赞助 ☕
如果觉得项目不错,可以请 Dvel 吃个煎饼馃子。
<img src="./others/sponsor.webp" alt="请 Dvel 吃个煎饼馃子" width=600 />