Skip to content

Commit

Permalink
Updated scripts and documents (#284)
Browse files Browse the repository at this point in the history
* Add buildRelease.py

* Add buildYongRelease

* Update buildRelease.py

* Create README.md

* Update README.md

* Update README.md

* Build release

* Update README.md

* Update documents

* Update documents

* Add change_summary-hans.md

* Update URLs

* Delete txt

* Update script

* Update 說明.txt

* Update script

* Update 說明.txt
  • Loading branch information
Jackchows authored May 18, 2024
1 parent 9b4559a commit cfc65c7
Show file tree
Hide file tree
Showing 16 changed files with 826 additions and 506,315 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
scripts/__pycache__/
build/*.zip
build/*/*/
release/
9 changes: 4 additions & 5 deletions README-hans.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@
[「仓颉平台 2012」](https://chinesecj.com/forum/forum.php?mod=viewthread&tid=2596)的「五仓世纪」码表修改而来。

## 下载
点击[此处](https://github.com/Jackchows/Cangjie5/releases/download/v3.1/RimeData_20240201_Cangjie5.7z)下载适用于RIME的输入法方案文档。<br />
点击[此处](https://github.com/Jackchows/Cangjie5/releases/download/v3.1/MSCJData_20240218_Cangjie5.7z)下载适用于替换微软仓颉码表的文档。(使用说明见[此处](https://www.chinesecj.com/forum/forum.php?mod=viewthread&tid=194346))<br />
也可使用[此处的脚本](https://github.com/Jackchows/Cangjie5/tree/master/scripts)生成适用于其他输入法软件的码表文档。
你可以在[发布页](https://github.com/Jackchows/Cangjie5/releases)下载适用于RIME、Fcitx 5、小小输入法的码表文档,以及用于替换微软仓颉码表的文档。<br />
或者尝试使用[脚本](https://github.com/Jackchows/Cangjie5/tree/master/scripts)生成其他格式的码表文档。

## 目标

**本项目参考官方资料对码表进行修改,可能与其他常见仓颉输入法软件存在差异,详阅[说明](https://github.com/Jackchows/Cangjie5/blob/master/change_summary.md#%E4%B8%BB%E8%A6%81%E6%94%B9%E7%A2%BC%E8%AA%AA%E6%98%8E%E5%8F%8A%E7%88%AD%E8%AD%B0%E5%8F%96%E7%A2%BC)**<br />
**本项目参考官方资料对码表进行修改,可能与其他常见仓颉输入法软件存在差异,详阅[说明](https://github.com/Jackchows/Cangjie5/blob/master/change_summary-hans.md#%E4%B8%BB%E8%A6%81%E6%94%B9%E7%A0%81%E8%AF%B4%E6%98%8E%E5%8F%8A%E4%BA%89%E8%AE%AE%E5%8F%96%E7%A0%81)**<br />
1. 本项目:
1. **(✓)意图** 修改字码以贴近官方资料
2. **(✗)无意** 修改或解释官方码表中被认为不符合仓颉输入法规则的部分,除非是明显的笔误
Expand Down Expand Up @@ -43,7 +42,7 @@
另外收录兼容汉字、部首、笔画以及其他一些形似汉字的符号。为避免与常规汉字混淆,**此部分字符编码以「z」开头**(兼容汉字「zc」,部首「zr」,笔画「zs」,表意文字描述字符「zi」,算筹符号「zn」,其他符号「zf」)。
- **[Cangjie5_supplement.txt](https://github.com/Jackchows/Cangjie5/blob/master/Cangjie5_supplement.txt)**<br />
码表。收录兼容汉字、部首、笔画以及其他一些形似汉字的符号。此表按原始编码收录,编码不以「z」开头。<br />
- **[change_summary.md](https://github.com/Jackchows/Cangjie5/blob/master/change_summary.md)**<br />
- **[change_summary.md](https://github.com/Jackchows/Cangjie5/blob/master/change_summary-hans.md)**<br />
总体说明,包括取码争议、字形兼容、重码字排序调整说明。
- **[change_details.log](https://github.com/Jackchows/Cangjie5/blob/master/change_details.log)**<br />
码表的详细编辑记录。
Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
[「倉頡平台 2012」](https://chinesecj.com/forum/forum.php?mod=viewthread&tid=2596)的「五倉世紀」碼表修改而來。

## 下載
點擊[此處](https://github.com/Jackchows/Cangjie5/releases/download/v3.1/RimeData_20240201_Cangjie5.7z)下載適用於RIME的輸入法方案文檔。<br />
點擊[此處](https://github.com/Jackchows/Cangjie5/releases/download/v3.1/MSCJData_20240218_Cangjie5.7z)下載適用於替換微軟倉頡碼表的文檔。(使用說明見[此處](https://www.chinesecj.com/forum/forum.php?mod=viewthread&tid=194346))<br />
也可使用[此處的腳本](https://github.com/Jackchows/Cangjie5/tree/master/scripts)生成適用於其他輸入法軟件的碼表文檔。
你可以在[發佈頁](https://github.com/Jackchows/Cangjie5/releases)下載適用於RIME、Fcitx 5、小小輸入法的碼表文檔,以及用於替換微軟倉頡碼表的文檔。<br />
或者嘗試使用[腳本](https://github.com/Jackchows/Cangjie5/tree/master/scripts)生成其他格式的碼表文檔。

## 目標

Expand Down
13 changes: 13 additions & 0 deletions build/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Build

存放臨時文件的目錄,請忽略。

<!--
||Cangjie5|Cangjie5_TC|Cangjie5_HK|Cangjie5_SC|
|-|-|-|-|-|
|RIME|[cangjie5.schema.yaml](https://raw.githubusercontent.com/Jackchows/Cangjie5/master/build/rime/%E4%B8%80%E8%88%AC%E6%8E%92%E5%BA%8F/cangjie5.schema.yaml)<br />[cangjie5.dict.yaml](https://raw.githubusercontent.com/Jackchows/Cangjie5/master/build/rime/%E4%B8%80%E8%88%AC%E6%8E%92%E5%BA%8F/cangjie5.dict.yaml)<br />[cangjie5.custom.yaml](https://raw.githubusercontent.com/Jackchows/Cangjie5/master/build/rime/%E4%B8%80%E8%88%AC%E6%8E%92%E5%BA%8F/cangjie5.custom.yaml)|[cangjie5_tc.schema.yaml](https://raw.githubusercontent.com/Jackchows/Cangjie5/master/build/rime/%E5%82%B3%E7%B5%B1%E6%BC%A2%E5%AD%97%E5%84%AA%E5%85%88%EF%BC%88%E5%81%8F%E5%A5%BD%E5%8F%B0%E7%81%A3%E7%94%A8%E5%AD%97%E7%BF%92%E6%85%A3%EF%BC%89/cangjie5_tc.schema.yaml)<br />[cangjie5_tc.dict.yaml](https://raw.githubusercontent.com/Jackchows/Cangjie5/master/build/rime/%E5%82%B3%E7%B5%B1%E6%BC%A2%E5%AD%97%E5%84%AA%E5%85%88%EF%BC%88%E5%81%8F%E5%A5%BD%E5%8F%B0%E7%81%A3%E7%94%A8%E5%AD%97%E7%BF%92%E6%85%A3%EF%BC%89/cangjie5_tc.dict.yaml)<br />[cangjie5_tc.custom.yaml](https://raw.githubusercontent.com/Jackchows/Cangjie5/master/build/rime/%E5%82%B3%E7%B5%B1%E6%BC%A2%E5%AD%97%E5%84%AA%E5%85%88%EF%BC%88%E5%81%8F%E5%A5%BD%E5%8F%B0%E7%81%A3%E7%94%A8%E5%AD%97%E7%BF%92%E6%85%A3%EF%BC%89/cangjie5_tc.custom.yaml)|[cangjie5_hk.schema.yaml](https://raw.githubusercontent.com/Jackchows/Cangjie5/master/build/rime/%E5%82%B3%E7%B5%B1%E6%BC%A2%E5%AD%97%E5%84%AA%E5%85%88%EF%BC%88%E5%81%8F%E5%A5%BD%E9%A6%99%E6%B8%AF%E7%94%A8%E5%AD%97%E7%BF%92%E6%85%A3%EF%BC%89/cangjie5_hk.schema.yaml)<br />[cangjie5_hk.dict.yaml](https://raw.githubusercontent.com/Jackchows/Cangjie5/master/build/rime/%E5%82%B3%E7%B5%B1%E6%BC%A2%E5%AD%97%E5%84%AA%E5%85%88%EF%BC%88%E5%81%8F%E5%A5%BD%E9%A6%99%E6%B8%AF%E7%94%A8%E5%AD%97%E7%BF%92%E6%85%A3%EF%BC%89/cangjie5_hk.dict.yaml)<br />[cangjie5_hk.custom.yaml](https://raw.githubusercontent.com/Jackchows/Cangjie5/master/build/rime/%E5%82%B3%E7%B5%B1%E6%BC%A2%E5%AD%97%E5%84%AA%E5%85%88%EF%BC%88%E5%81%8F%E5%A5%BD%E9%A6%99%E6%B8%AF%E7%94%A8%E5%AD%97%E7%BF%92%E6%85%A3%EF%BC%89/cangjie5_hk.custom.yaml)|[cangjie5_sc.schema.yaml](https://raw.githubusercontent.com/Jackchows/Cangjie5/master/build/rime/%E7%B0%A1%E5%8C%96%E5%AD%97%E5%84%AA%E5%85%88/cangjie5_sc.schema.yaml)<br />[cangjie5_sc.dict.yaml](https://raw.githubusercontent.com/Jackchows/Cangjie5/master/build/rime/%E7%B0%A1%E5%8C%96%E5%AD%97%E5%84%AA%E5%85%88/cangjie5_sc.dict.yaml)<br />[cangjie5_sc.custom.yaml](https://raw.githubusercontent.com/Jackchows/Cangjie5/master/build/rime/%E7%B0%A1%E5%8C%96%E5%AD%97%E5%84%AA%E5%85%88/cangjie5_sc.custom.yaml)|
|小小輸入法(倉頡平台 2022)|[cangjie5.txt](https://raw.githubusercontent.com/Jackchows/Cangjie5/master/build/yong/%E4%B8%80%E8%88%AC%E6%8E%92%E5%BA%8F/cangjie5.txt)|[cangjie5_tc.txt](https://raw.githubusercontent.com/Jackchows/Cangjie5/master/build/yong/%E5%82%B3%E7%B5%B1%E6%BC%A2%E5%AD%97%E5%84%AA%E5%85%88%EF%BC%88%E5%81%8F%E5%A5%BD%E5%8F%B0%E7%81%A3%E7%94%A8%E5%AD%97%E7%BF%92%E6%85%A3%EF%BC%89/cangjie5_tc.txt)|[cangjie5_hk.txt](https://raw.githubusercontent.com/Jackchows/Cangjie5/master/build/yong/%E5%82%B3%E7%B5%B1%E6%BC%A2%E5%AD%97%E5%84%AA%E5%85%88%EF%BC%88%E5%81%8F%E5%A5%BD%E9%A6%99%E6%B8%AF%E7%94%A8%E5%AD%97%E7%BF%92%E6%85%A3%EF%BC%89/cangjie5_hk.txt)|[cangjie5_sc.txt](https://raw.githubusercontent.com/Jackchows/Cangjie5/master/build/yong/%E7%B0%A1%E5%8C%96%E5%AD%97%E5%84%AA%E5%85%88/cangjie5_sc.txt)|
|Fcitx 5|[cangjie5.txt](https://raw.githubusercontent.com/Jackchows/Cangjie5/master/build/fcitx/%E4%B8%80%E8%88%AC%E6%8E%92%E5%BA%8F/cangjie5.txt)<br />[cangjie5.conf.in](https://raw.githubusercontent.com/Jackchows/Cangjie5/master/build/fcitx/%E4%B8%80%E8%88%AC%E6%8E%92%E5%BA%8F/cangjie5.conf.in)|[cangjie5_tc.txt](https://raw.githubusercontent.com/Jackchows/Cangjie5/master/build/fcitx/%E5%82%B3%E7%B5%B1%E6%BC%A2%E5%AD%97%E5%84%AA%E5%85%88%EF%BC%88%E5%81%8F%E5%A5%BD%E5%8F%B0%E7%81%A3%E7%94%A8%E5%AD%97%E7%BF%92%E6%85%A3%EF%BC%89/cangjie5_tc.txt)<br />[cangjie5_tc.conf.in](https://raw.githubusercontent.com/Jackchows/Cangjie5/master/build/fcitx/%E5%82%B3%E7%B5%B1%E6%BC%A2%E5%AD%97%E5%84%AA%E5%85%88%EF%BC%88%E5%81%8F%E5%A5%BD%E5%8F%B0%E7%81%A3%E7%94%A8%E5%AD%97%E7%BF%92%E6%85%A3%EF%BC%89/cangjie5_tc.conf.in)|[cangjie5_hk.txt](https://raw.githubusercontent.com/Jackchows/Cangjie5/master/build/fcitx/%E5%82%B3%E7%B5%B1%E6%BC%A2%E5%AD%97%E5%84%AA%E5%85%88%EF%BC%88%E5%81%8F%E5%A5%BD%E9%A6%99%E6%B8%AF%E7%94%A8%E5%AD%97%E7%BF%92%E6%85%A3%EF%BC%89/cangjie5_hk.txt)<br />[cangjie5_hk.conf.in](https://raw.githubusercontent.com/Jackchows/Cangjie5/master/build/fcitx/%E5%82%B3%E7%B5%B1%E6%BC%A2%E5%AD%97%E5%84%AA%E5%85%88%EF%BC%88%E5%81%8F%E5%A5%BD%E9%A6%99%E6%B8%AF%E7%94%A8%E5%AD%97%E7%BF%92%E6%85%A3%EF%BC%89/cangjie5_hk.conf.in)|[cangjie5_sc.txt](https://raw.githubusercontent.com/Jackchows/Cangjie5/master/build/fcitx/%E7%B0%A1%E5%8C%96%E5%AD%97%E5%84%AA%E5%85%88/cangjie5_sc.txt)<br />[cangjie5_sc.conf.in](https://raw.githubusercontent.com/Jackchows/Cangjie5/master/build/fcitx/%E7%B0%A1%E5%8C%96%E5%AD%97%E5%84%AA%E5%85%88/cangjie5_sc.conf.in)|
-->
35 changes: 35 additions & 0 deletions build/fcitx/說明.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
本次更新說明:
1. 更正一些錯誤編碼
============================================================
「倉頡五代補完計劃」:
https://github.com/Jackchows/Cangjie5
「倉頡五代補完計劃」以 MIT 許可發佈,許可協議全文見:
https://github.com/Jackchows/Cangjie5/blob/master/LICENSE
如果無法訪問GitHub,請訪問:
https://gitlab.com/Jackchows/Cangjie5
------------------------------------------------------------
使用前務必閱讀:
https://github.com/Jackchows/Cangjie5/blob/master/change_summary.md
轉載時請保留本說明。
------------------------------------------------------------
四個版本收字範圍相同,重碼字排序不同。

一般排序:綜合考慮字頻及繁簡,部分常用簡化字可能排在傳統漢字前面。
傳統漢字優先,偏好台灣用字習慣:符合《常用國字標準字體表》的字形將排在前面。
傳統漢字優先,偏好香港用字習慣:符合《常用字字形表》的字形將排在前面。
簡化字優先:符合《通用規範漢字表》的字形將排在前面。
------------------------------------------------------------
收字範圍:
中日韓統一表意文字基本區至擴展I區
中日漢兼容表意文字區中視作統一漢字的十二個字符
官方碼表中收錄的符號
中日韓兼容表意文字*(zc)
中日韓兼容表意文字補充*(zc)
康熙部首*(zr)
中日韓部首補充*(zr)
中日韓筆畫*(zs)
中日韓兼容標點符號(部分)*(zf)
表意文字描述字符*(zi)
算籌符號*(zn)

注意:標有「*」區域的字符,編碼以「z」開頭(兼容漢字「zc」,兼容標點符號「zf」,部首「zr」,筆畫「zs」,表意文字描述字符「zi」,算籌符號「zn」)。
15 changes: 15 additions & 0 deletions build/mscj/說明.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
使用方法:

① 先不要切換到微軟倉頡,再到任務管理器裏結束兩個Microsoft IME進程。

a) 若你使用 Windows 10 版本 2004 (Build 19033)之前的系統:
進入 C:\Windows\InputMethod\CHT 目錄,刪除 ChtChangjie.lex、ChtChangjie.spd和ChtChangjieExt.lex 三個文件(刪除前請備份),然後將此處提供的 ChtCangjieExt.lex 重命名為 ChtChangjieExt.lex,並複製到該目錄。
b) 若你使用Windows 10 版本 2004 (Build 19033)或之後的系統:
進入 C:\Windows\System32\zh-hk 目錄,刪除 ChtCangjie.sdc、ChtCangjie.spd和ChtCangjieExt.lex 三個文件(刪除前請備份),然後將此處提供的 ChtCangjieExt.lex 複製到該目錄。

進入微軟倉頡設置,將字符集設置為「標準和中日韓統一表意字元擴充A」(或者「標準和中日韓統一表意字元擴充A和B」,視乎你的需要),並且打開「包含香港增補字符集字元(HKSCS)」開關。
若使用Windows 10 版本 2004 (Build 19033)或之後版本系統,請勿打開「使用舊版的微軟倉頡」開關(若打開此開關,請按 ② a) 的方法替換文件)。

詳見 https://www.chinesecj.com/forum/forum.php?mod=viewthread&tid=194346
37 changes: 37 additions & 0 deletions build/rime/說明.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
本次更新說明:
1. 修復了Rime schema引用錯誤的dict的問題
2. 修改了Rime schema預設的輸入碼顯示格式,如需修改請查閱*.custom.yaml文件
3. 更正一些錯誤編碼
============================================================
「倉頡五代補完計劃」:
https://github.com/Jackchows/Cangjie5
「倉頡五代補完計劃」以 MIT 許可發佈,許可協議全文見:
https://github.com/Jackchows/Cangjie5/blob/master/LICENSE
如果無法訪問GitHub,請訪問:
https://gitlab.com/Jackchows/Cangjie5
------------------------------------------------------------
使用前務必閱讀:
https://github.com/Jackchows/Cangjie5/blob/master/change_summary.md
轉載時請保留本說明。
------------------------------------------------------------
四個版本收字範圍相同,重碼字排序不同。

一般排序:綜合考慮字頻及繁簡,部分常用簡化字可能排在傳統漢字前面。
傳統漢字優先,偏好台灣用字習慣:符合《常用國字標準字體表》的字形將排在前面。
傳統漢字優先,偏好香港用字習慣:符合《常用字字形表》的字形將排在前面。
簡化字優先:符合《通用規範漢字表》的字形將排在前面。
------------------------------------------------------------
收字範圍:
中日韓統一表意文字基本區至擴展I區
中日漢兼容表意文字區中視作統一漢字的十二個字符
官方碼表中收錄的符號
中日韓兼容表意文字*(zc)
中日韓兼容表意文字補充*(zc)
康熙部首*(zr)
中日韓部首補充*(zr)
中日韓筆畫*(zs)
中日韓兼容標點符號(部分)*(zf)
表意文字描述字符*(zi)
算籌符號*(zn)

注意:標有「*」區域的字符,編碼以「z」開頭(兼容漢字「zc」,兼容標點符號「zf」,部首「zr」,筆畫「zs」,表意文字描述字符「zi」,算籌符號「zn」)。
35 changes: 35 additions & 0 deletions build/yong/說明.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
本次更新說明:
1. 更正一些錯誤編碼
============================================================
「倉頡五代補完計劃」:
https://github.com/Jackchows/Cangjie5
「倉頡五代補完計劃」以 MIT 許可發佈,許可協議全文見:
https://github.com/Jackchows/Cangjie5/blob/master/LICENSE
如果無法訪問GitHub,請訪問:
https://gitlab.com/Jackchows/Cangjie5
------------------------------------------------------------
使用前務必閱讀:
https://github.com/Jackchows/Cangjie5/blob/master/change_summary.md
轉載時請保留本說明。
------------------------------------------------------------
四個版本收字範圍相同,重碼字排序不同。

一般排序:綜合考慮字頻及繁簡,部分常用簡化字可能排在傳統漢字前面。
傳統漢字優先,偏好台灣用字習慣:符合《常用國字標準字體表》的字形將排在前面。
傳統漢字優先,偏好香港用字習慣:符合《常用字字形表》的字形將排在前面。
簡化字優先:符合《通用規範漢字表》的字形將排在前面。
------------------------------------------------------------
收字範圍:
中日韓統一表意文字基本區至擴展I區
中日漢兼容表意文字區中視作統一漢字的十二個字符
官方碼表中收錄的符號
中日韓兼容表意文字*(zc)
中日韓兼容表意文字補充*(zc)
康熙部首*(zr)
中日韓部首補充*(zr)
中日韓筆畫*(zs)
中日韓兼容標點符號(部分)*(zf)
表意文字描述字符*(zi)
算籌符號*(zn)

注意:標有「*」區域的字符,編碼以「z」開頭(兼容漢字「zc」,兼容標點符號「zf」,部首「zr」,筆畫「zs」,表意文字描述字符「zi」,算籌符號「zn」)。
Loading

0 comments on commit cfc65c7

Please # to comment.