Skip to content

Commit

Permalink
Merge branch 'iDvel:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
lovelock authored Aug 28, 2024
2 parents 6885c40 + 0407f13 commit 85d22a7
Show file tree
Hide file tree
Showing 62 changed files with 3,805 additions and 8,573 deletions.
102 changes: 102 additions & 0 deletions .github/workflows/release.yml
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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.DS_Store
**/.idea/
.vscode/
dist/

build/
sync/
Expand All @@ -19,4 +20,4 @@ cn_dicts/temp.txt

rime_console
rime_deployer
rime_patch
rime_patch
74 changes: 49 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

这里是 Rime 的一份配置仓库,用户需要下载各平台对应的前端,并将此配置应用到配置目录。

雾凇拼音提供了一套开箱即用的完整配置,包含了输入方案(全拼、双拼)、长期维护的词库及各项扩展功能
雾凇拼音提供了一套开箱即用的完整配置,包含输入方案(全拼、常见双拼)、长期维护的开源词库及各项扩展功能

详细介绍:[Rime 配置:雾凇拼音](https://dvel.me/posts/rime-ice/)

Expand All @@ -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>

Expand Down Expand Up @@ -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`)来进行安装或更新。
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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.
Expand Down
5 changes: 4 additions & 1 deletion cn_dicts/41448.dict.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# 这样小字表里存在的字按权重靠前排列,大字表殿后,生僻字自动就排在末尾。
---
name: 41448
version: "2024-03-11"
version: "2024-07-28"
sort: by_weight
...
# 注释掉了一些
Expand Down Expand Up @@ -8676,6 +8676,7 @@ sort: by_weight
𩙣 feng
𩪌 feng
𪐃 feng
覅 fiao
㤇 fo
仏 fo
仸 fo
Expand Down Expand Up @@ -10250,6 +10251,7 @@ sort: by_weight
緺 gua
罣 gua
罫 gua
聒 gua
胍 gua
袿 gua
褂 gua
Expand Down Expand Up @@ -23503,6 +23505,7 @@ sort: by_weight
疑 ni
眤 ni
睨 ni
祢 ni
秜 ni
籾 ni
縌 ni
Expand Down
24 changes: 14 additions & 10 deletions cn_dicts/8105.dict.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
# 需要注音的字词设定在 others/script/rime/需要注音.txt
---
name: 8105
version: "2024-05-02"
version: "2024-06-10"
sort: by_weight
...
### 按需启用
Expand All @@ -45,20 +45,24 @@ sort: by_weight

### 扩展,不在《通用规范汉字表》的字:
𤭢 cei 1000
𤭢了 cei le 1000
𰻝 biang 1
嬢 niang 1
薙 ti 1
菈 la 1
卻 que 1
濛 meng 1
诶 ei 1
牠 ta 1
凃 tu 1
咲 xiao 1
螓 qin 1
珮 pei 0
睆 huan 1
挼 rua 1
㨃 dui 1
燿 yao 1


# 注释掉的这几行已经加入到下面并调整到合适的权重了
# 〇 ling
# 囧 jiong
Expand Down Expand Up @@ -3096,12 +3100,12 @@ sort: by_weight
䌹 jiong 0
𬳶 jiong 0
就 jiu 11305679
jiu 862253
jiu 737479
jiu 506014
jiu 429844
jiu 862253
jiu 737479
jiu 506014
jiu 429844
救 jiu 427315
jiu 275220
jiu 275220
舅 jiu 73540
纠 jiu 69730
疚 jiu 37765
Expand Down Expand Up @@ -6645,6 +6649,7 @@ sort: by_weight
峿 wu 0
珸 wu 0
𣲘 wu 0
洗 xi 2290306
西 xi 1778761
喜 xi 1069981
系 xi 942245
Expand All @@ -6654,7 +6659,6 @@ sort: by_weight
习 xi 487160
吸 xi 431549
戏 xi 347524
洗 xi 290306
惜 xi 271651
席 xi 208395
袭 xi 189129
Expand Down Expand Up @@ -7296,11 +7300,11 @@ sort: by_weight
𫄧 yan 0
𬙂 yan 0
𬸘 yan 0
样 yang 4769842
养 yang 1019753
样 yang 969842
阳 yang 850226
杨 yang 633480
扬 yang 383219
养 yang 319753
洋 yang 293496
仰 yang 159568
央 yang 146296
Expand Down
Loading

0 comments on commit 85d22a7

Please sign in to comment.