{"id":19020546,"url":"https://github.com/zoomla/z01fontelf","last_synced_at":"2026-05-19T15:14:34.415Z","repository":{"id":93107364,"uuid":"434536891","full_name":"zoomla/Z01FontElf","owner":"zoomla","description":"基于Python的字数统计与校正工具","archived":false,"fork":false,"pushed_at":"2021-12-03T10:19:29.000Z","size":8124,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-06T01:39:16.727Z","etag":null,"topics":["font","z01font","zfont","zoomla"],"latest_commit_sha":null,"homepage":"http://f.ziti163.com","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zoomla.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-03T09:23:56.000Z","updated_at":"2021-12-03T10:19:32.000Z","dependencies_parsed_at":"2023-06-04T21:45:35.992Z","dependency_job_id":null,"html_url":"https://github.com/zoomla/Z01FontElf","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zoomla/Z01FontElf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoomla%2FZ01FontElf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoomla%2FZ01FontElf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoomla%2FZ01FontElf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoomla%2FZ01FontElf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zoomla","download_url":"https://codeload.github.com/zoomla/Z01FontElf/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoomla%2FZ01FontElf/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263691545,"owners_count":23496874,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["font","z01font","zfont","zoomla"],"created_at":"2024-11-08T20:17:28.898Z","updated_at":"2026-05-19T15:14:29.379Z","avatar_url":"https://github.com/zoomla.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Banner of CJK-character-count](resource/banner.png)\n\n# 逐浪字体精灵-字体开发者的好助手\n\u003e 2021-12-03\n\n\u003c!-- TOC --\u003e\n\n- [逐浪字体精灵-字体开发者的好助手](#逐浪字体精灵-字体开发者的好助手)\n    - [基于开源项目`CJK-character-count`实现：](#基于开源项目cjk-character-count实现)\n    - [改进清单](#改进清单)\n    - [编译命令](#编译命令)\n    - [Foundry list 厂商列表](#foundry-list-厂商列表)\n    - [软件功能](#软件功能)\n    - [Software interface 软件界面](#software-interface-软件界面)\n    - [How this works 如何运作](#how-this-works-如何运作)\n    - [Currently supported font formats 支援的字体格式](#currently-supported-font-formats-支援的字体格式)\n    - [Currently supported encoding standard/standardization list 支援的编码标准／汉字表](#currently-supported-encoding-standardstandardization-list-支援的编码标准／汉字表)\n        - [Encoding standard 编码标准](#encoding-standard-编码标准)\n        - [Standardization list 汉字表](#standardization-list-汉字表)\n        - [Foundry list 厂商列表](#foundry-list-厂商列表-1)\n    - [Dependencies 依赖模块](#dependencies-依赖模块)\n    - [License 授权](#license-授权)\n    - [To build 如何构建](#to-build-如何构建)\n        - [Dependencies 安装依赖模块](#dependencies-安装依赖模块)\n        - [Building software 构建软件](#building-software-构建软件)\n    - [To-do 待办事项](#to-do-待办事项)\n    - [Changelog 更新日志](#changelog-更新日志)\n\n\u003c!-- /TOC --\u003e\n\n## 基于开源项目`CJK-character-count`实现：\nhttps://github.com/NightFurySL2001/CJK-character-count/releases\n\n## 改进清单\n- 优化`build.bat`，增加中文说明\n- 优化`build.bat`，执行完成点任意键退出\n- 优化输出包，支持中文名.exe\n- 图标加上颜色定义\n- 增加botton按钮，可以进入目标网站\n- 所有图标素材提供PSD源文件\n- 文字提示优化更符合中国语境\n- 上传提示界面优化\n- 其它微不足道的细节\n\n## 编译命令\n\n自动 编译 ： `build.bat`\n\n```\n\n# 按顺序，先编译英文版\npyinstaller main.spec\n\n# 中文版\npyinstaller main-zhs.spec\n\n# 繁体版\npyinstaller main-zht.spec\n\n```\n\n\n## Foundry list 厂商列表\n\nz01-han/Trad. List/逐浪字库简繁字表 http://f.ziti163.com\n\nhanyi-jianfan-han Hanyi Fonts Simp./Trad. List/汉仪简繁字表\n\nFounderType Simp./Trad. List 方正简繁字表\n\n\n`global_var.py`是全局定义文件\n\n---\n## 软件功能\n\nThis is a program that counts the amount of CJK characters based on Unicode ranges and Chinese encoding standards.\n\n此软件以统一码（Unicode）区块与汉字编码标准统计字体内的汉字数量。\n\n## Software interface 软件界面\n\n![imgname](resource/cn.jpg)\n![imgname](resource/en.jpg)\n![imgname](resource/thn.jpg)\n\n\n\n\n## How this works 如何运作\n\nThis 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).\n\n此软件可计算一套字体内的汉字数量，目前只限OpenType/TrueType单字体文件而已。导入字体时，软件将从`cmap`表（储存字体内（十进制）统一码与字符对应的表）提取汉字列表，然后以该列表依统一码区块（比对十六进制码位）与汉字编码标准（比对 .txt文件）统计字体内的汉字数量。\n\n## Currently supported font formats 支援的字体格式\n\nMajor font formats are supported in this software.\n\n主要字体格式本软件皆都支援。\n\n` *.ttf, *.otf, *.woff, *.woff2, *.ttc, *.otc`\n\n## Currently supported encoding standard/standardization list 支援的编码标准／汉字表\n\nDetails of the character lists can be found in https://github.com/NightFurySL2001/cjktables.  \n字表详情可参见 https://github.com/NightFurySL2001/cjktables 。\n\n### Encoding standard 编码标准\n* [GB/T 2312](https://en.wikipedia.org/wiki/GB_2312)\n\n* [GB/T 12345](https://zh.wikipedia.org/wiki/GB_12345)  \n  \\**Note: Source file from [character_set](https://gitlab.com/mrhso/character_set/-/blob/master/GB12345.txt) by @mrhso.  \n  注：字表来源为 @mrhso [character_set](https://gitlab.com/mrhso/character_set/-/blob/master/GB12345.txt)。*\n\n* [GBK](https://en.wikipedia.org/wiki/GBK_(character_encoding))  \n  \\**Note: Private Use Area (PUA) characters are removed and not counted, resulting in 20923 characters.  \n  注：不计算私用区（PUA）字符，共计20923字。*\n\n* [GB 18030](https://en.wikipedia.org/wiki/GB_18030)  \n  \\**Note: Mandatory section are counted only. According to GB 18030, mandatory section of a font is all CJK characters in the Basic Multilingual Plane e.g. CJK Unified Ideographs and CJK Unified Ideographs Extension A.   \n  注：只计算强制性标准部分。依据GB 18030，字体内强制需要支援的字符范围应该是基本多文种平面（BMP）内的所有汉字，即中日韩统一表意文字与中日韩统一表意文字扩展A区。*\n\n* [BIG5/五大码](https://en.wikipedia.org/wiki/Big5)\n\n* [BIG  5 Common Character Set/五大码常用汉字表](https://en.wikipedia.org/wiki/Big5)\n\n* [Hong Kong Supplementary Character Set (HKSCS)/香港增补字符集](https://en.wikipedia.org/wiki/Hong_Kong_Supplementary_Character_Set)\n\n### Standardization list 汉字表\n\n* [List of Frequently Used Characters in Modern Chinese/现代汉语常用字表](https://zh.wiktionary.org/wiki/Appendix:%E7%8E%B0%E4%BB%A3%E6%B1%89%E8%AF%AD%E5%B8%B8%E7%94%A8%E5%AD%97%E8%A1%A8)  \n  \\**Note: Old name in this software was 3500 Commonly Used Chinese Characters.  \n  注：旧版软件内名称为《3500字常用汉字表》。*\n\n* [List of Commonly Used Characters in Modern Chinese/现代汉语通用字表](https://zh.wiktionary.org/wiki/Appendix:%E7%8E%B0%E4%BB%A3%E6%B1%89%E8%AF%AD%E9%80%9A%E7%94%A8%E5%AD%97%E8%A1%A8)\n\n* [Table of General Standard Chinese Characters/通用规范汉字表](https://en.wikipedia.org/wiki/Table_of_General_Standard_Chinese_Characters)\n\n* [List of Frequently Used Characters of Compulsory Education/义务教育语文课程常用字表](https://old.pep.com.cn/xiaoyu/jiaoshi/tbjx/kbjd/kb2011/201202/t20120206_1099050.htm)\n\n* [Chart of Standard Forms of Common National Characters/常用國字標準字體表](https://zh.wikipedia.org/wiki/%E5%B8%B8%E7%94%A8%E5%9C%8B%E5%AD%97%E6%A8%99%E6%BA%96%E5%AD%97%E9%AB%94%E8%A1%A8)  \n  \\**Note: Old name in this software was 《台湾教育部常用字表》.  \n  注：旧版软件内名称为《台湾教育部常用字表》。*\n  \n* [Chart of Standard Forms of Less-Than-Common National Characters/次常用國字標準字體表](https://zh.wikipedia.org/wiki/%E5%B8%B8%E7%94%A8%E5%9C%8B%E5%AD%97%E6%A8%99%E6%BA%96%E5%AD%97%E9%AB%94%E8%A1%A8)  \n  \\**Note: Old name in this software was 《台湾教育部次常用字表》, and was temporarily removed in v0.10 and v0.11.  \n  注：旧版软件内名称为《台湾教育部次常用字表》，并于 0.10 版和 0.11 版暂时移除。*\n\n* [Hong Kong Supplementary Character Set/香港增補字符集](https://zh.wikipedia.org/wiki/%E9%A6%99%E6%B8%AF%E5%A2%9E%E8%A3%9C%E5%AD%97%E7%AC%A6%E9%9B%86)  \n\n* [Supplementary Character Set (suppchara, level 1-6)/常用香港外字表（1-6级）](https://github.com/ichitenfont/suppchara)  \n\n### Foundry list 厂商列表\n\n* z01-han/Trad. List/逐浪字库简繁字表 http://f.ziti163.com\n\n* [Hanyi Fonts Simp./Trad. List/汉仪简繁字表](https://github.com/3type/glyphs-han/blob/master/Tables/Commonly%20Used%20on%20Internet.txt)  \n\n* FounderType  Simp./Trad. List 方正简繁字表\n\n## Dependencies 依赖模块\n\n* `tkinter`  \n  For software display. Non-commercial use module, should be removed and replaced in next version.  \n  使用于软件显示。非商用模块，应在未来移除与替换该模块。\n\n* [`fontTools`](https://github.com/fonttools/fonttools)  \n  Extract `cmap` table.  \n  提取 `cmap` 表。\n\n* [`pyglet`](http://pyglet.org/)  \n  ZHT only: Set the GUI Font to custom font ([Genyog](https://github.com/buttaiwan/genyog-font)).  \n  繁中版：设置界面字体为自定义字体（[源样黑体](https://github.com/buttaiwan/genyog-font)）。\n\n* [`pyinstaller`](https://github.com/pyinstaller/pyinstaller)  \n  Build executable for Windows in [release](https://github.com/NightFurySL2001/CJK-character-count/releases/latest).  \n  编译软件成可执行软件。[发布版](https://github.com/NightFurySL2001/CJK-character-count/releases/latest)内提供 Windows 版本。\n  \n##  License 授权\n\nThis software is licensed under [MIT License](https://opensource.org/licenses/MIT). Details of the license can be found in the [accompanying `LICENSE` file](LICENSE).\n\n本软件以 [MIT 授权条款](https://opensource.org/licenses/MIT)发布。授权详情可在[随附的 `LICENSE` 文件内](LICENSE)查阅。\n\n## To build 如何构建\n\nPlease install [latest version of Python 3](https://www.python.org/downloads/).\n\n请先安装[最新版本的 Python 3](https://www.python.org/downloads/)。\n\n### Dependencies 安装依赖模块\n```\npip3 install fonttools\npip3 install pyglet\npip3 install pyinstaller\n```\n\n### Building software 构建软件\n\nDownload the required `.spec` files from [release](https://github.com/NightFurySL2001/CJK-character-count/releases/latest).\n\n请从[发布页](https://github.com/NightFurySL2001/CJK-character-count/releases/latest)下载需要的 `.spec` 文件。\n```\n// To build single language\npyinstaller main.spec\npyinstaller main-zhs.spec\npyinstaller main-zht.spec\n\n// To build full folder, use the provided .bat file\n.\\batch.bat\n```\n\n## To-do 待办事项\n\n* Redesign GUI with [Kivy](https://kivy.org/).\n\n## Changelog 更新日志\n\nRefer to [readme.txt](readme.txt). 参考[readme.txt](readme.txt)。\n\n___\n\nThis program is requested by [MaoKen](http://www.maoken.com/). Visit their site to see this in action.\n\n此软件由[猫啃网](http://www.maoken.com/)要求。浏览该网址以查看使用方式。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoomla%2Fz01fontelf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzoomla%2Fz01fontelf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoomla%2Fz01fontelf/lists"}