Kaynağa Gözat

【更改,构建】迁移至 fusion-pixel 字体并优化终端显示

- 将基础字体从文泉驿点阵宋体更换为 fusion-pixel-font
- 添加终端图形符号优化映射,改善 btop 等程序的显示效果
- 新增多个分析脚本用于字体编码检查和重复字符处理
- 更新 GitHub Actions 工作流,添加测试构建流程
- 完善许可证信息,添加 MIT 和 SIL 字体许可证
- 更新文档说明和示例图片
PJ568 1 yıl önce
ebeveyn
işleme
ff4b6075ce

+ 51 - 0
.github/workflows/test_build.yml

@@ -0,0 +1,51 @@
+name: 【测试】构建字体
+
+on:
+  workflow_dispatch:
+  # push:
+  #   branches:
+  #     - master
+
+jobs:
+  test-build:
+    runs-on: ubuntu-latest
+    permissions:
+      contents: write
+      pages: write
+      id-token: write
+    name: 【测试】构建字体
+    steps:
+      - name: 检出代码
+        uses: actions/checkout@v4
+
+      - name: 配置环境
+        run: |
+          # 安装 Python 依赖
+          python3 -m pip install --upgrade pip
+          pip3 install -r requirements.txt
+
+          # 安装构建依赖
+          sudo apt-get update
+          sudo apt-get install -y build-essential wget tar gzip
+
+      - name: 编译字体
+        run: |
+          # 运行构建脚本
+          bash build.bash
+
+          # 验证输出文件
+          if [ ! -f "output/xibo.psfu.gz" ]; then
+            echo "错误:字体文件生成失败"
+            exit 1
+          fi
+
+          # 显示文件信息
+          ls -la output/xibo.psfu.gz
+
+      - name: Upload artifact
+        if: (cancelled() || failure() || success())
+        uses: actions/upload-artifact@v4
+        with:
+          path: output/*
+          compression-level: 9 # maximum compression
+          retention-days: 5

+ 1 - 1
.github/workflows/test.yml → .github/workflows/test_release.yml

@@ -7,7 +7,7 @@ on:
   #     - master
 
 jobs:
-  test:
+  test-release:
     runs-on: ubuntu-latest
     permissions:
       contents: write

+ 0 - 14
FONT-LICENSE

@@ -1,14 +0,0 @@
-# 自由中文字体
-
-文泉驿开发的中文字库与普通的汉字字库不同,它们是“自由字体”。简单地说,“自由”的含义包括
-
-    您可以以任何目的使用这个字体,
-    对于不满意的汉字或者设置,您可以修改这个字体而无需事先征得我们的同意,
-    您修改后的字体如果您认为对别人有用,您可以放在自己的主页或者共享空间上进行传播。 
-
-您的义务包括:
-
-    如果您将该字体(无论修改或者未修改)提供给第三方使用,包括提供下载,放在产品当中或者销售,使用该字体或者产品的用户同样拥有上述的自由,他们有权向您索取新字体以及与新字体"紧密"结合的软件的源代码。
-    您不能对原始字体,或者对字体的简单修改声称版权。该字体以及衍生字体(中未经修改的字体部分)的版权人仍然为FangQ,文泉驿信任委员会以及其他包含在该字体当中的开源字体的作者。 
-
-严格意义上的使用授权参见 [GNU General Public License(GPL)](http://wenq.org/wqy2/index.cgi?GPL) 以及其[中文翻译](http://www.thebigfly.com/gnu/gpl/)。在产品开发中使用文泉驿字体,需要满足GPL v2使用授权的要求,请首先咨询律师。需要获得商业使用授权,请联系[文泉驿信任委员会](http://wenq.org/wqy2/index.cgi?WQYBOT)协商使用授权事宜。 

+ 94 - 0
FONT-LICENSE/ark-pixel.txt

@@ -0,0 +1,94 @@
+Copyright (c) 2021, TakWolf (https://takwolf.com),
+with Reserved Font Name "Ark Pixel".
+
+This Font Software is licensed under the SIL Open Font License, Version 1.1.
+This license is copied below, and is also available with a FAQ at:
+https://openfontlicense.org
+
+
+-----------------------------------------------------------
+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
+-----------------------------------------------------------
+
+PREAMBLE
+The goals of the Open Font License (OFL) are to stimulate worldwide
+development of collaborative font projects, to support the font creation
+efforts of academic and linguistic communities, and to provide a free and
+open framework in which fonts may be shared and improved in partnership
+with others.
+
+The OFL allows the licensed fonts to be used, studied, modified and
+redistributed freely as long as they are not sold by themselves. The
+fonts, including any derivative works, can be bundled, embedded,
+redistributed and/or sold with any software provided that any reserved
+names are not used by derivative works. The fonts and derivatives,
+however, cannot be released under any other type of license. The
+requirement for fonts to remain under this license does not apply
+to any document created using the fonts or their derivatives.
+
+DEFINITIONS
+"Font Software" refers to the set of files released by the Copyright
+Holder(s) under this license and clearly marked as such. This may
+include source files, build scripts and documentation.
+
+"Reserved Font Name" refers to any names specified as such after the
+copyright statement(s).
+
+"Original Version" refers to the collection of Font Software components as
+distributed by the Copyright Holder(s).
+
+"Modified Version" refers to any derivative made by adding to, deleting,
+or substituting -- in part or in whole -- any of the components of the
+Original Version, by changing formats or by porting the Font Software to a
+new environment.
+
+"Author" refers to any designer, engineer, programmer, technical
+writer or other person who contributed to the Font Software.
+
+PERMISSION & CONDITIONS
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of the Font Software, to use, study, copy, merge, embed, modify,
+redistribute, and sell modified and unmodified copies of the Font
+Software, subject to the following conditions:
+
+1) Neither the Font Software nor any of its individual components,
+in Original or Modified Versions, may be sold by itself.
+
+2) Original or Modified Versions of the Font Software may be bundled,
+redistributed and/or sold with any software, provided that each copy
+contains the above copyright notice and this license. These can be
+included either as stand-alone text files, human-readable headers or
+in the appropriate machine-readable metadata fields within text or
+binary files as long as those fields can be easily viewed by the user.
+
+3) No Modified Version of the Font Software may use the Reserved Font
+Name(s) unless explicit written permission is granted by the corresponding
+Copyright Holder. This restriction only applies to the primary font name as
+presented to the users.
+
+4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
+Software shall not be used to promote, endorse or advertise any
+Modified Version, except to acknowledge the contribution(s) of the
+Copyright Holder(s) and the Author(s) or with their explicit written
+permission.
+
+5) The Font Software, modified or unmodified, in part or in whole,
+must be distributed entirely under this license, and must not be
+distributed under any other license. The requirement for fonts to
+remain under this license does not apply to any document created
+using the Font Software.
+
+TERMINATION
+This license becomes null and void if any of the above conditions are
+not met.
+
+DISCLAIMER
+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
+COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
+DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
+OTHER DEALINGS IN THE FONT SOFTWARE.

+ 108 - 0
FONT-LICENSE/cubic-11.txt

@@ -0,0 +1,108 @@
+[Cubic 11]
+These fonts are free software.
+Unlimited permission is granted to use, copy, and distribute them, with or without modification, either commercially or noncommercially.
+THESE FONTS ARE PROVIDED "AS IS" WITHOUT WARRANTY.
+此字型是免費的。
+無論您是否進行對本字型進行商業或非商業性修改,均可無限制地使用,複製和分發它們。
+本字型的衍生品之授權必須與此字型相同,且不作任何擔保。
+[JF Dot M+H 12]
+Copyright(c) 2005 M+ FONTS PROJECT
+[M+ BITMAP FONTS]
+Copyright (C) 2002-2004 COZ
+These fonts are free software.
+Unlimited permission is granted to use, copy, and distribute it, with or without modification, either commercially and noncommercially.
+THESE FONTS ARE PROVIDED "AS IS" WITHOUT WARRANTY.
+これらのフォントはフリー(自由な)ソフトウエアです。
+あらゆる改変の有無に関わらず、また商業的な利用であっても、自由にご利用、複製、再配布することができますが、全て無保証とさせていただきます。
+
+This Font Software is licensed under the SIL Open Font License, Version 1.1.
+This license is copied below, and is also available with a FAQ at:
+https://scripts.sil.org/OFL
+
+
+-----------------------------------------------------------
+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
+-----------------------------------------------------------
+
+PREAMBLE
+The goals of the Open Font License (OFL) are to stimulate worldwide
+development of collaborative font projects, to support the font creation
+efforts of academic and linguistic communities, and to provide a free and
+open framework in which fonts may be shared and improved in partnership
+with others.
+
+The OFL allows the licensed fonts to be used, studied, modified and
+redistributed freely as long as they are not sold by themselves. The
+fonts, including any derivative works, can be bundled, embedded, 
+redistributed and/or sold with any software provided that any reserved
+names are not used by derivative works. The fonts and derivatives,
+however, cannot be released under any other type of license. The
+requirement for fonts to remain under this license does not apply
+to any document created using the fonts or their derivatives.
+
+DEFINITIONS
+"Font Software" refers to the set of files released by the Copyright
+Holder(s) under this license and clearly marked as such. This may
+include source files, build scripts and documentation.
+
+"Reserved Font Name" refers to any names specified as such after the
+copyright statement(s).
+
+"Original Version" refers to the collection of Font Software components as
+distributed by the Copyright Holder(s).
+
+"Modified Version" refers to any derivative made by adding to, deleting,
+or substituting -- in part or in whole -- any of the components of the
+Original Version, by changing formats or by porting the Font Software to a
+new environment.
+
+"Author" refers to any designer, engineer, programmer, technical
+writer or other person who contributed to the Font Software.
+
+PERMISSION & CONDITIONS
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of the Font Software, to use, study, copy, merge, embed, modify,
+redistribute, and sell modified and unmodified copies of the Font
+Software, subject to the following conditions:
+
+1) Neither the Font Software nor any of its individual components,
+in Original or Modified Versions, may be sold by itself.
+
+2) Original or Modified Versions of the Font Software may be bundled,
+redistributed and/or sold with any software, provided that each copy
+contains the above copyright notice and this license. These can be
+included either as stand-alone text files, human-readable headers or
+in the appropriate machine-readable metadata fields within text or
+binary files as long as those fields can be easily viewed by the user.
+
+3) No Modified Version of the Font Software may use the Reserved Font
+Name(s) unless explicit written permission is granted by the corresponding
+Copyright Holder. This restriction only applies to the primary font name as
+presented to the users.
+
+4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
+Software shall not be used to promote, endorse or advertise any
+Modified Version, except to acknowledge the contribution(s) of the
+Copyright Holder(s) and the Author(s) or with their explicit written
+permission.
+
+5) The Font Software, modified or unmodified, in part or in whole,
+must be distributed entirely under this license, and must not be
+distributed under any other license. The requirement for fonts to
+remain under this license does not apply to any document created
+using the Font Software.
+
+TERMINATION
+This license becomes null and void if any of the above conditions are
+not met.
+
+DISCLAIMER
+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
+COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
+DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
+OTHER DEALINGS IN THE FONT SOFTWARE.

+ 93 - 0
FONT-LICENSE/galmuri.txt

@@ -0,0 +1,93 @@
+Copyright (c) 2019–2025 Lee Minseo ([email protected])
+
+This font software is licensed under the SIL Open Font License, Version 1.1.
+This license is copied below, and is also available with a FAQ at:
+https://openfontlicense.org
+
+
+-----------------------------------------------------------
+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
+-----------------------------------------------------------
+
+PREAMBLE
+The goals of the Open Font License (OFL) are to stimulate worldwide
+development of collaborative font projects, to support the font creation
+efforts of academic and linguistic communities, and to provide a free and
+open framework in which fonts may be shared and improved in partnership
+with others.
+
+The OFL allows the licensed fonts to be used, studied, modified and
+redistributed freely as long as they are not sold by themselves. The
+fonts, including any derivative works, can be bundled, embedded,
+redistributed and/or sold with any software provided that any reserved
+names are not used by derivative works. The fonts and derivatives,
+however, cannot be released under any other type of license. The
+requirement for fonts to remain under this license does not apply
+to any document created using the fonts or their derivatives.
+
+DEFINITIONS
+"Font Software" refers to the set of files released by the Copyright
+Holder(s) under this license and clearly marked as such. This may
+include source files, build scripts and documentation.
+
+"Reserved Font Name" refers to any names specified as such after the
+copyright statement(s).
+
+"Original Version" refers to the collection of Font Software components as
+distributed by the Copyright Holder(s).
+
+"Modified Version" refers to any derivative made by adding to, deleting,
+or substituting -- in part or in whole -- any of the components of the
+Original Version, by changing formats or by porting the Font Software to a
+new environment.
+
+"Author" refers to any designer, engineer, programmer, technical
+writer or other person who contributed to the Font Software.
+
+PERMISSION & CONDITIONS
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of the Font Software, to use, study, copy, merge, embed, modify,
+redistribute, and sell modified and unmodified copies of the Font
+Software, subject to the following conditions:
+
+1) Neither the Font Software nor any of its individual components,
+in Original or Modified Versions, may be sold by itself.
+
+2) Original or Modified Versions of the Font Software may be bundled,
+redistributed and/or sold with any software, provided that each copy
+contains the above copyright notice and this license. These can be
+included either as stand-alone text files, human-readable headers or
+in the appropriate machine-readable metadata fields within text or
+binary files as long as those fields can be easily viewed by the user.
+
+3) No Modified Version of the Font Software may use the Reserved Font
+Name(s) unless explicit written permission is granted by the corresponding
+Copyright Holder. This restriction only applies to the primary font name as
+presented to the users.
+
+4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
+Software shall not be used to promote, endorse or advertise any
+Modified Version, except to acknowledge the contribution(s) of the
+Copyright Holder(s) and the Author(s) or with their explicit written
+permission.
+
+5) The Font Software, modified or unmodified, in part or in whole,
+must be distributed entirely under this license, and must not be
+distributed under any other license. The requirement for fonts to
+remain under this license does not apply to any document created
+using the Font Software.
+
+TERMINATION
+This license becomes null and void if any of the above conditions are
+not met.
+
+DISCLAIMER
+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
+COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
+DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
+OTHER DEALINGS IN THE FONT SOFTWARE.

+ 21 - 0
MIT-LICENSE

@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2025 PJ568 <[email protected]>
+
+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.

+ 39 - 6
README.en.md

@@ -1,6 +1,6 @@
 # ![Demo](assets/display.png)
 
-> [简体中文](README.md) | ENGLISH
+> ENGLISH | [简体中文](README.md)
 
 ## font-xibo
 
@@ -8,13 +8,46 @@ Xibo is a Chinese TTY font designed for Linux, aiming to provide Chinese display
 
 The inspiration for this project comes from the [syllazh](https://github.com/oldherl/syllazh/) font.
 
-## Phonetic Characters
+### Phonetic Characters
 
 When using this font, you may notice that characters with similar pronunciations are displayed as the same character. For example, any of the characters "用永勇拥擁涌湧咏詠蛹雍踊庸踴泳" will be uniformly displayed as "用".
 
 This is because fonts on Linux TTY are generally changed using the `setfont` tool from the kbd package, which supports a maximum of 512 glyphs. However, a single glyph can map to multiple Unicode code points.
 Therefore, Xibo maps all characters with the same pronunciation (ignoring tones) to the same glyph, allowing for Chinese character display within the limited number of glyphs.
 
+### TUI display optimization
+
+This font also optimizes the mapping of commonly used graphical symbols in terminals to make them more suitable for terminal use. Some examples:
+
+- Original symbols:
+
+  ```plaintext
+  ┌─┬─┐
+  │ │ │
+  ├─┼─┤
+  │ │ │
+  └─┴─┘
+  ```
+
+- Before optimization:
+
+  (Cannot be displayed correctly)
+
+- After optimization:
+
+  ```plaintext
+  r-T-┐
+  | | |
+  ├-+-┤
+  | | |
+  L-┴-J
+  ```
+
+  Among these, `┌` is mapped to the letter `r`, `┬` is mapped to the letter `T`, `┘` is mapped to the letter `J`, etc.
+  This type of mapping maximizes the improvement of display quality without occupying more glyphs.
+
+  ![btop with font-xibo](assets/btop.png)
+
 ## Building the Font
 
 1. Clone the repository:
@@ -52,11 +85,11 @@ Place `xibo.psfu.gz` in the `consolefonts` directory (located at `/usr/share/con
 
 ## License
 
-> Thanks to the **WenQuanYi** team for providing the `WenQuanYi Bitmap Song v1.0.0-RC1 Hero` font.
+> Thanks to **TakWolf** and their team for providing the `fusion-pixel-font` font.
 
-The script files `build.bash` and `build_font_from_bdf.py` in this repository are licensed under the [GNU GENERAL PUBLIC LICENSE Version 3](LICENSE).
-`original/references/pinyin_hanzi` is licensed under GNU Lesser General Public License (LGPL) 2.1. Other reference files in the `original/references/` directory are licensed under the [Unlicense](original/references/LICENSE).
-The generated font files in this project are licensed under the [Free Chinese Font License and GNU GENERAL PUBLIC LICENSE Version 2](FONT-LICENSE).
+The script files `build.bash`, `build_font_from_bdf.py`, and all files in the `scripts/` directory in this repository follow the [GNU GENERAL PUBLIC LICENSE Version 3](LICENSE),
+`original/references/pinyin_hanzi` in the `original/references/` directory follows the GNU Lesser General Public License (LGPL) 2.1, and other reference files follow the [Unlicense license](original/references/LICENSE),
+The font files generated by this project follow the [MIT license](MIT-LICENSE) or [SIL OPEN FONT LICENSE Version 1.1](SIL-LICENSE). For the original font upstream licenses, see the files in [`FONT-LICENSE/`](FONT-LICENSE/).
 
 ## Contributing
 

+ 38 - 5
README.md

@@ -1,6 +1,6 @@
 # ![演示](assets/display.png)
 
-> 简体中文 | [ENGLISH](README.en.md)
+> [ENGLISH](README.en.md) | 简体中文
 
 ## font-xibo
 
@@ -8,13 +8,46 @@ xibo 是一个为 Linux 设计的中文 TTY 字体,旨在在不安装诸如 [c
 
 本项目的灵感来源自 [syllazh](https://github.com/oldherl/syllazh/) 字体。
 
-## 表音文字
+### 表音文字
 
 在使用本字体时,您可能注意到——读音相近的汉字会被统一显示为同一个汉字,如:“用永勇拥擁涌湧咏詠蛹雍踊庸踴泳”中的任意一个汉字会被会统一显示为“用”。
 
 这是因为 Linux TTY 上的字体一般用 kbd 软件包的 setfont 工具更换。它最多支持 512 个字形(glyph),但单个字形可以映射到多个 Unicode 码位。
 因此,xibo 将所有忽略声调的音节相同的汉字都会被映射到同一个字形上,以实现在有限字形数下的汉字显示。
 
+### 终端图形程序显示优化
+
+本字体还针对终端部分常用的图形符号进行优化映射,使其更适合终端使用。部分示例:
+
+- 原符号:
+
+  ```plaintext
+  ┌─┬─┐
+  │ │ │
+  ├─┼─┤
+  │ │ │
+  └─┴─┘
+  ```
+
+- 优化前:
+
+  (无法正确显示)
+
+- 优化后:
+
+  ```plaintext
+  r-T-┐
+  | | |
+  ├-+-┤
+  | | |
+  L-┴-J
+  ```
+
+  其中,`┌` 被映射为字母 `r`,`┬` 被映射为字母 `T`,`┘` 被映射为字母 `J` 等。
+  此类映射在尽量不占用更多字形的情况下最大程度地改善了显示效果。
+
+  ![font-xibo 在 btop 下的表现](assets/btop.png)
+
 ## 构建字体
 
 1. 克隆仓库:
@@ -52,11 +85,11 @@ xibo 是一个为 Linux 设计的中文 TTY 字体,旨在在不安装诸如 [c
 
 ## 许可协议
 
-> 感谢**文泉驿**团队提供的`文泉驿点阵宋体 v1.0.0-RC1 英雄`字体。
+> 感谢**TakWolf**及其团队提供的 `fusion-pixel-font` 字体。
 
-本仓库中的脚本文件 `build.bash` 和 `build_font_from_bdf.py` 遵循 [GNU GENERAL PUBLIC LICENSE Version 3 许可协议](LICENSE),
+本仓库中的脚本文件 `build.bash`、`build_font_from_bdf.py` 和 `scripts/` 中的所有文件遵循 [GNU GENERAL PUBLIC LICENSE Version 3 许可协议](LICENSE),
 `original/references/` 目录下的 `original/references/pinyin_hanzi` 遵循 GNU Lesser General Public License (LGPL) 2.1,其余参照文件遵循 [Unlicense 许可协议](original/references/LICENSE),
-本项目生成的字体文件遵循[自由中文字体和 GNU GENERAL PUBLIC LICENSE Version 2 许可协议](FONT-LICENSE)。
+本项目生成的字体文件遵循 [MIT 许可协议](MIT-LICENSE)或 [SIL OPEN FONT LICENSE Version 1.1 许可协议](SIL-LICENSE),原字体上游协议详见 [`FONT-LICENSE/`](FONT-LICENSE/) 下文件。
 
 ## 做出贡献
 

+ 94 - 0
SIL-LICENSE

@@ -0,0 +1,94 @@
+Copyright (c) 2025, PJ568 <[email protected]>,
+with Reserved Font Name "xibo".
+
+This Font Software is licensed under the SIL Open Font License, Version 1.1.
+This license is copied below, and is also available with a FAQ at:
+https://openfontlicense.org
+
+
+-----------------------------------------------------------
+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
+-----------------------------------------------------------
+
+PREAMBLE
+The goals of the Open Font License (OFL) are to stimulate worldwide
+development of collaborative font projects, to support the font creation
+efforts of academic and linguistic communities, and to provide a free and
+open framework in which fonts may be shared and improved in partnership
+with others.
+
+The OFL allows the licensed fonts to be used, studied, modified and
+redistributed freely as long as they are not sold by themselves. The
+fonts, including any derivative works, can be bundled, embedded,
+redistributed and/or sold with any software provided that any reserved
+names are not used by derivative works. The fonts and derivatives,
+however, cannot be released under any other type of license. The
+requirement for fonts to remain under this license does not apply
+to any document created using the fonts or their derivatives.
+
+DEFINITIONS
+"Font Software" refers to the set of files released by the Copyright
+Holder(s) under this license and clearly marked as such. This may
+include source files, build scripts and documentation.
+
+"Reserved Font Name" refers to any names specified as such after the
+copyright statement(s).
+
+"Original Version" refers to the collection of Font Software components as
+distributed by the Copyright Holder(s).
+
+"Modified Version" refers to any derivative made by adding to, deleting,
+or substituting -- in part or in whole -- any of the components of the
+Original Version, by changing formats or by porting the Font Software to a
+new environment.
+
+"Author" refers to any designer, engineer, programmer, technical
+writer or other person who contributed to the Font Software.
+
+PERMISSION & CONDITIONS
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of the Font Software, to use, study, copy, merge, embed, modify,
+redistribute, and sell modified and unmodified copies of the Font
+Software, subject to the following conditions:
+
+1) Neither the Font Software nor any of its individual components,
+in Original or Modified Versions, may be sold by itself.
+
+2) Original or Modified Versions of the Font Software may be bundled,
+redistributed and/or sold with any software, provided that each copy
+contains the above copyright notice and this license. These can be
+included either as stand-alone text files, human-readable headers or
+in the appropriate machine-readable metadata fields within text or
+binary files as long as those fields can be easily viewed by the user.
+
+3) No Modified Version of the Font Software may use the Reserved Font
+Name(s) unless explicit written permission is granted by the corresponding
+Copyright Holder. This restriction only applies to the primary font name as
+presented to the users.
+
+4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
+Software shall not be used to promote, endorse or advertise any
+Modified Version, except to acknowledge the contribution(s) of the
+Copyright Holder(s) and the Author(s) or with their explicit written
+permission.
+
+5) The Font Software, modified or unmodified, in part or in whole,
+must be distributed entirely under this license, and must not be
+distributed under any other license. The requirement for fonts to
+remain under this license does not apply to any document created
+using the Font Software.
+
+TERMINATION
+This license becomes null and void if any of the above conditions are
+not met.
+
+DISCLAIMER
+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
+COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
+DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
+OTHER DEALINGS IN THE FONT SOFTWARE.

+ 1 - 1
VERSION

@@ -1 +1 @@
-0.2.0
+1.0.0

BIN
assets/btop.png


BIN
assets/display.png


+ 6 - 6
build.bash

@@ -6,9 +6,9 @@ path=$(pwd)
 mkdir -p $path/temp
 mkdir -p $path/output
 
-# 下载 wqy-bitmapsong-bdf-1.0.0-RC1 的压缩包
-download_url="https://downloads.sourceforge.net/project/wqy/wqy-bitmapfont/1.0.0-RC1/wqy-bitmapsong-bdf-1.0.0-RC1.tar.gz"
-wget "$download_url" -O $path/temp/wqy-bitmapsong-bdf-1.0.0-RC1.tar.gz
+# 下载 fusion-pixel-12px-monospaced-zh_hans 的压缩包
+download_url="https://github.com/TakWolf/fusion-pixel-font/releases/download/2025.10.06/fusion-pixel-font-12px-monospaced-bdf-v2025.10.06.zip"
+wget "$download_url" -O $path/temp/font.zip
 
 # 检查下载是否成功
 if [ $? -ne 0 ]; then
@@ -16,8 +16,8 @@ if [ $? -ne 0 ]; then
     exit 1
 fi
 
-# 解压下载的压缩包
-tar -xf $path/temp/wqy-bitmapsong-bdf-1.0.0-RC1.tar.gz -C $path/temp/
+# 解压下载的压缩包到 $path/temp
+unzip $path/temp/font.zip -d $path/temp
 
 # 检查解压是否成功
 if [ $? -ne 0 ]; then
@@ -26,7 +26,7 @@ if [ $? -ne 0 ]; then
 fi
 
 # 列出解压后的目录内容
-ls $path/temp/wqy-bitmapsong/
+ls $path/temp/
 
 # 运行 Python 脚本
 python3 $path/build_font_from_bdf.py > $path/output/xibo.txt

+ 6 - 6
build_font_from_bdf.py

@@ -4,7 +4,7 @@
 from bdflib import reader
 
 # 读取 BDF 格式的字体文件
-font = reader.read_bdf(open("temp/wqy-bitmapsong/wenquanyi_9pt.bdf", "rb"))
+font = reader.read_bdf(open("temp/fusion-pixel-12px-monospaced-zh_hans.bdf", "rb"))
 
 # File format version; currently this must be 0.
 version = '0'
@@ -41,9 +41,9 @@ def PrintNonChineseCharacter(index):
     return count
 
 def PrintCharacters(Characters, count):
-    Character = Characters[0]
+    Character = Characters[0] # 取第一个字符作为展示字
     try:
-        # 将汉字编码为对应编码
+        # 将字符编码为对应编码
         encoding = "utf-8"
         # _enc = codecs.encode(Character, encoding=encoding)
         # 获取对应的字形:即取 ENCODING 变量为字的 Unicode 编码的字形,不同字体中,ENCODING 变量数值的含义可能不同
@@ -76,7 +76,7 @@ def PrintCharacters(Characters, count):
                 ll = ll + " \\"
             print(ll)
 
-        # 打印汉字的 Unicode 编码
+        # 打印字符的 Unicode 编码
         print("Unicode: ", end="")
         for h in Characters:
             # 遇到 # 则停止
@@ -97,8 +97,8 @@ with open("original/references/pinyin_hanzi", encoding="utf-8") as f:
         # 跳过注释行
         if line.startswith("#"):
             continue
-        s = line.split()
+        s = line.split() # 分开拼音和汉字
         if len(s) >= 2:
-            hanzis = s[1]
+            hanzis = s[1] # 取汉字那一条
             PrintCharacters(hanzis, count)
             count += 1

+ 98 - 94
original/references/other_characters

@@ -1,94 +1,98 @@
-!!ǃ
-""‟″‶‷ˮ׳״
-##♯⌗
-$$
-%%
-&&
-'’˙ॱ῾ˈꞌ
-((❨❪
-))❩❫
-**∗
-++
-,,
---‑‒–—―⸺⸻
-..·‧∙
-//∕⁄∖⧸
-00𝟎𝟘𝟬
-11𝟏𝟙𝟭
-22𝟐𝟚𝟮
-33𝟑𝟛𝟯
-44𝟒𝟜𝟰
-55𝟓𝟝𝟱
-66𝟔𝟞𝟲
-77𝟳𝟟
-88𝟖𝟠𝟴
-99𝟗𝟡𝟵
-::∶︰﹕
-;;;
-<<‹
-==
->>›
-??
-@@
-AAÀÁÂÃÄÅĀĂĄǺȀȂȦȺḀẠẢẤẦẨẪẬẮẰẲẴẶ
-BBᴮḂḄḆƂƁɃᵬ
-CCÇĆĈĊČƇȻḈ
-DDĎĐƉƊƋᴰḊḌḎḐḒ
-EEÈÉÊËĒĔĖĘĚȄȆȨɆḔḖḘḚḜẸẺẼẾỀỂỄỆ
-FFᶠḞƑ
-GGĜĞĠĢƓǴǤḠ
-HHĤĦȞᴴḢḤḦḨḪẖ
-IIÌÍÎÏĨĪĬĮİǏȈȊḬḮỈỊ
-JJĴɈ
-KKĶǨḰḲḴ
-LLĹĻĽĿŁȽḶḸḺḼ
-MMᴹḾṀṂ
-NNÑŃŅŇŊǸᴺṄṆṈṊ
-OOÒÓÔÕÖØŌŎŐƆƟǑǪǬǾȌȎȪȬȮȰᴏỌỎỐỒỔỖỘỚỜỞỠỢ
-PPṔṖƤ
-QQɊ
-RRŔŖŘȐȒɌᴿṘṚṜṞ
-SSŚŜŞŠȘꞨṠṢṤṦṨ
-TTŢŤŦȚȾṪṬṮṰ
-UUÙÚÛÜŨŪŬŮŰŲƯǓǔǖǘǚǜȔȖᴜṲṴṶṸṺỤỦỨỪỬỮỰ
-VVṼṾ
-WWŴẀẂẄẆẈ
-XXẊẌ
-Y=ÝŶŸȲɎẎẏỲỴỶỸ
-ZZŹŻŽẐẒẔƵȤ
-[[
-\\∖⧹
-]]
-^^ˆ⌃
-__﹏﹍﹎
-``ˋ´ˊ
-aаaꭤɑàáâãäåāăąǎǡǻȁȃȧȺạảấầẩẫậắằẳẵặ
-bbƀƃɓᵬᶀ
-ccçćĉċčƈȼᴄᶜḉ
-ddďđɖɗ
-eeèéêëēĕėęěȅȇȩ
-ffƒ
-ggĝğġģǥǧǵ
-hhĥħȟ
-iiìíîïĩīĭįǐȉȋɨ
-jiĵǰɉ
-kkķǩ
-llĺļľŀłƚɫ
-mmɱ
-nnñńņňʼnɲƞ
-ooòóôõöōŏőǒǫǭǿȍȏȫȭȯȱ
-pp
-qqɋ
-rrŕŗřȍȑɍ
-ssśŝşšșꞩ
-ttţťŧțʈ
-uuùúûüũūŭůűųǔǖǘǚǜȕȗ
-vvʋ
-wwŵẁẃẅẇẉẘ
-xxẋẍ
-yyýÿŷȳɏ
-zzźżžƶȥ
-{{
-||‖│┃┆┇┊┋╎╏║
-}}
-~~∼∽∿
+!!ǃ❕❗
+""‟″‶‷ˮ׳״❝❞
+##♯⌗
+$$
+%%
+&&
+''’˙ॱ῾ˈꞌ❛❜
+((❨❪
+))❩❫
+**∗
+++┼┽┾┿╀╁╂╃╄╅╆╇╈╉╊╋╪╫╬
+,,❟
+--‑‒–—―⸺⸻‐─━┄┅┈┉═╶╴
+..·‧∙
+//∕⁄∖⧸╱
+00𝟎𝟘𝟬
+11𝟏𝟙𝟭①⑴❶➀➊㈠㊀
+22𝟐𝟚𝟮②⑵❷➁➋㈡㊁
+33𝟑𝟛𝟯③⑶❸➂➌㈢㊂
+44𝟒𝟜𝟰④⑷❹➃➍㈣㊃
+55𝟓𝟝𝟱⑤⑸❺➄➎㈤㊄
+66𝟔𝟞𝟲⑥⑹❻➅➏㈥㊅
+77𝟳𝟟⑦⑺❼➆➐㈦㊆
+88𝟖𝟠𝟴⑧⑻❽➇➑㈧㊇
+99𝟗𝟡𝟵⑨⑼❾➈➒㈨㊈
+::∶︰﹕
+;;;
+<<‹❮❬❰⟨〈
+==᐀꓿
+>>›❯❭❱⟩〉
+??❔❓
+@@
+AAÀÁÂÃÄÅĀĂĄǺȀȂȦȺḀẠẢẤẦẨẪẬẮẰẲẴẶ
+BBḂḄḆƂƁɃ
+CCÇĆĈĊČƇȻḈⅭ
+DDĎĐƉƊƋᴰḊḌḎḐḒⅮ
+EEÈÉÊËĒĔĖĘĚȄȆȨɆḔḖḘḚḜẸẺẼẾỀỂỄỆ
+FFᶠḞƑ
+GGĜĞĠĢƓǴǤḠ
+HHĤĦȞᴴḢḤḦḨḪẖ
+IIÌÍÎÏĨĪĬĮİǏȈȊḬḮỈỊ⡆⢰⢸
+JJĴɈ⣸┘┙┚┛◢╛╜╝◞╯
+KKĶǨḰḲḴ
+LLĹĻĽĿŁȽḶḸḺḼ⣆⣇⠧Ⅼ└┕┖┗◣╘╙╚◟╰
+MMᴹḾṀṂⅯ
+NNÑŃŅŇŊǸᴺṄṆṈṊ
+OOÒÓÔÕÖØŌŎŐƆƟǑǪǬǾȌȎȪȬȮȰᴏỌỎỐỒỔỖỘỚỜỞỠỢ
+PPṔṖƤ⡟
+QQɊ
+RRŔŖŘȐȒɌᴿṘṚṜṞ
+SSŚŜŞŠȘꞨṠṢṤṦṨ
+TTŢŤŦȚȾṪṬṮṰ┬┭┮┯┰┱┲┳╤╥╦
+UUÙÚÛÜŨŪŬŮŰŲƯǓǔǖǘǚǜȔȖᴜṲṴṶṸṺỤỦỨỪỬỮỰ
+VVṼṾ
+WWŴẀẂẄẆẈ
+XXẊẌ╳
+YYÝŶŸȲɎẎẏỲỴỶỸ
+ZZŹŻŽẐẒẔƵȤ
+[[
+\\∖⧹╲
+]]
+^^ˆ⌃
+__﹏﹍﹎
+``ˋ´ˊ
+aaаꭤɑàáâãäåāăąǎǡǻȁȃȧȺạảấầẩẫậắằẳẵặ
+bbƀƃɓᵬᶀ⠷⣦
+ccçćĉċčƈȼᴄᶜḉ
+ddďđɖɗ⠾
+eeèéêëēĕėęěȅȇȩ
+ffƒ
+ggĝğġģǥǧǵ
+hhĥħȟ
+iiìíîïĩīĭįǐȉȋɨ⡅ⅰ
+jjiĵǰɉ⡹
+kkķǩ
+llĺļľŀłƚɫ⡇
+mmɱ
+nnñńņňʼnɲƞ
+ooòóôõöōŏőǒǫǭǿȍȏȫȭȯȱ
+pp
+qqɋ⢺
+rrŕŗřȍȑɍ⡖┌┍┎┏◤╒╓╔◜╭
+ssśŝşšșꞩ
+ttţťŧțʈ
+uuùúûüũūŭůűųǔǖǘǚǜȕȗ
+vvʋ
+wwŵẁẃẅẇẉẘ
+xxẋẍ
+yyýÿŷȳɏ
+zzźżžƶȥ
+{{❴
+||‖│┃┆┇┊┋╎╏║╵╷
+}}❵
+~~∼∽∿
+┐┑┒┓◥╕╖╗◝╮
+├┝┞┟┠┡┢┣╞╟╠
+┤┥┦┧┨┩┪┫╡╢╣
+┴┵┶┷┸┹┺┻╧╨╩

+ 16 - 16
original/references/pinyin_hanzi

@@ -1,8 +1,8 @@
-juhao 。
-dunhao 、
+juhao 。。
+dunhao 、、
 shengluehao …
-shuming1 《«〈
-shuming2 》»〉
+shuming1 《«⟪
+shuming2 》»⟫
 yinhao1 “‘「『
 yinhao2 ”’」』
 a 啊阿吖腌锕錒嗄
@@ -17,7 +17,7 @@ bang 邦帮幫绑綁傍棒榜磅浜蚌谤謗膀镑鎊梆幇挷搒蒡棓幚牓塝
 bao 包报報抱保爆宝寶剝饱飽煲曝暴豹鲍鮑堡褒胞葆苞雹龅齙孢寳鸨鴇嫑趵菢儤勹褓枹緥窇笣铇鉋寚犳闁嚗裦虣襃堢佨骲嘐袌宲犦蕔媬賲蚫曓珤靌勽怉靤藵駂髱鳵忁飹䪨㙅䳈㿺㲏㻄䎂䳰䨌䭋䴐㙸㲒㵡䈏䥤䨔㫧䤖鑤䯽
 bei 被北背杯盃呗唄备備碑悲倍贝貝辈輩卑钡鋇焙悖狈狽惫憊孛陂鹎鵯鞞蓓鞴鐾邶鉳碚庳偝褙苝柸箄牬郥椑軰杮糒僃俻桮萯棑誖偹琲鞁禙骳犕珼錃鐴諀愂梖鄁藣蛽昁㤳㸢揹㔨㓈㻗䣙䡶㶔㸬䔒㰆㸽㼎㫲㛝㣁㷶㾱䁅䋳䠙䩀䰽䟛㔗㽡䚜
 ben 本奔笨苯锛錛贲夲犇畚坌渀栟倴漰逩喯獖坋炃桳捹蟦泍奙軬楍燌鐼翉撪輽㡷䬱㨧㮥㮺㤓㱵
-beng 泵崩蹦绷綳繃甭迸嘣堋鏰甏祊嗙埄逬絣揼琫伻鞛菶閍熢镚傰漨塴跰甮錋蠯䨻奟嵭琣痭㼞䩬㑟䋽䭰㧍䙀䳞㱶㷯䑫䨜
+beng 崩泵蹦绷綳繃甭迸嘣堋鏰甏祊嗙埄逬絣揼琫伻鞛菶閍熢镚傰漨塴跰甮錋蠯䨻奟嵭琣痭㼞䩬㑟䋽䭰㧍䙀䳞㱶㷯䑫䨜
 bi 比必笔筆逼彼毕畢避闭閉鼻壁辟祕碧币幣臂弊蔽俾敝毙斃璧鄙匕痹滗潷庇蓖毖畀婢陛妣铋鉍閟薜篦裨哔嗶吡弼嬖濞髀荜蓽纰紕睥萆跸蹕夶苾芘魮笓筚愎篳襞秕箅屄鰏偪皀躄邲舭鵖皕珌弻獙鸊荸狴诐毞袐柲詖觱楅赑堛禆贔柀貏獘粊湢嬶煏崥魓闬旇佖鷩沘腷鲾閈聛躃肶粃啚彃畐坒滭髲佊愊梐奰鄨廦枈紴幤娝綼韠咇疕罼鎞馝螕疪蜌鼊鞸熚飶閇朼畁箆襣怭縪駜踾豍鄪妼怶毴稫繴翍睤貱鮅胇萞鏎驆鴓朇饆榌襅鷝鶝㘠鮩㠲㗊㢸㵥㘩㧙䣥㵨䏶㮰㙄㡀㡙㪤㱸䎵㵒䵄㚰㻶䇷䏢㢶㹃䀣䁹䄶䊧䌟䟆䟤䪐䬛䮡䯗䏟䵗䉾䨆㪏䃾䘡㓖㗉㢰㮿㯇㳼㻫㿫䋔䕗䖩䦘䧗䩛䫁䫾䭮痺蘗㚕䌘㯅䮠
 bian 便边邊编編变變遍辨扁辩辯贬貶鞭変匾煸卞邉釆辫辮弁徧汴笾籩砭苄缏緶褊窆閞鳊鯿辺髟抃蝙忭臱鞕昪艑萹碥箯覍汳揙辧牑鯾惼獱峅甂藊辡炞鍽疺覵䡢稨鴘猵糄諚玣鶣頨㳒㲢㺹䁵㝸㴜䪻㳎䒪䛒䟍㦚㣐㭓㵷䉸䐔㺕
 biao 表錶标標飙飆飚飈裱彪镖鏢婊膘杓骠驃脿鳔鰾摽镳鑣颩飑颮滮猋藨俵骉驫熛麃幖褾瘭飇僄穮儦檦諘飊瀌膔颷蔈淲篻爂墂臕謤贆磦㶾㟽㯹䅺䔸䙳㠒㯱㧼䞄䁃䁭䮽
@@ -31,8 +31,8 @@ cai 才纔采寀採埰菜踩猜财財蔡彩綵裁材睬偲啋棌婇扐倸跴溨
 can 参參残殘餐惨慘蚕蠶叄灿燦惭慚粲璨骖驂喰孱慙叅飡黪黲儏憯篸縿摲朁囋嬠穇嘇蠺湌嵾澯嬱鏒蝅㛑謲薒爘䱗㕘䅟䙁㨻㱚㺑䏼䗞䝳䳻䉔㥇䍼䑶䗝䘉䣟䫮㘔㜗㦧㿊䬫㣓㻮㽩䛹㜞
 cang 仓藏倉苍蒼舱艙沧滄蔵伧傖鑶仺瑲獊鸧鶬玱欌凔匨嵢濸賶篬螥㵴䅮㶓䢢
 cao 草操曹槽糙艹漕嘈屮曺肏艚懆嶆愺螬慒慅鐰撡蓸襙鼜鄵褿傮騲鏪㯥䒑㜖䐬艸䄚䒃㿷䎭䏆
-ce 侧側测測策册冊厕厠廁恻惻幘夨箣筴敇憡筞畟嫧拺萴蓛荝墄笧萗粣簎䇲㨲㥽䔴㩍䈟䊂䜺
-cen 涔岑梣汵笒埁㞥䅾䯔㞤䤁䨙㻸䃡䲋䫈
+ce 册侧側测測策冊厕厠廁恻惻幘夨箣筴敇憡筞畟嫧拺萴蓛荝墄笧萗粣簎䇲㨲㥽䔴㩍䈟䊂䜺
+cen 岑涔梣汵笒埁㞥䅾䯔㞤䤁䨙㻸䃡䲋䫈
 ceng 曾层層蹭噌繒曽嶒鄫橧驓竲㬝䁬䉕㣒
 cha 差茶查査插叉察剎搽釵岔茬姹奼杈檫诧楂詫槎苴镲鑔锸鍤汊碴挿嚓衩扱猹馇侘餷偛仛嵖鎈嗏摖荖扠臿揷蹅詧垞捈靫疀艖秅肞褨芆梌紁銟岎訍䕓䡨䲦䁟㤞㲼㡸㪯䤩䶪䂳㜘㢉㢒㫅䆛䑘䰈㛳㢎㣾䊬䒲䓭䟕㳗䠡䅊㮑㛼䛽䑡
 chai 拆柴钗豺侪儕齜瘥虿蠆犲茝祡喍袃囆㾹㑪䓱䘍䐤㦅㼮
@@ -40,13 +40,13 @@ chan 产產産鉆缠纏禅禪掺摻铲剷鏟蝉蟬馋饞搀攙颤顫澶阐闡谄
 chang 常长長唱尝嘗嚐场場厂廠肠腸畅暢倡昌偿償敞怅悵苌萇娼仩伥倀阊閶昶猖鲳鯧鬯嫦氅瑒徜惝菖仧瑺韔鲿鱨鏛玚甞畼厰塲兏镸晿膓鋹锠琩誯椙錩淐焻鋿闛鼚瓺裮僘䠀龦䠆㫤䯴㦂㙊䗅䕋䩨䅛䗉䮖
 chao 超朝炒潮抄吵巢嘲焯钞鈔绰綽晁巣仯耖趠謿趫怊槱麨摷仦鼂劋弨鼌煼訬樔窼罺眧巐轈漅粆鄛觘牊欩窲焣䜈㷅䲃䄻䫿勦䬤䰫㶤䎐䏚䫸䳂䮓䟁
 che 车車撤扯彻徹掣澈坼砗硨偖呫摰伡俥勶詀唓迠撦硩瞮謵蛼聅奲莗烲爡焎頙烢喢揊㤴䜠㔭䋲䞣㬚㿭㒤䰩䑲䚢䛸㨋㵔㥉㯙㱌㵃㾝䁤䒆䧪䨁㳧䊞
-chen 陈陳趁沉晨尘塵衬襯臣辰橙嗔宸抻谌諶琛郴忱瞋鍖谶碜磣龀齔縝榇櫬儭偁蔯硶瘨瘎綝疢敶棽曟嚫訦趂諃儬煁軙謓爯茞莀踸捵霃侲跈桭趻墋齓愖鷐揨敐螴樄莐薼迧栕賝鈂麎贂夦䢅㧱䐜㴴㕴㲀㽸䜟䞋㥲䑣䒞䢈䠳㫳䆣䚘䟢䢻䣅䤟䫖䀼䏹
+chen 沉陈陳趁晨尘塵衬襯臣辰橙嗔宸抻谌諶琛郴忱瞋鍖谶碜磣龀齔縝榇櫬儭偁蔯硶瘨瘎綝疢敶棽曟嚫訦趂諃儬煁軙謓爯茞莀踸捵霃侲跈桭趻墋齓愖鷐揨敐螴樄莐薼迧栕賝鈂麎贂夦䢅㧱䐜㴴㕴㲀㽸䜟䞋㥲䑣䒞䢈䠳㫳䆣䚘䟢䢻䣅䤟䫖䀼䏹
 cheng 成称稱呈乘搶凈淨城承撑撐程诚誠逞秤澄惩懲乗骋騁晟丞鐺蛏蟶鐣枨铖棖鋮柽檉瞠塍酲埕湞裎赪赬郕宬琤珵澂氶挰畻悜牚荿娍摚絾頳珹溗棦脀橕浧脭憕掁泟虰椉堘撜饓僜罉憆筬洆徎緽峸騬侱浾朾埩碀阷靗塖鯎鏿踜矃窚檙竀鏳瀓庱橖睈㨃㞼㲂䄇䇸䞓㼩䆵䧕䮪㓌䟫䁎䆑䆸䔲䗊䫆㐼䀕鎗㛵䕝䗀䟓
 chi 吃喫持迟遲斥池赤痴癡驰馳齿齒尺敕耻恥翅呎叱弛炽熾嗤傺饬飭螭豉鶒侈笞鸱鴟魑褫瘛誃勅遅啻媸哧茌蚩坻彳呬歯摛黐墀勑跢竾湁眵柢絺篪胣奓眙赿箎彲趍叺柅扡踟噭彨瘈饎迡抶岻迣卶樆痓鶗蚳歭誀粚拸軧卙漦荎鍉遟捇鳷菭侙伬遫趐脪徲鉓鵄慗慸邌狋憏汖瓻翄腟跮懘呹誺杘趩蝭謻胵恜攡灻痸騺翨垑銐袲裭殦沶妛瞝俿鵣鶙貾箈雴硳噄齝翤肔訵筂謘欼鉹蚇烾袳麶鷘耛㓾䠠䳵㡿䑛䏧䜵㢮㞿䤲䰡䀸㙜㞴㮛䈕㟂㶴䊼䜻䟷䧝䄜㥡㰞㺈䔟䙙䛂䜄䞾䪧䮈䶔䶵㘜㢁㢋㱀㳏㒆㓼㔑㽚䇼䮻㷰㩽㑜䇪䜉䬜
 chong 冲沖衝充虫蟲宠寵崇舂铳銃憧喠翀茺偅忡艟崈緟祌爞摏珫憃痋漴褈蹱埫蹖罿蝩浺揰㳘徸嘃隀䖝䡴㹐䘪䝑㮔㤝䂌㓽䌬䳯㧤䆹䆔
 chou 抽愁丑醜臭筹籌瞅仇酬稠俦儔鈕绸綢畴疇雠讎惆鮋瘳紬踌躊畤帱幬讐搊檮杽掫偢梼椆篘矁诪詶䌷裯犨丒菗盩雦栦酧侴犫醔牰醻雔殠臰吜婤魗怞薵眣燽絒皗鮘嬦懤嚋跾遚㤽䱔㩅㨨㨶㵞䇺㿒㾄䀺㐜㛶㦞㿧䊭䌧䓓䲖䪮䔏㮲䛣
 chu 出齣处處除初楚触觸储儲锄鋤杵厨廚詘畜褚矗岀雏雛黜绌絀亍刍芻础礎楮怵橱櫥樗滁処搐憷俶禇鉏躇嘼濋炪貙傗滀柷蹰臅躕蜍蒭蕏豖摢斶諔儊敊鄐摴歜鸀跦閦踀珿菆耡篨犓鶵椘媰藸琡蒢趎幮慉齼耝檚豠蓫埱櫉齭竐拀櫖璴欪蟵竌泏榋蠩䝙橻䜴䖏㕑㡡㤘䟣䅳䠧䶥䢺㐥㕏㼥䠂㹼䙘㔘㤕䙕䧁㾻䐢㛀㶆䎝䎤䟞䊰㗰㙇䦌䮞䇍䎌㯉㗙䅷㾥䐍
-chua 欻歘㔍䵵䫄
+# chua 欻歘㔍䵵䫄
 chuai 踹揣搋腄膗膪䦷䦟㪓㪜䦤
 chuan 传傳穿船串川喘伝椽氚遄钏釧舛圌舡瑏巛荈舩踳剶篅膞猭汌輲賗歂玔僢堾椯鶨暷㼷㯌䁣
 chuang 创創闯闖床牀窗疮瘡窓怆愴橦牎摐牕窻刅剏摤刱噇剙朣磢漺傸䆫䭚㵂䃥䇬䄝㡖䚒䎫㼽䚎
@@ -67,10 +67,10 @@ dan 但单單彈淡蛋丹担擔胆膽氮诞誕旦澹啖贍耽掸撣儋惮憚弾
 dang 当噹當挡擋党黨荡盪蕩档檔谠讜裆襠宕铛砀碭凼珰璫氹垱壋菪潒灙簹筜偒欓愓簜攩璗雼逿趤礑崵譡瓽蘯圵艡瞊嵣澢蟷婸闣䣊䑗㜭䣣㼕儅䦒㽆
 dao 到道倒刀导導岛島盗盜捣搗擣稻悼蹈祷禱叨刂菿氘檤稲纛捯忉箌燾噵椡瓙嶋舠翿禂衟衜魛釖鱽翢嶌艔虭絩槝朷壔隝軇嘄陦隯嶹螩㠀㧅﨩䆃䌦䲽䧂
 de 的得德旳嘚锝鍀徳悳淂恴惪脦棏㥁䙸㤫㯖䙷㥀
-den 扥扽㩐
+# den 扥扽㩐
 deng 等登灯燈邓蹬鄧瞪凳镫鐙簦磴噔朩戥豋嬁櫈嶝墱隥艠竳璒覴㲪䙞㔁䒭䠬䮴䳾
 di 第地低底滴抵递遞敌敵帝弟堤啲狄笛涤滌哋睇嫡迪谛諦蒂氐嘀缔締娣菂骶邸镝鏑荻碲砥籴糴诋詆觌覿羝厎偙禘秪袛墬遆諟魡玓頔鞮樀埅楴埞啇觝蓧仾磾渧蔕篴苖杕掋趆珶蹢逓疐浟俤祶髢蝃彽茋踶摕揥媂枑苐阺螮鬄坔菧藋扚儥聜嵽墆靮埊呧腣廸馰拞梊焍奃嶳嚁甋枤豴僀碮梑怟蔐坘眱鸐鉪蔋藡弤唙㡳鯳䗖牴䑯䟡䱱㫝䣌䑭䩚䐭墑隄㹍䨤䱃㢩㼵㓳䃅䐎㣙㰅䊮䨀䮤䯼䴞䵠㪆㭽䂡䍕䢑䀿䏑䞶䩘䶍䪘䏄䧑
-dia 嗲
+# dia 嗲
 dian 点點电電店丶垫墊殿碘颠顛典滇掂奠踮癫癲巅巔惦淀澱簟佃甸靛鈿嚸玷奌槙癜坫槇攧跕阽顚猠腍敟痁傎壂厧敁蹎扂磹窴蒧齻巓橝橂驔琔嵮蜔婝蕇婰椣痶㸃㒹㵤䍄䓦㞟㓠㝪䧃䩇㥆㶘㼭
 diao 调調掉鳥吊弔钓釣雕彫琱鵰叼刁凋貂屌碉鲷鯛铫軺銚鋽伄铞窎銱窵誂瘹瞗盄鑃弴汈雿淍蛁竨鼦奝錭刟嬥簓鮉矵訋鳭鈟鵃䉆䵲䔙㣿㹦䂪䠼㹿㒛䂽㢯䯾㚋䂏䘟
 die 跌叠疊爹蝶迭碟牒谍鰨諜軼鲽鰈堞喋咥耋蹀垤畳瓞楪眰曡绖昳絰崼泆疂戜幉氎恎挃啑臷褋蜨惵殜艓挕槢柣耊詄峌鞢疉褺牃胅怢苵趃镻螲鴩㬪㲲䙝㭯㷸䘭䩞㥈㩸㩹㫼㲳䴑㑙㦶㻡䏲䞇䞕䠟䮢䲀䳀㗧䫕䪓
@@ -86,7 +86,7 @@ duo 多夺奪躲堕墮馱剁朵跺踱舵垛掇惰哆隳铎鐸咄柁裰哚缍亸
 e 恶丨惡噁额額饿餓俄鹅鵝呃鄂莪讹訛厄扼遏蛾悪锷鍔涐谔諤鳄鰐鱷屙娥萼愕颚顎迗鹗鶚腭齶峩峨阏閼锇轭鋨軛婀痾苊噩垩皒堊誐娿囮妸歺佮珴頞譌閜崿咢睋敋搕吪岋戹姶搤偔鵞頋蕚堮遌豟齾峉卾鈪頟騀輵呝詻枙讍蚅歞軶蘁廅妿湂鰪僫遻鈋磀蝁砈櫮砐囐覨匎搹擜魤琧硆礘餩魥砨齃鵈㩵鑩㔩䳘㱦㼰䄉䕏䳗㗁㧖㮙䛩㼂䖸㕎㖾㠋㦍㷈䑥㟯䩹䱮䔾䝈䞩䣞䳬㫊㣂㼢㓵㟧䆓䑪䓊䛖䫷阨䚰㧴㛕䋪
 ei 诶誒
 en 恩嗯摁蒽奀峎煾䬶䭡䭓䅰䊐
-eng 鞥
+# eng 鞥
 er 而二耳儿兒尔爾贰貳饵餌迩邇侕尓珥铒鉺洏児尒弐洱鲕鸸鮞鴯粫佴毦唲弍厼栭貮薾咡輀耏陑刵胹荋樲聏栮腝梕轜杒趰袻髵峏駬隭衈髶陾㚷䎠㖇㜨㧫㮕䋩䎟䮘㢽䋙䌺㒃㛅䎶䏪䣵
 fa 发發髮法罚罰伐乏阀閥筏発髪鍅垡珐琺砝彂笩沷灋蕟栰浌橃姂瞂醱酦佱罸峜冹醗傠藅㕹㘺䒥䇅䣹䂲㛲
 fan 反犯翻凡返饭飯泛氾汎范範烦煩繁番楓钒釩贩販帆樊梵藩幡蕃鐢畈矾礬燔仮凣璠蘩繙払旛墦柉渢畨蹯忛飜勫婏訉膰凢轓颿籵笵旙笲嬎瀿緐薠橎杋棥飰鐇蠜犿軓憣瀪奿嬏滼鱕鷭舤舧羳盕匥㠶䋣䒦䀟㕨㽹䀀䌓䪤䭵㴀䉊㛯㸋䉒䋦䮳㝃㤆㼝䐪䟪䊩䡊䪛䫶㶗䣲
@@ -214,7 +214,7 @@ miu 缪谬謬
 mo 末莫摸磨抹魔墨膜模默摩銆殁歿陌摹沫馍饃漠谟謨莈蓦镆鏌茉嚩黙寞貘蘑尛嫫秣貊瘼嗼耱獏粖劘妺眽帓懡靺藦纆枺橅髍謩昩嚤蛨瞐瞙眿歾嫼湐礳艒暯譕塻貃擵皌絈縸砞帞圽爅唜魹蟔饝魩㱳䃺㹮䱅䯢㷵䁼䁿䒬䬴䳮䴲䉑糢䩋㷬䏞䘃䜆䮬
 mou 某谋謀牟眸侔鍪哞厶蛑踎洠麰桙劺鞪恈鴾蟱敄䥐㭌䏬䗋䍒
 mu 木墓目母亩畝暮慕沐幕牧穆募钼鉬牡睦姆拇鶩幙踇苜仫牳霂雮坶畞凩畮毪莯墲慔鉧畆炑砪氁楘畒朰樢峔蚞胟狇䀲䱯䥈㣎䑵㜈㒇㾇䊾䧔㡔
-n 㕶
+# n 㕶
 na 那拿哪呐吶纳納钠鈉娜捺拏雫衲嗱镎鎿肭挐乸淰蒘抐魶蒳靹誽妠笝軜搻豽蹃訤詉㴸䱹䅞㨥䛔䫱䀑䇣䇱䈫䎎䖓䖧䟜㮏䋈㪎㵊䋾
 nai 乃耐奶奈氖萘鼐艿錼柰褦螚妳倷廼嬭渿搱孻掜釢摨熋疓腉㮈㲡䘅㾍迺䍲䯮
 nan 南男难難楠喃囡囝侽赧腩柟湳娚蝻莮煵枏枬抩婻戁揇萳暔諵遖畘䔳䕼䔜䩅㽖䛁䁪㓓䶲㫱䣸
@@ -233,10 +233,10 @@ nin 您拰脌囜䛘䋻㤛䚾
 ning 宁寧甯凝拧擰柠檸苧佞狞獰咛嚀泞濘寜聍聹儜寕侫寗寍鑏嬣倿薴鬤橣鸋鬡澝㲰䭢䗿㝕㣷㿦䔭
 niu 牛扭妞纽紐钮狃忸杻牜孧汼炄沑靵莥㺲䀔䒜䏔䋴㖻
 nong 弄浓濃农農侬儂脓膿秾穠哝噥醲襛燶癑挊繷禯辳蕽檂欁齈㶶䢉䵜
-nou 鐞耨嬬獳檽槈搙譳鎒羺䨲㝹䘫䰭䅶
+# nou 鐞耨嬬獳檽槈搙譳鎒羺䨲㝹䘫䰭䅶
 nu 怒奴努弩驽駑孥胬砮傉笯伮㣽㚢䢞㐐
 nuan 暖煖湪奻煗餪渜㬉䎡䙇
-nun 黁
+# nun 黁
 nuo 挪诺諾糯傩儺懦喏鍩搦锘耎糥梛掿愞糑懧稬穤逽橠榒㔮㑚㛂㐡䚥㰙㡅
 nv 女钕釹衄恧籹衂䶊㵖䖡䘐䚼
 nve 虐疟瘧硸䖈䨋䖋
@@ -283,7 +283,7 @@ ri 日鈤馹驲囸衵氜䒤
 rong 容融荣榮溶熔戎蓉绒絨茸榕冗镕鎔嵘嶸縟肜栄狨傛瑢蝾蠑槦嫆嬫茙宂媶駥氄嵤烿螎搈傇曧褣羢穃㲨毧爃榵縙瀜穁㝐㲓㺎㲝䇯䡥㘇㼸䈶䠜㣑㭜䇀䘬䡆䤊䩸䢇䄾
 rou 肉揉柔鍒糅蹂鞣宍脜禸鰇粈輮煣瑈葇媃楺渘瓇腬鑐鶔韖騥㽥䰆䐓䧷
 ru 如入汝乳儒辱濡茹褥侞铷銣洳蠕襦孺缛溽蓐繻薷嚅媷嗕帤筎曘扖偄擩颥鴽蝡顬袽燸杁鱬鴑鄏醹渪鳰桇蕠嶿肗䰰㐈㨎㹘㦺
-rua 挼
+# rua 挼
 ruan 软軟阮朊壖緛堧輭撋瓀碝瑌礝㽭㐾䪭䓴䞂
 rui 瑞锐銳蕊睿綏芮蚋苼枘蕤叡惢汭緌蘂笍桵蜹蕋橤壡甤繠蘃䬐䓲㲊䅑䌼㮃㛱㪫㢻
 run 润潤闰閏閠膶瞤橍㠈䦞

+ 104 - 0
original/references/tui.txt

@@ -0,0 +1,104 @@
+┌─┬─┐
+│ │ │
+├─┼─┤
+│ │ │
+└─┴─┘
+
+─ ━ │ ┃ ┄ ┅ ┆ ┇ ┈ ┉ ┊ ┋
+┌ ┍ ┎ ┏ ┐ ┑ ┒ ┓
+└ ┕ ┖ ┗ ┘ ┙ ┚ ┛
+├ ┝ ┞ ┟ ┠ ┡ ┢ ┣ ┤ ┥ ┦ ┧ ┨ ┩ ┪ ┫
+┬ ┭ ┮ ┯ ┰ ┱ ┲ ┳ ┴ ┵ ┶ ┷ ┸ ┹ ┺ ┻
+┼ ┽ ┾ ┿ ╀ ╁ ╂ ╃ ╄ ╅ ╆ ╇ ╈ ╉ ╊ ╋
+╌ ╍ ╎ ╏
+═ ║ ╒ ╓ ╔ ╕ ╖ ╗ ╘ ╙ ╚ ╛ ╜ ╝ ╞ ╟
+╠ ╡ ╢ ╣ ╤ ╥ ╦ ╧ ╨ ╩ ╪ ╫ ╬
+╭ ╮ ╯ ╰
+╱ ╲ ╳ ╴ ╵ ╶ ╷ ╸ ╹ ╺ ╻ ╼ ╽ ╾ ╿
+▀ ▁ ▂ ▃ ▄ ▅ ▆ ▇ █ ▉ ▊ ▋ ▌ ▍ ▎ ▏
+▐ ░ ▒ ▓ ▔ ▕
+■ □ ▢ ▣ ▤ ▥ ▦ ▧ ▨ ▩ ▪ ▫ ▬ ▭ ▮ ▯
+▲ △ ▴ ▵ ▶ ▷ ▸ ▹ ► ▻ ▼ ▽ ▾ ▿ ◀ ◁ ◂ ◃ ◄ ◅
+◆ ◇ ◈ ◉ ◊ ○ ◌ ◍ ◎ ● ◐ ◑ ◒ ◒ ◓ ◔ ◕ ◖ ◗ ◘ ◙ ◚ ◛ ◜ ◝ ◞ ◟
+◠ ◡ ◢ ◣ ◤ ◥ ◦ ◧ ◨ ◩ ◪ ◫ ◬ ◭ ◮ ◯
+◰ ◱ ◲ ◳ ◴ ◵ ◶ ◷ ◸ ◹ ◺ ◻ ◼ ◽ ◾ ◿
+☀ ☁ ☂ ☃ ☄ ★ ☆ ☇ ☈ ☉ ☊ ☋ ☌ ☍ ☎ ☏
+☐ ☑ ☒ ☓ ☔ ☕ ☖ ☗ ☘ ☙ ☚ ☛ ☜ ☝ ☞ ☟
+☠ ☡ ☢ ☣ ☤ ☥ ☦ ☧ ☨ ☩ ☪ ☫ ☬ ☭ ☮ ☯
+☰ ☱ ☲ ☲ ☳ ☴ ☵ ☶ ☷ ☸ ☹ ☺ ☻ ☼ ☽ ☾ ☿
+♀ ♁ ♂ ♃ ♄ ♅ ♆ ♇ ♈ ♉ ♊ ♋ ♌ ♍ ♎ ♏
+♐ ♑ ♒ ♓ ♔ ♕ ♖ ♗ ♘ ♙ ♚ ♛ ♜ ♝ ♞ ♟
+♠ ♡ ♢ ♣ ♤ ♥ ♦ ♧ ♨ ♩ ♪ ♫ ♬ ♭ ♮ ♯
+⚀ ⚁ ⚂ ⚃ ⚄ ⚅ ⚆ ⚇ ⚈ ⚉ ⚊ ⚋ ⚌ ⚍ ⚎ ⚏
+⚐ ⚑ ⚒ ⚓ ⚔ ⚕ ⚖ ⚗ ⚘ ⚙ ⚚ ⚛ ⚜ ⚝ ⚞ ⚟
+⚠ ⚡ ⚢ ⚣ ⚤ ⚥ ⚦ ⚧ ⚨ ⚩ ⚪ ⚫ ⚬ ⚭ ⚮ ⚯
+⚰ ⚱ ⚲ ⚳ ⚴ ⚵ ⚶ ⚷ ⚸ ⚹ ⚺ ⚻ ⚼ ⚽ ⚾ ⚿
+⛀ ⛁ ⛂ ⛃ ⛄ ⛅ ⛆ ⛇ ⛈ ⛉ ⛊ ⛋ ⛌ ⛍ ⛎ ⛏
+⛐ ⛑ ⛒ ⛓ ⛔ ⛕ ⛖ ⛗ ⛘ ⛙ ⛚ ⛛ ⛜ ⛝ ⛞ ⛟
+⛠ ⛡ ⛢ ⛣ ⛤ ⛥ ⛦ ⛧ ⛨ ⛩ ⛪ ⛫ ⛬ ⛭ ⛮ ⛯
+⛰ ⛱ ⛲ ⛳ ⛴ ⛵ ⛶ ⛷ ⛸ ⛹ ⛺ ⛻ ⛼ ⛽ ⛾ ⛿
+✁ ✂ ✃ ✄ ✅ ✆ ✇ ✈ ✉ ✊ ✋ ✌ ✍ ✎ ✏
+✐ ✑ ✒ ✓ ✔ ✕ ✖ ✗ ✘ ✙ ✚ ✛ ✜ ✝ ✞ ✟
+✠ ✡ ✢ ✣ ✤ ✥ ✦ ✧ ✩ ✪ ✫ ✬ ✭ ✮ ✯ ✰
+✱ ✲ ✳ ✴ ✵ ✶ ✷ ✸ ✹ ✺ ✻ ✼ ✽ ✾ ✿ ❀
+❁ ❂ ❃ ❄ ❅ ❆ ❇ ❈ ❉ ❊ ❋ ❌ ❍ ❎ ❏
+❐ ❑ ❒ ❓ ❔ ❕ ❖ ❗ ❘ ❙ ❚ ❛ ❜ ❝ ❞ ❟
+❠ ❡ ❢ ❣ ❤ ❥ ❦ ❧ ❨ ❩ ❪ ❫ ❬ ❭ ❮ ❯
+❰ ❱ ❲ ❳ ❴ ❵ ❶ ❷ ❸ ❹ ❺ ❻ ❼ ❽ ❾ ❿
+➀ ➁ ➂ ➃ ➄ ➅ ➆ ➇ ➈ ➉ ➊ ➋ ➌ ➍ ➎ ➏
+➐ ➑ ➒ ➓ ➔ ➕ ➖ ➗ ➘ ➙ ➚ ➛ ➜ ➝ ➞ ➟
+➠ ➡ ➢ ➣ ➤ ➥ ➦ ➧ ➨ ➩ ➪ ➫ ➬ ➭ ➮ ➯
+➰ ➱ ➲ ➳ ➴ ➵ ➶ ➷ ➸ ➹ ➺ ➻ ➼ ➽ ➾ ➿
+⟀ ⟁ ⟂ ⟃ ⟄ ⟅ ⟆ ⟇ ⟈ ⟉ ⟊ ⟋ ⟌ ⟍ ⟎ ⟏
+⟐ ⟑ ⟒ ⟓ ⟔ ⟕ ⟖ ⟗ ⟘ ⟙ ⟚ ⟛ ⟜ ⟝ ⟞ ⟟
+⟠ ⟡ ⟢ ⟣ ⟤ ⟥ ⟦ ⟧ ⟨ ⟩ ⟪ ⟫ ⟬ ⟭ ⟮ ⟯
+⟰ ⟱ ⟲ ⟳ ⟴ ⟵ ⟶ ⟷ ⟸ ⟹ ⟺ ⟻ ⟼ ⟽ ⟾ ⟿
+⤀ ⤁ ⤂ ⤃ ⤄ ⤅ ⤆ ⤇ ⤈ ⤉ ⤊ ⤋ ⤌ ⤍ ⤎ ⤏
+⤐ ⤑ ⤒ ⤓ ⤔ ⤕ ⤖ ⤗ ⤘ ⤙ ⤚ ⤛ ⤜ ⤝ ⤞ ⤟
+⤠ ⤡ ⤢ ⤣ ⤤ ⤥ ⤦ ⤧ ⤨ ⤩ ⤪ ⤫ ⤬ ⤭ ⤮ ⤯
+⤰ ⤱ ⤲ ⤳ ⤴ ⤵ ⤶ ⤷ ⤸ ⤹ ⤺ ⤻ ⤼ ⤽ ⤾ ⤿
+⥀ ⥁ ⥂ ⥃ ⥄ ⥅ ⥆ ⥇ ⥈ ⥉ ⥊ ⥋ ⥌ ⥍ ⥎ ⥏
+⥐ ⥑ ⥒ ⥓ ⥔ ⥕ ⥖ ⥗ ⥘ ⥙ ⥚ ⥛ ⥜ ⥝ ⥞ ⥟
+⥠ ⥡ ⥢ ⥣ ⥤ ⥥ ⥦ ⥧ ⥨ ⥩ ⥪ ⥫ ⥬ ⥭ ⥮ ⥯
+⥰ ⥱ ⥲ ⥳ ⥴ ⥵ ⥶ ⥷ ⥸ ⥹ ⥺ ⥻ ⥼ ⥽ ⥾ ⥿
+⦀ ⦁ ⦂ ⦃ ⦄ ⦅ ⦆ ⦇ ⦈ ⦉ ⦊ ⦋ ⦌ ⦍ ⦎ ⦏
+⦐ ⦑ ⦒ ⦓ ⦔ ⦕ ⦖ ⦗ ⦘ ⦙ ⦚ ⦛ ⦜ ⦝ ⦞ ⦟
+⦠ ⦡ ⦢ ⦣ ⦤ ⦥ ⦦ ⦧ ⦨ ⦩ ⦪ ⦫ ⦬ ⦭ ⦮ ⦯
+⦰ ⦱ ⦲ ⦳ ⦴ ⦵ ⦶ ⦷ ⦸ ⦹ ⦺ ⦻ ⦼ ⦽ ⦾ ⦿
+⧀ ⧁ ⧂ ⧃ ⧄ ⧅ ⧆ ⧇ ⧈ ⧉ ⧊ ⧋ ⧌ ⧍ ⧎ ⧏
+⧐ ⧑ ⧒ ⧓ ⧔ ⧖ ⧗ ⧘ ⧙ ⧚ ⧛ ⧜ ⧝ ⧞ ⧟
+⧠ ⧡ ⧢ ⧣ ⧤ ⧥ ⧦ ⧧ ⧨ ⧩ ⧪ ⧫ ⧬ ⧭ ⧮ ⧯
+⧰ ⧱ ⧲ ⧳ ⧴ ⧵ ⧶ ⧷ ⧸ ⧹ ⧺ ⧻ ⧼ ⧽ ⧾ ⧿
+⨀ ⨁ ⨂ ⨃ ⨄ ⨅ ⨆ ⨇ ⨈ ⨉ ⨊ ⨋ ⨌ ⨍ ⨎ ⨏
+⨐ ⨑ ⨒ ⨓ ⨔ ⨕ ⨖ ⨗ ⨘ ⨙ ⨚ ⨛ ⨜ ⨝ ⨞ ⨟
+⨠ ⨡ ⨢ ⨣ ⨤ ⨥ ⨦ ⨧ ⨨ ⨩ ⨪ ⨫ ⨬ ⨭ ⨮ ⨯
+⨰ ⨱ ⨲ ⨳ ⨴ ⨵ ⨶ ⨷ ⨸ ⨹ ⨺ ⨻ ⨼ ⨽ ⨾ ⨿
+⩀ ⩁ ⩂ ⩃ ⩄ ⩄ ⩅ ⩆ ⩇ ⩈ ⩉ ⩊ ⩋ ⩌ ⩍ ⩎
+⩏ ⩐ ⩑ ⩒ ⩓ ⩔ ⩕ ⩖ ⩗ ⩘ ⩙ ⩚ ⩛ ⩜ ⩝ ⩞
+⩟ ⩠ ⩡ ⩢ ⩣ ⩤ ⩥ ⩦ ⩧ ⩨ ⩩ ⩪ ⩫ ⩬ ⩭ ⩮
+⩯ ⩰ ⩱ ⩲ ⩳ ⩴ ⩵ ⩶ ⩷ ⩸ ⩹ ⩺ ⩻ ⩼ ⩽ ⩾
+⩿ ⪀ ⪁ ⪂ ⪃ ⪄ ⪅ ⪆ ⪇ ⪈ ⪉ ⪊ ⪋ ⪌ ⪍ ⪎
+⪏ ⪐ ⪑ ⪒ ⪓ ⪔ ⪕ ⪖ ⪗ ⪘ ⪙ ⪚ ⪛ ⪜ ⪝ ⪞
+⪟ ⪠ ⪡ ⪢ ⪣ ⪤ ⪥ ⪦ ⪧ ⪨ ⪩ ⪪ ⪫ ⪬ ⪭ ⪮
+⪯ ⪰ ⪱ ⪲ ⪳ ⪴ ⪵ ⪶ ⪷ ⪸ ⪹ ⪺ ⪻ ⪼ ⪽ ⪾
+⪿ ⫀ ⫁ ⫂ ⫃ ⫄ ⫅ ⫆ ⫇ ⫈ ⫈ ⫉ ⫊ ⫋ ⫌ ⫍
+⫎ ⫏ ⫐ ⫑ ⫒ ⫓ ⫔ ⫕ ⫖ ⫗ ⫘ ⫙ ⫚ ⫛ ⫝̸ ⫝
+⫞ ⫟ ⫠ ⫠ ⫡ ⫢ ⫣ ⫤ ⫥ ⫦ ⫧ ⫨ ⫩ ⫪ ⫫ ⫬
+⫭ ⫮ ⫯ ⫰ ⫱ ⫲ ⫳ ⫴ ⫵ ⫶ ⫷ ⫸ ⫹ ⫺ ⫻ ⫼
+⫽ ⫾ ⫿ ⬀ ⬁ ⬂ ⬃ ⬄ ⬅ ⬆ ⬇ ⬈ ⬉ ⬊ ⬋ ⬌
+⬍ ⬎ ⬏ ⬐ ⬑ ⬒ ⬓ ⬔ ⬕ ⬖ ⬗ ⬘ ⬙ ⬚ ⬛ ⬜
+⬝ ⬞ ⬟ ⬠ ⬡ ⬢ ⬣ ⬤ ⬥ ⬦ ⬧ ⬨ ⬩ ⬪ ⬫ ⬬
+⬭ ⬮ ⬯ ⬰ ⬱ ⬲ ⬳ ⬴ ⬵ ⬶ ⬷ ⬸ ⬹ ⬺ ⬻ ⬼
+⬽ ⬾ ⬿ ⭀ ⭁ ⭂ ⭃ ⭄ ⭅ ⭆ ⭇ ⭈ ⭉ ⭊ ⭋ ⭌
+⭍ ⭎ ⭏ ⭐ ⭑ ⭒ ⭓ ⭔ ⭕ ⭖ ⭗ ⭘ ⭙ ⭚ ⭛ ⭜
+⭝ ⭞ ⭟ ⭠ ⭡ ⭢ ⭣ ⭤ ⭥ ⭦ ⭧ ⭨ ⭩ ⭪ ⭫ ⭬
+⭭ ⭮ ⭯ ⭰ ⭱ ⭲ ⭳ ⭴ ⭵ ⭶ ⭷ ⭸ ⭹ ⭺ ⭻ ⭼
+⭽ ⭾ ⭿ ⮀ ⮁ ⮂ ⮃ ⮄ ⮅ ⮆ ⮇ ⮈ ⮉ ⮊ ⮋ ⮌
+⮍ ⮎ ⮏ ⮐ ⮑ ⮒ ⮓ ⮔ ⮕ ⮖ ⮗ ⮘ ⮙ ⮚ ⮛ ⮜
+⮝ ⮞ ⮟ ⮠ ⮡ ⮢ ⮣ ⮤ ⮥ ⮦ ⮧ ⮨ ⮩ ⮪ ⮫ ⮬
+⮭ ⮮ ⮯ ⮰ ⮱ ⮲ ⮳ ⮴ ⮵ ⮶ ⮷ ⮸ ⮹ ⮺ ⮻ ⮼
+⮽ ⮾ ⮿ ⯀ ⯁ ⯁ ⯂ ⯃ ⯄ ⯅ ⯆ ⯇ ⯈ ⯉ ⯊ ⯋
+⯌ ⯍ ⯎ ⯏ ⯐ ⯑ ⯒ ⯓ ⯔ ⯕ ⯖ ⯗ ⯘ ⯙ ⯚ ⯛
+⯜ ⯝ ⯞ ⯟ ⯠ ⯡ ⯢ ⯣ ⯤ ⯥ ⯦ ⯧ ⯨ ⯩ ⯪ ⯫
+⯬ ⯭ ⯮ ⯯ ⯰ ⯱ ⯲ ⯳ ⯴ ⯵ ⯶ ⯷ ⯸ ⯹ ⯺ ⯻
+⯼ ⯽ ⯾ ⯿

+ 71 - 0
scripts/analyze_font_encoding.py

@@ -0,0 +1,71 @@
+#!/usr/bin/env python3
+
+# 分析字体文件中的编码映射
+
+print("分析 ark-pixel-10px-monospaced-zh_cn.bdf 字体文件的编码...")
+
+# 查找所有中文字符的编码
+import subprocess
+result = subprocess.run(
+    ["grep", "-A", "1", "STARTCHAR u[456]", "temp/ark-pixel-10px-monospaced-zh_cn.bdf"],
+    capture_output=True,
+    text=True
+)
+
+lines = result.stdout.split('\n')
+encodings = []
+char_names = []
+
+for i, line in enumerate(lines):
+    if line.startswith('STARTCHAR'):
+        char_name = line.split()[1]
+        char_names.append(char_name)
+    elif line.startswith('ENCODING'):
+        encoding = int(line.split()[1])
+        encodings.append(encoding)
+
+print(f"找到 {len(encodings)} 个中文字符")
+print("\n前20个字符的编码映射:")
+for i in range(min(20, len(char_names))):
+    char_name = char_names[i]
+    encoding = encodings[i]
+    # 提取 Unicode 码位
+    if char_name.startswith('u'):
+        unicode_hex = char_name[1:].split('-')[0]
+        try:
+            unicode_code = int(unicode_hex, 16)
+            char = chr(unicode_code)
+            print(f"  {char_name}: Unicode={unicode_code} ({char}), ENCODING={encoding}")
+        except:
+            print(f"  {char_name}: Unicode={unicode_hex} (?), ENCODING={encoding}")
+
+# 检查是否有"啊"字
+a_unicode = 0x554a  # "啊"的 Unicode 码位
+print(f"\n查找'啊'字 (Unicode: {a_unicode}):")
+found = False
+for i, char_name in enumerate(char_names):
+    if char_name.startswith('u554a') or f"u{a_unicode:04x}" in char_name.lower():
+        print(f"  找到: {char_name}, ENCODING={encodings[i]}")
+        found = True
+
+if not found:
+    print("  字体文件中没有找到'啊'字")
+    
+    # 查找编码范围
+    print(f"\n编码范围分析:")
+    print(f"  最小编码: {min(encodings)}")
+    print(f"  最大编码: {max(encodings)}")
+    print(f"  编码数量: {len(encodings)}")
+    
+    # 查看是否有连续的编码
+    sorted_encodings = sorted(encodings)
+    gaps = []
+    for i in range(1, len(sorted_encodings)):
+        if sorted_encodings[i] - sorted_encodings[i-1] > 1:
+            gaps.append((sorted_encodings[i-1], sorted_encodings[i]))
+    
+    if gaps:
+        print(f"  编码不连续,有 {len(gaps)} 个间隙")
+        print(f"  前5个间隙: {gaps[:5]}")
+    else:
+        print("  编码是连续的")

+ 88 - 0
scripts/check_duplicate_chars.py

@@ -0,0 +1,88 @@
+#!/usr/bin/env python3
+# -*- coding: utf-8 -*-
+"""
+检查 other_characters 文件中每行是否存在重复字符
+"""
+
+def check_duplicate_characters(file_path):
+    """
+    检查文件中每行是否存在重复字符
+    
+    Args:
+        file_path: 文件路径
+    
+    Returns:
+        tuple: (是否有重复, 重复行的详细信息)
+    """
+    has_duplicates = False
+    duplicate_lines = []
+    
+    try:
+        with open(file_path, 'r', encoding='utf-8') as f:
+            lines = f.readlines()
+        
+        for line_num, line in enumerate(lines, 1):
+            line = line.strip()
+            if not line:
+                continue
+                
+            # 检查每个字符是否重复
+            char_count = {}
+            duplicates = []
+            
+            for char in line:
+                if char in char_count:
+                    char_count[char] += 1
+                else:
+                    char_count[char] = 1
+            
+            # 找出重复的字符
+            for char, count in char_count.items():
+                if count > 1:
+                    duplicates.append(f"'{char}' (出现 {count} 次)")
+            
+            if duplicates:
+                has_duplicates = True
+                duplicate_lines.append({
+                    'line_number': line_num,
+                    'line_content': line,
+                    'duplicates': duplicates
+                })
+    
+    except UnicodeDecodeError as e:
+        print(f"错误:无法读取文件 {file_path},编码问题:{e}")
+        return False, []
+    except FileNotFoundError:
+        print(f"错误:文件 {file_path} 不存在")
+        return False, []
+    
+    return has_duplicates, duplicate_lines
+
+def main():
+    file_path = 'original/references/other_characters'
+    
+    print("正在检查文件中的重复字符...")
+    print(f"文件路径:{file_path}")
+    print("-" * 50)
+    
+    has_duplicates, duplicate_lines = check_duplicate_characters(file_path)
+    
+    if not has_duplicates:
+        print("✅ 检查完成:没有发现重复字符")
+    else:
+        print(f"❌ 发现 {len(duplicate_lines)} 行存在重复字符:")
+        print()
+        
+        for line_info in duplicate_lines:
+            print(f"第 {line_info['line_number']} 行:")
+            print(f"  内容:{line_info['line_content']}")
+            print(f"  重复字符:{', '.join(line_info['duplicates'])}")
+            print()
+        
+        print("请手动修复这些重复字符后重新运行检查。")
+        return 1
+    
+    return 0
+
+if __name__ == "__main__":
+    exit(main())

+ 48 - 0
scripts/check_font_chars.py

@@ -0,0 +1,48 @@
+#!/usr/bin/env python3
+
+from bdflib import reader
+
+# 尝试用不同的方式读取 BDF 格式的字体文件
+try:
+    # 尝试文本模式读取
+    with open("temp/ark-pixel-10px-monospaced-zh_cn.bdf", "r", encoding="utf-8") as f:
+        font = reader.read_bdf(f)
+    print("使用文本模式 UTF-8 编码读取成功")
+except Exception as e:
+    print(f"文本模式读取失败: {e}")
+    try:
+        # 尝试二进制模式读取
+        with open("temp/ark-pixel-10px-monospaced-zh_cn.bdf", "rb") as f:
+            font = reader.read_bdf(f)
+        print("使用二进制模式读取成功")
+    except Exception as e2:
+        print(f"二进制模式读取也失败: {e2}")
+        exit(1)
+
+# 获取字体中的所有字符编码
+font_chars = {}
+for glyph in font.glyphs:  # 注意这里是属性不是方法
+    if hasattr(glyph, 'encoding'):
+        font_chars[glyph.encoding] = glyph
+
+print(f"字体文件总字符数: {len(font_chars)}")
+
+# 检查字体中中文字符的编码范围
+chinese_codes = [code for code in font_chars.keys() if 19968 <= code <= 40959]
+if chinese_codes:
+    print(f"字体中中文字符编码范围: {min(chinese_codes)} - {max(chinese_codes)}")
+    print(f"字体中中文字符总数: {len(chinese_codes)}")
+    print(f"前10个中文字符编码: {chinese_codes[:10]}")
+else:
+    print("字体中没有找到中文字符!")
+
+# 检查具体的"啊"字符
+a_code = ord('啊')
+print(f"\n检查字符'啊' (Unicode: {a_code}):")
+if a_code in font_chars:
+    print("  字体中包含'啊'字符")
+else:
+    print("  字体中不包含'啊'字符")
+    # 查看字体中编码相近的字符
+    nearby_codes = [code for code in font_chars.keys() if 21000 <= code <= 23000]
+    print(f"  字体中编码在21000-23000范围的字符: {nearby_codes[:10]}...")

+ 112 - 0
scripts/remove_duplicate_chars.py

@@ -0,0 +1,112 @@
+#!/usr/bin/env python3
+# -*- coding: utf-8 -*-
+"""
+自动去除 other_characters 文件中的重复字符,只保留重复字符中的第一个
+"""
+
+import os
+import shutil
+
+def remove_duplicate_characters(file_path):
+    """
+    去除文件中每行的重复字符,只保留第一个出现的字符
+    
+    Args:
+        file_path: 文件路径
+    
+    Returns:
+        tuple: (是否修改过, 修改的行数)
+    """
+    modified = False
+    modified_lines = 0
+    
+    try:
+        # 创建备份
+        # backup_path = file_path + '.backup'
+        # shutil.copy2(file_path, backup_path)
+        # print(f"已创建备份文件:{backup_path}")
+        
+        with open(file_path, 'r', encoding='utf-8') as f:
+            lines = f.readlines()
+        
+        new_lines = []
+        
+        for line_num, line in enumerate(lines, 1):
+            original_line = line.strip()
+            if not original_line:
+                new_lines.append(line)
+                continue
+                
+            # 去除重复字符,只保留第一个
+            seen_chars = set()
+            new_line_chars = []
+            
+            for char in original_line:
+                if char not in seen_chars:
+                    seen_chars.add(char)
+                    new_line_chars.append(char)
+                else:
+                    modified = True
+            
+            new_line = ''.join(new_line_chars) + '\n'
+            new_lines.append(new_line)
+            
+            if len(new_line_chars) != len(original_line):
+                modified_lines += 1
+                print(f"第 {line_num} 行:去除 {len(original_line) - len(new_line_chars)} 个重复字符")
+        
+        # 写入修改后的内容
+        with open(file_path, 'w', encoding='utf-8') as f:
+            f.writelines(new_lines)
+            
+    except UnicodeDecodeError as e:
+        print(f"错误:无法读取文件 {file_path},编码问题:{e}")
+        return False, 0
+    except FileNotFoundError:
+        print(f"错误:文件 {file_path} 不存在")
+        return False, 0
+    except Exception as e:
+        print(f"错误:处理文件时发生异常:{e}")
+        return False, 0
+    
+    return modified, modified_lines
+
+def main():
+    file_path = 'original/references/other_characters'
+    
+    print("正在去除文件中的重复字符...")
+    print(f"文件路径:{file_path}")
+    print("-" * 50)
+    
+    if not os.path.exists(file_path):
+        print(f"错误:文件 {file_path} 不存在")
+        return 1
+    
+    modified, modified_lines = remove_duplicate_characters(file_path)
+    
+    if not modified:
+        print("✅ 文件中没有需要去除的重复字符")
+    else:
+        print(f"✅ 已完成:修改了 {modified_lines} 行,去除了重复字符")
+        print()
+        print("验证修改结果...")
+        
+        # 运行检查脚本验证
+        import subprocess
+        try:
+            result = subprocess.run(['python3', 'scripts/check_duplicate_chars.py'], 
+                                  capture_output=True, text=True)
+            
+            if result.returncode == 0:
+                print("✅ 验证通过:文件中已无重复字符")
+            else:
+                print("❌ 验证失败:文件中仍有重复字符")
+                print(result.stdout)
+                return 1
+        except Exception as e:
+            print(f"警告:无法运行验证脚本:{e}")
+    
+    return 0
+
+if __name__ == "__main__":
+    exit(main())