2 Star 1 Fork 0

江西逐浪软件科技有限公司 / Z01FontElf

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Banner of CJK-character-count

逐浪字体精灵-字体开发者的好助手

2021-12-03

基于开源项目CJK-character-count实现:

https://github.com/NightFurySL2001/CJK-character-count/releases

改进清单

  • 优化build.bat,增加中文说明
  • 优化build.bat,执行完成点任意键退出
  • 优化输出包,支持中文名.exe
  • 图标加上颜色定义
  • 增加botton按钮,可以进入目标网站
  • 所有图标素材提供PSD源文件
  • 其它微不足道的细节

编译命令

自动 编译 : build.bat


# 按顺序,先编译英文版
pyinstaller main.spec

# 中文版
pyinstaller main-zhs.spec

# 繁体版
pyinstaller main-zht.spec

Foundry list 厂商列表

z01-han/Trad. List/逐浪字库简繁字表 http://f.ziti163.com

hanyi-jianfan-han Hanyi Fonts Simp./Trad. List/汉仪简繁字表

FounderType Simp./Trad. List 方正简繁字表

global_var.py是全局定义文件


软件功能

This is a program that counts the amount of CJK characters based on Unicode ranges and Chinese encoding standards.

此软件以统一码(Unicode)区块与汉字编码标准统计字体内的汉字数量。

Software interface 软件界面

imgname imgname imgname

How this works 如何运作

This program accepts 1 font file at a time (OpenType/TrueType single font file currently) and extract the character list from cmap table, which records the Unicode (base-10)-glyph shape for a font. The list is then parsed to count the amount of characters based on Unicode ranges (comparing the hexadecimal range) and Chinese encoding standards (given a list of .txt files with the actual character in it).

此软件可计算一套字体内的汉字数量,目前只限OpenType/TrueType单字体文件而已。导入字体时,软件将从cmap表(储存字体内(十进制)统一码与字符对应的表)提取汉字列表,然后以该列表依统一码区块(比对十六进制码位)与汉字编码标准(比对 .txt文件)统计字体内的汉字数量。

Currently supported font formats 支援的字体格式

Major font formats are supported in this software.

主要字体格式本软件皆都支援。

*.ttf, *.otf, *.woff, *.woff2, *.ttc, *.otc

Currently supported encoding standard/standardization list 支援的编码标准/汉字表

Details of the character lists can be found in https://github.com/NightFurySL2001/cjktables.
字表详情可参见 https://github.com/NightFurySL2001/cjktables

Encoding standard 编码标准

Standardization list 汉字表

Foundry list 厂商列表

Dependencies 依赖模块

  • tkinter
    For software display. Non-commercial use module, should be removed and replaced in next version.
    使用于软件显示。非商用模块,应在未来移除与替换该模块。

  • fontTools
    Extract cmap table.
    提取 cmap 表。

  • pyglet
    ZHT only: Set the GUI Font to custom font (Genyog).
    繁中版:设置界面字体为自定义字体(源样黑体)。

  • pyinstaller
    Build executable for Windows in release.
    编译软件成可执行软件。发布版内提供 Windows 版本。

License 授权

This software is licensed under MIT License. Details of the license can be found in the accompanying LICENSE file.

本软件以 MIT 授权条款发布。授权详情可在随附的 LICENSE 文件内查阅。

To build 如何构建

Please install latest version of Python 3.

请先安装最新版本的 Python 3

Dependencies 安装依赖模块

pip3 install fonttools
pip3 install pyglet
pip3 install pyinstaller

Building software 构建软件

Download the required .spec files from release.

请从发布页下载需要的 .spec 文件。

// To build single language
pyinstaller main.spec
pyinstaller main-zhs.spec
pyinstaller main-zht.spec

// To build full folder, use the provided .bat file
.\batch.bat

To-do 待办事项

  • Redesign GUI with Kivy.

Changelog 更新日志

Refer to readme.txt. 参考readme.txt


This program is requested by MaoKen. Visit their site to see this in action.

此软件由猫啃网要求。浏览该网址以查看使用方式。

MIT License Copyright © 2020-2021 NFSL2001 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

基于Python的字数统计与校正工具 展开 收起
Python 等 2 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Python
1
https://gitee.com/zoomla/Z01FontElf.git
git@gitee.com:zoomla/Z01FontElf.git
zoomla
Z01FontElf
Z01FontElf
main

搜索帮助