upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs/text.md
diff options
context:
space:
mode:
authorNotRexed <therealnothingfn@gmail.com>2026-11-28 19:47:53 -0500
committerNotRexed <therealnothingfn@gmail.com>2026-11-28 19:47:53 -0500
commita3484ceebc04d8764d314b59ec00d488a325dc70 (patch)
treeea01444098cd95beed90a78b7fd2af3d22c2efd9 /docs/text.md
parent915f7654b6fbcdca08ee85d91823dd5a9848b242 (diff)
parent795e0904c251c19bdec45423d111c8c0ac9c6cbe (diff)
Merge origin/main into next
Diffstat (limited to 'docs/text.md')
-rw-r--r--docs/text.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/text.md b/docs/text.md
index 946d07c90..d37a3485a 100644
--- a/docs/text.md
+++ b/docs/text.md
@@ -203,12 +203,28 @@ keys and their text sit in different archives.
203| `--dialogue` | `wave`, `key`, `label`, `speaker`, `text_<lang>` per language | 203| `--dialogue` | `wave`, `key`, `label`, `speaker`, `text_<lang>` per language |
204| `--tables` | `source`, `offset`, `lang`, `guess` (the per-table guess), `archive` (nested archive offset), `group`, `strings`, `resolved` | 204| `--tables` | `source`, `offset`, `lang`, `guess` (the per-table guess), `archive` (nested archive offset), `group`, `strings`, `resolved` |
205| `--strings` | `source`, `offset`, `lang`, `hash`, `label`, `text` | 205| `--strings` | `source`, `offset`, `lang`, `hash`, `label`, `text` |
206| `--native-speakers` | `source`, `offset`, `conversation_offset`, `turn_offset`, `line_offset`, `speaker_slot`, `character_hash`, `cue`, `label`, `subtitle_hash` |
206 207
207Standard library only. The four archives above take about 2 minutes on one core from a carve. 208Standard library only. The four archives above take about 2 minutes on one core from a carve.
208 209
209`tools/opus_tags.py` writes the `--dialogue` rows into the exported Ogg Opus files as `LABEL`, `SPEAKER` and 210`tools/opus_tags.py` writes the `--dialogue` rows into the exported Ogg Opus files as `LABEL`, `SPEAKER` and
210`SUBTITLE` comments (see [audio.md](audio.md#tags-names-and-subtitles)). 211`SUBTITLE` comments (see [audio.md](audio.md#tags-names-and-subtitles)).
211 212
213## Native PSIN speaker report
214
215Add `--native-speakers <temp>/speakers.csv` to read conversation occurrences from complete PSIN resources.
216`offset` is the resource location in the input, and the conversation, turn and line offsets are relative to the
217resource. The report keeps repeated cue/label pairs as distinct occurrences. `subtitle_hash` is the lowercase
218JOAAT of the line label and can be joined to the localized tables. `cue` is the native cue and carries no inferred
219wave number or AWC address.
220
221The `0xEDAF33B4` conversation has participant (`0x1638FDAA`) and turn (`0x06A04D25`) arrays at `+0x10` and `+0x20`.
222The turn's source slot at `+0x18` selects the participant whose slot is at `+0x04`. That participant's `+0x00`
223value supplies `character_hash`. The turn's line array references `0x7622C7F9` records with cue and subtitle label
224strings at `+0x00` and `+0x08`. The reader checks the LSCH layout and bounds each array within its typed block.
225An absent or duplicate slot, or a zero participant hash, leaves `character_hash` empty. The legacy `speaker`
226suffix is still available in `--dialogue`. Keep these CSV exports on the machine that reads the game data.
227
212## Open questions 228## Open questions
213 229
214- **Language per table.** The nested archive now groups the tables of `data.rpf`, `story000.rpf` and 230- **Language per table.** The nested archive now groups the tables of `data.rpf`, `story000.rpf` and