JiangAI/README.md
2026-05-22 18:52:43 +08:00

49 lines
1.1 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 文章处理工具
将 HTML 工具迁移为 Python 桌面应用CustomTkinter GUI
## 功能
| 模式 | 说明 |
|------|------|
| 🧹 去AI排版 | 删除引号、星号、下划线等 AI 排版符号 |
| 「」直角引号版 | 将双引号转为直角引号「」,其余符号同样清理 |
两种模式共用处理流程:
1. 符号清理
2. 长句拆分(>15字 + 含全角逗号 → 在首个逗号处断句,递归)
3. 段落分组(每段 2~4 句,相邻段句数不同)
4. 标点统一(末句句号,其余逗号)
## 快速开始
```bash
pip install customtkinter
python main.py
```
## 打包为 EXEWindows
```bat
build_win.bat
```
打包完成后在 `dist/` 目录找到 `文章处理工具.exe`,双击即用,无需安装 Python。
## 打包为 AppmacOS / Linux
```bash
chmod +x build_unix.sh
./build_unix.sh
```
## 项目结构
```
article_tool/
├── main.py # 全部源码(逻辑 + GUI
├── requirements.txt # 依赖
├── build_win.bat # Windows 打包脚本
└── build_unix.sh # macOS / Linux 打包脚本
```