1 Star 4 Fork 0

NFSL2001 / CJK-character-count

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

CJK-character-count

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

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


Main repository is on GitHub. This repo will only be updated if I remembered to do so.

主仓库为GitHub。本仓库只在本人记得时更新。


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 encoding standard/standardization list 支援的编码标准/汉字表

Software interface 软件界面

main.exe is the English version, main-chi.exe is the modified Chinese version.

main.exe 为英文版,main-chi.exe 为中文版。

IPAmj English Sample IPAmj Chinese Sample

Dependencies 依赖模块

  • tkinter

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

  • fontTools

    Extract cmap table. 提取 cmap 表。

  • pyinstaller

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

Changelog 更新日志

Refer to readme.txt. 参考readme.txt


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

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

Comments ( 0 )

Sign in for post a comment

About

No description spread retract
Python
Cancel

Contributors

All

Activities

load more
can not load any more
Python
1
https://gitee.com/NightFurySL2001/CJK-character-count.git
git@gitee.com:NightFurySL2001/CJK-character-count.git
NightFurySL2001
CJK-character-count
CJK-character-count
master

Search