forked from iDvel/rime-ice
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
62 changed files
with
3,805 additions
and
8,573 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
name: Build and Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- "[0-9]+.*" | ||
paths: | ||
- "**/**" | ||
- "!**.md" | ||
- "!**.gitignore" | ||
- "!.github/**" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
Release: | ||
runs-on: ubuntu-latest | ||
if: github.repository == 'iDvel/rime-ice' | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Go | ||
if: ${{ contains(github.event.head_commit.message, ' [build]') || github.event_name == 'workflow_dispatch' }} | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.22 | ||
|
||
- name: Check and build | ||
id: check_and_build | ||
if: ${{ contains(github.event.head_commit.message, ' [build]') || github.event_name == 'workflow_dispatch' }} | ||
run: | | ||
cd others/script | ||
go mod tidy | ||
go run main.go --rime_path "${{ github.workspace }}" --auto_confirm | ||
- name: Pack dicts | ||
run: | | ||
mkdir dist | ||
echo "Pack all ..." | ||
find . -maxdepth 1 -name "*.lua" -o -name "*.yaml" -o -name "*.txt" | zip dist/full.zip -@ | ||
zip -r dist/full.zip cn_dicts en_dicts lua opencc LICENSE | ||
echo "Pack dicts ..." | ||
zip -r dist/all_dicts.zip cn_dicts en_dicts opencc radical_pinyin.dict.yaml | ||
echo "Pack cn_dicts ..." | ||
zip -r dist/cn_dicts.zip cn_dicts | ||
echo "Pack en_dicts ..." | ||
zip -r dist/en_dicts.zip en_dicts | ||
echo "Pack opencc ..." | ||
zip -r dist/opencc.zip opencc | ||
echo "copy LICENSE and README.md..." | ||
cp LICENSE dist/LICENSE.txt | ||
cp README.md dist/README.md | ||
- name: Create nightly release | ||
if: ${{ github.ref == 'refs/heads/main' }} | ||
uses: "softprops/action-gh-release@v2" | ||
with: | ||
body: | | ||
## 说明 | ||
这里是每次提交后自动打包的版本,包含最新的功能和词库 | ||
- `README.md`:简易的使用说明 | ||
- `full.zip` : 包含所有词典和方案文件 | ||
- `cn_dicts.zip`:中文词库 | ||
- `en_dicts.zip`:英文词库 | ||
- `opencc.zip`:opencc 词库(emoji 等) | ||
- `all_dicts.zip`:以上三个词库的整合 | ||
- `LICENSE.txt`:开源协议 | ||
tag_name: nightly | ||
name: "nightly build" | ||
make_latest: true | ||
files: | | ||
dist/* | ||
- name: Create stable release | ||
if: startsWith(github.ref, 'refs/tags/') | ||
uses: "softprops/action-gh-release@v2" | ||
with: | ||
body_path: ${{ github.workspace }}/others/CHANGELOG.md | ||
draft: true | ||
make_latest: true | ||
files: | | ||
dist/* | ||
- name: Push and commit | ||
if: ${{ steps.check_and_build.outcome == 'success' }} | ||
run: | | ||
git config --global user.name "github-actions[bot]" | ||
git config --global user.email "github-actions[bot]@users.noreply.github.com" | ||
git add --all | ||
if ! git diff --cached --quiet; then | ||
COMMIT_MSG=$(git log -1 --pretty=%B | sed -e 's/\s\[build\]$//' -e 's/^[a-zA-Z()]*:\s*//') | ||
git commit -m "build(ci): auto build for -> ${COMMIT_MSG} <-" | ||
git push | ||
else | ||
echo "No changes to commit." | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
|
||
这里是 Rime 的一份配置仓库,用户需要下载各平台对应的前端,并将此配置应用到配置目录。 | ||
|
||
雾凇拼音提供了一套开箱即用的完整配置,包含了输入方案(全拼、双拼)、长期维护的词库及各项扩展功能。 | ||
雾凇拼音提供了一套开箱即用的完整配置,包含输入方案(全拼、常见双拼)、长期维护的开源词库及各项扩展功能。 | ||
|
||
详细介绍:[Rime 配置:雾凇拼音](https://dvel.me/posts/rime-ice/) | ||
|
||
|
@@ -24,33 +24,40 @@ | |
|
||
- 简体 | 全拼 | 双拼 | ||
- 主要功能 | ||
- [melt_eng](https://github.com/tumuyan/rime-melt) 英文输入(@tumuyan | [Apache 2.0](https://github.com/tumuyan/rime-melt/blob/master/LICENSE)) | ||
- 轻量的英文输入,支持中英混输 | ||
- [优化英文输入体验](https://dvel.me/posts/make-rime-en-better/) | ||
- [部件拆字方案](https://github.com/mirtlecn/rime-radical-pinyin) 反查、辅码(@mirtlecn | [CC BY-SA 4.0](https://github.com/mirtlecn/rime-radical-pinyin/blob/master/LICENSE)) | ||
- 拆字反查(<kbd>uU</kbd>+拼音),拆字辅码(拼音+<kbd>`</kbd>+拆字辅码) | ||
- 自整理的 Emoji | ||
- [以词定字](https://github.com/BlindingDark/rime-lua-select-character)(@BlindingDark | [LGPL 3.0](https://github.com/BlindingDark/rime-lua-select-character/blob/master/LICENSE)) | ||
- [长词优先](https://github.com/tumuyan/rime-melt/blob/master/lua/melt.lua)(@tumuyan | [Apache 2.0](https://github.com/tumuyan/rime-melt/blob/master/LICENSE)) | ||
- [Unicode](https://github.com/shewer/librime-lua-script/blob/main/lua/component/unicode.lua)(@shewer | [MIT](https://github.com/shewer/librime-lua-script/blob/main/lua/component/unicode.lua)) | ||
- [数字、人民币大写](https://github.com/yanhuacuo/98wubi/blob/master/lua/number.lua)(@98wubi) | ||
- 日期、时间、星期、[农历](https://github.com/boomker/rime-fast-xhup)(@boomker | [LGPL 3.0](https://github.com/boomker/rime-fast-xhup/blob/master/LICENSE)) | ||
- 以词定字(左右中括号:<kbd>[</kbd>、<kbd>]</kbd>) | ||
- 长词优先 | ||
- Unicode(<kbd>U</kbd>+Unicode 码位) | ||
- 数字、人民币大写(<kbd>R</kbd>+数字) | ||
- 日期、时间、星期(详见方案 `/date_translator` 节点) | ||
- 农历(转写:<kbd>N</kbd>+八位数字;获取当前农历:全拼<kbd>nl</kbd>,双拼<kbd>lunar</kbd>) | ||
- 常见错音错字提示 | ||
- 置顶候选项 | ||
- 所有标点符号直接上屏,/ 模式改为 v 模式,/ 直接上屏 | ||
- 增加了许多拼音纠错 | ||
- 置顶候选项(详见方案 `/pin_cand_filter` 节点) | ||
- 所有标点符号直接上屏 | ||
- 特殊符号、字符输入(全拼<kbd>v</kbd>+首字母缩写;双拼<kbd>V</kbd>+首字母缩写) | ||
- 拼音纠错(模糊音) | ||
- 更多默认未启用的功能请参考 `rime.lua` 文件以及方案注释 | ||
- 简体字表、词库 | ||
- [《通用规范汉字表》](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)(@THUNLP | [MIT](https://github.com/thunlp/THUOCL/blob/master/LICENSE)) | ||
- [现代汉语常用词表](https://gist.github.com/indiejoseph/eae09c673460aa0b56db)(@Joseph cheng) | ||
- [腾讯词向量](https://ai.tencent.com/ailab/nlp/en/download.html)(@Tencent AI Lab | [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)) | ||
- 参考 | ||
- 《现代汉语词典》 | ||
- 《同义词词林》 | ||
- 《新华成语大词典》 | ||
- [《通用规范汉字表》](https://github.com/iDvel/The-Table-of-General-Standard-Chinese-Characters) 8K 常用汉字 | ||
- [Unihan 字库](https://www.unicode.org/Public/)(by Unicode lnc | [UNICODE LICENSE V3](https://www.unicode.org/license.txt))40K 大字库, **默认未启用** | ||
- [华宇野风词库](http://bbs.pinyin.thunisoft.com/forum.php?mod=viewthread&tid=30049)(by 野风) | ||
- [简化字八股文](https://github.com/rime/rime-essay-simp)(by rime | [LGPL](https://github.com/rime/rime-essay-simp/blob/master/LICENSE)) | ||
- [清华大学开源词库](https://github.com/thunlp/THUOCL)(by THUNLP | [MIT](https://github.com/thunlp/THUOCL/blob/master/LICENSE)) | ||
- [现代汉语常用词表](https://zh.wikipedia.org/wiki/%E7%8E%B0%E4%BB%A3%E6%B1%89%E8%AF%AD%E5%B8%B8%E7%94%A8%E8%AF%8D%E8%A1%A8)(by 中国国家语言文字工作委员会) | ||
- [腾讯词向量](https://ai.tencent.com/ailab/nlp/en/download.html)(Huandeep [整理](https://github.com/iDvel/rime-ice/issues/24) | by Tencent AI Lab | [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)) | ||
- 词库修订 | ||
- 校对大量异形词、错别字、错误注音 | ||
- 全词库完成注音 | ||
- 同义多音字注音 | ||
- 参考 | ||
- 《现代汉语词典》 | ||
- 《同义词词林》 | ||
- 《新华成语大词典》 | ||
- [校对标准论坛](http://www.jiaodui.com/bbs/) | ||
- Rime、Squirrel、Weasel 常用配置项的详尽注释 | ||
|
||
<br> | ||
|
||
|
@@ -82,10 +89,12 @@ | |
|
||
### 手动安装 | ||
|
||
将仓库所有文件复制粘贴到配置目录,重新部署。 | ||
您可以将仓库打包下载,或者整体 clone 后,将所有文件复制粘贴到配置目录,重新部署。 | ||
|
||
更新词库,手动覆盖 `cn_dicts` `en_dcits` `opencc` 三个文件夹。 | ||
|
||
您也可以前往 [Release](https://github.com/iDvel/rime-ice/releases) 界面,下载特定版本的词典文件(具体描述见 Release 说明),覆盖配置目录的对应文件。 | ||
|
||
### 东风破 [plum](https://github.com/rime/plum) | ||
|
||
选择配方(`others/recipes/*.recipe.yaml`)来进行安装或更新。 | ||
|
@@ -135,6 +144,14 @@ bash rime-install iDvel/rime-ice:others/recipes/config:schema=abc | |
bash rime-install iDvel/rime-ice:others/recipes/config:schema=ziguang | ||
``` | ||
|
||
℞ 下载特定版本的配置 | ||
|
||
在仓库后加 `@tag` 即可,例如: | ||
|
||
```sh | ||
bash rime-install iDvel/[email protected]:others/recipes/full | ||
``` | ||
|
||
### 仓输入法 [Hamster](https://github.com/imfuxiao/Hamster) | ||
|
||
参考 [如何导入"雾淞拼音输入方案"](https://github.com/imfuxiao/Hamster/wiki/%E5%A6%82%E4%BD%95%E5%AF%BC%E5%85%A5%22%E9%9B%BE%E6%B7%9E%E6%8B%BC%E9%9F%B3%E8%BE%93%E5%85%A5%E6%96%B9%E6%A1%88%22) | ||
|
@@ -189,17 +206,24 @@ patch: | |
## 感谢 ❤️ | ||
感谢上述提到的词库、方案及功能参考。 | ||
特别感谢上文已经提及的词库、词典的作者、贡献者及整理者;特别感谢以及下列词库、方案、脚本的作者及贡献者(提及的均为 GitHub id): | ||
- @mozillazg 开发的汉字转拼音工具和数据库(MIT) | ||
- [melt_eng](https://github.com/tumuyan/rime-melt)(@tumuyan | [Apache 2.0](https://github.com/tumuyan/rime-melt/blob/master/LICENSE)) :提供了部分(约 1000 条)英文词汇以及原始英文方案参考; | ||
- [部件拆字方案 v1](https://github.com/mirtlecn/rime-radical-pinyin)(@mirtlecn | [CC BY-SA 4.0](https://github.com/mirtlecn/rime-radical-pinyin/blob/master/LICENSE)):提供的拆字反查,辅码插件; | ||
- [长词优先插件](https://github.com/tumuyan/rime-melt/blob/master/lua/melt.lua)(@tumuyan | [Apache 2.0](https://github.com/tumuyan/rime-melt/blob/master/LICENSE)) | ||
- [Unicode 插件](https://github.com/shewer/librime-lua-script/blob/main/lua/component/unicode.lua)(@shewer | [MIT](https://github.com/shewer/librime-lua-script/blob/main/lua/component/unicode.lua)) | ||
- [数字、人民币大写插件](https://github.com/yanhuacuo/98wubi/blob/master/lua/number.lua)(@98wubi) | ||
- [农历插件](https://github.com/boomker/rime-fast-xhup)(@boomker | [LGPL 3.0](https://github.com/boomker/rime-fast-xhup/blob/master/LICENSE)) | ||
- 未能在此处详述的、在本库源码注释中提及的项目及作者给予的帮助和参考 | ||
感谢 [@Huandeep](https://github.com/Huandeep) 整理的多个词库。 | ||
感谢 [@Mirtle](https://github.com/mirtlecn) 完善的多个功能。 | ||
感谢所有贡献者。 | ||
搜狗转 Rime:[lewangdev/scel2txt](https://github.com/lewangdev/scel2txt) | ||
大量参考 [校对标准论坛](http://www.jiaodui.com/bbs/) | ||
<!-- 搜狗转 Rime:[lewangdev/scel2txt](https://github.com/lewangdev/scel2txt) --> | ||
Thanks to JetBrains for the OSS development license. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.