Skip to content

Program that counts the amount of CJK characters based on Unicode ranges and Chinese encoding standards 字体汉字计数软件

License

Notifications You must be signed in to change notification settings

NightFurySL2001/CJK-character-count

Repository files navigation

Banner of CJK-character-count

CJK-character-count

This is a program that counts the amount of CJK characters based on Unicode ranges and Chinese encoding standards.
此软件以统一码(Unicode)区块与汉字编码标准统计字体内的汉字数量。

Download here. 在此下载。


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

Software interface 软件界面

main.exe is the English version, main-zhs.exe is the Chinese (Simplified) version, main-zht.exe is the Chinese (Traditional) version.

main.exe 为英文版,main-zhs.exe 为简体中文版,main-zht.exe 为繁体中文版。

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 厂商字表

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 and set up a new virtual environment with python3 -m venv venv.
请先安装最新版本的 Python 3 并创建新的虚拟环境 python3 -m venv venv

Install the required dependencies:
安装需要的依赖模块:

pip3 install -r requirements.txt

And then build the program:
最后构建软件:

.\build.bat

To-do 待办事项

Changelog 更新日志

Refer to readme.txt. 参考readme.txt


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

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

About

Program that counts the amount of CJK characters based on Unicode ranges and Chinese encoding standards 字体汉字计数软件

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Contributors 3

  •  
  •  
  •