CNMan/UnicodeCJK-WuBi

五笔编码编校软件Python版使用介绍

CNMan opened this issue · 0 comments

CNMan commented

特别感谢nobodxbodon制作Python版五笔编码编校软件。

https://github.com/program-in-chinese/wubi_code_editor

editor_screenshot_python

一、运行环境要求

Linux/Mac(Win的命令行对超大字符集支持不佳)
Python 3+
Tk 8.6+

Debian 9+ 及下游发行版如Ubuntu等需安装以下软件包

sudo apt-get install tk python3 python3-tk git wget unzip

Fedora 29+/RHEL 8.x及下游发行版需安装以下软件包

sudo yum install tk python3 python3-tkinter git wget unzip

二.1、不用git
终端运行

wget 'https://github.com/program-in-chinese/wubi_code_editor/archive/master.zip' -O wubi_code_editor-master.zip
unzip wubi_code_editor-master.zip
wget 'https://github.com/CNMan/UnicodeCJK-WuBi/archive/master.zip' -O UnicodeCJK-WuBi-master.zip
unzip UnicodeCJK-WuBi-master.zip
wget 'https://github.com/CNMan/UnicodeCJK-FontGlyphs/archive/master.zip' -O UnicodeCJK-FontGlyphs-master.zip
unzip UnicodeCJK-FontGlyphs-master.zip
wget 'https://github.com/CNMan/Unicode/archive/master.zip' -O Unicode-master.zip
unzip Unicode-master.zip
mv wubi_code_editor-master/ wubi_code_editor/
mv UnicodeCJK-WuBi-master/ wubi_code_editor/UnicodeCJK-WuBi/
mv UnicodeCJK-FontGlyphs-master/ wubi_code_editor/UnicodeCJK-FontGlyphs/
mv Unicode-master/ wubi_code_editor/Unicode/
cd wubi_code_editor/
python3 wubicodeeditor.py

二.2、使用git
终端运行

git config --global core.autocrlf input
git clone https://github.com/program-in-chinese/wubi_code_editor.git
cd wubi_code_editor/
git submodule add -f https://github.com/CNMan/UnicodeCJK-WuBi.git
git submodule add -f https://github.com/CNMan/UnicodeCJK-FontGlyphs.git
git submodule add -f https://github.com/CNMan/Unicode.git
python3 wubicodeeditor.py

三、添加其他附加字体(默认只显示“花園明朝、汉仪仿宋、中华书局宋体”三种字体字形)

加入“超大字符集输入法编码”QQ群857031696,从群共享UnicodeCJK-FontGlyphs文件夹下载字体图片,解压缩到wubi_code_editor/UnicodeCJK-FontGlyphs/即可。