Initial public release

This commit is contained in:
jhaizhou
2026-10-12 16:51:08 +08:00
commit 46578a2b5d
997 changed files with 218713 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
# Tables used by item annotations
| File | Contents | In the public repository? |
|---|---|---|
| `comments.tsv` | A one-line comment for each unique item, set item and runeword (rewritten entry by entry from the comments of a third-party mod) | **No.** It is an adaptation and the public repository does not ship it; without this table no comments are added, and the rest of the annotations work as usual |
| `oldnames.tsv` | Old-translation table: changes some names back to the older Chinese translations that long-time players know | **No.** It is a complete set of someone else's translated names and the public repository does not ship it; without this table the "change back to old names" step is skipped automatically, and the rest of the annotations work as usual |
## Supplying your own old-translation table
Put an `oldnames.tsv` in this directory to enable it. Tab-separated, UTF-8, first line is the header (the column names are in Chinese; keep them as shown):
```
文件 键 原文校验 旧译名
item-names KhalimFlail 2717cc0f (the name you want instead)
```
- `文件` (file): the name of the game string file, without `.json` (under `data/local/lng/strings/` in the game resources)
- `键` (key): the `Key` of that entry in the file
- `原文校验` (checksum of the original text): the first 8 hex digits of the SHA-1 of the entry's current Simplified Chinese text (UTF-8). Every entry is checked at build time, and a changed original (the game was updated) is reported as an error, so that nothing is replaced by mistake
- `旧译名` (old name): the name to use instead; write a line break as `\n`
## Supplying your own comment table
Put a `comments.tsv` in this directory to enable it. Tab-separated, UTF-8, first line is the header; the columns are the ones read by `comments()` in `annot_strings.py`:
```
文件 键 名字颜色 点评
item-names (the Key of the string) unique (your one-line comment)
```
- `文件` (file): `item-names` (unique and set items) or `item-runes` (runewords)
- `键` (key): the `Key` of that string; a key in the table that cannot be found in the game's string tables is reported as an error
- `名字颜色` (name color): `set` = set item (green); anything else is treated as unique (gold)
- `点评` (comment): one line shown below the name. Skill names mentioned in it must be the names after the change back to old names (if you also supply the old-translation table)
+34
View File
@@ -0,0 +1,34 @@
# 物品注释用的表
| 文件 | 内容 | 进不进公开仓库 |
|---|---|---|
| `comments.tsv` | 暗金 / 套装 / 符文之语的一句点评(按一个第三方模组的点评逐条改写的) | **不进**。属于改编,公开仓库不带;没有这份表时不加点评,其余注释照常 |
| `oldnames.tsv` | 旧译名对照表:把一部分名字换回老玩家熟悉的旧版中文译名 | **不进**。它是成套的他人译名,公开仓库不带;没有这份表时「换回旧译名」这一步自动不做,其余注释照常 |
## 自备旧译名对照表
放一份 `oldnames.tsv` 到本目录即启用。制表符分隔、UTF-8、首行是表头:
```
文件 键 原文校验 旧译名
item-names KhalimFlail 2717cc0f (你要换成的名字)
```
- `文件`:游戏字符串文件名,不带 `.json`(在游戏资源的 `data/local/lng/strings/` 下)
- `键`:该文件里那一条的 `Key`
- `原文校验`:这一条现行简体中文原文(UTF-8)的 SHA-1 前 8 位十六进制——构建时逐条核对,原文变了(游戏换了版本)会报错,免得换错
- `旧译名`:换成的名字;要换行写 `\n`
## 自备点评表
放一份 `comments.tsv` 到本目录即启用。制表符分隔、UTF-8、首行是表头;看 `annot_strings.py` 的 `comments()` 用到的列:
```
文件 键 名字颜色 点评
item-names (字符串的 Key) unique (你写的一句话)
```
- `文件`:`item-names`(暗金、套装件)或 `item-runes`(符文之语)
- `键`:该条字符串的 `Key`;表里的键在游戏字符串表里找不到会报错
- `名字颜色`:`set` = 套装(绿),其余按暗金(金)
- `点评`:显示在名字下面的一行。里面提到的技能名要用换回旧译名之后的名字(如果你同时带了旧译名对照表)