mirror of
https://github.com/Physton/sd-webui-prompt-all-in-one.git
synced 2026-12-03 18:42:25 +07:00
[PR #379] 内置高质量中文翻译词库(约43.8万条,五源合并,含括号转义适配,默认启用) #368
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Physton/sd-webui-prompt-all-in-one#368
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Physton/sd-webui-prompt-all-in-one/pull/379
Author: @a1035785655-tm
Created: 9/5/2026
Status: 🔄 Open
Base:
main← Head:bundled-zh-wordlist📝 Commits (5)
eb00c8cAdd merged Chinese translation wordlist (danbooru.zh_ALL.csv, ~438k entries)dd42818Bundle wordlist into tags/ with default enabled for install-and-go5cb665bFix invalid JSON escape in default tagCompleteFile.json917b7cfDocument bundled Chinese translation wordlist in README (CN/EN)8e857f9Reword README section for upstream context📊 Changes
9 files changed (+875695 additions, -2 deletions)
View changed files
📝
README.MD(+20 -0)📝
README_CN.MD(+20 -0)📝
storage/.gitignore(+2 -1)➕
storage/tagCompleteFile.json(+1 -0)📝
tags/.gitignore(+2 -1)➕
tags/danbooru.zh_ALL.csv(+437789 -0)➕
translations/.gitattributes(+1 -0)➕
translations/README.md(+71 -0)➕
translations/danbooru.zh_ALL.csv(+437789 -0)📄 Description
动机
原版的本地 CSV 翻译机制很好用,但常用的中文词表(danbooru.zh_CN_SFW 等)为机翻,存在两个问题:
amiya_\(act_ii\)_\(arknights\)),实测面板查翻译不剥转义符,词表里只有未转义键时,标签条下方显示不出中文。本 PR 内置一份多源合并优化后的词表并默认启用,安装即用。
改动内容(按提交)
translations/:词表副本 + 详细说明文档(来源、合并逻辑、格式、效果示例)tags/danbooru.zh_ALL.csv:运行时词表。tags/.gitignore增加例外规则将其纳入版本管理,tags/.gitattributes禁止行尾转换保证词表内容逐字节不变storage/tagCompleteFile.json:默认指向内置词表(storage/.gitignore增加例外),安装后无需设置即生效README.MD/README_CN.MD:新增功能说明章节词表说明
tag,中文,与现有本地 CSV 翻译机制(tagCompleteFile)完全兼容,后端/前端代码零改动\(\)转义变体行(约 10.4 万条),解决上述显示问题fujimiya_sumika_(isekai_ojisan)→ 藤宫澄夏 (异世界舅舅)amiya_(act_ii)_(arknights)→ 阿米娅 (升变阶段) (明日方舟)amiya_\(act_ii\)_\(arknights\)(转义形式)→ 阿米娅 (升变阶段) (明日方舟)详见 translations/README.md。
验证
csv.py解析定位词表 ✓ → 设置下拉列表可见 ✓ → 437,789 条全部加载、含转义变体抽查命中 ✓tags/与translations/)内容一致(git 同内容同 blob,实际只占一份约 17 MB 存储)需要您定夺的两点
storage/tagCompleteFile.json会让所有用户默认使用该中文词表。若希望默认不启用(由用户在 设置→翻译设置→本地CSV 中自行选择),可以只合并translations/部分,或我移除默认指向后重新提交。许可证说明
词表为多个第三方数据源的聚合产物,各来源许可不同(如 EhTagTranslation 数据库为 CC BY-NC-SA 4.0,含非商用条款)。是否适合随仓库分发请您确认;如有顾虑可改用外链方式。感谢!
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.