mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:55:52 +01:00
[PR #1300] Export native speaker hashes from PSIN dialogue turns #1330
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1330
Loading…
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/ubiquitarianism/leonida/pull/1300
Author: @kaoru-maki
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:psin-native-speaker📝 Commits (1)
74838baExport native speaker hashes from PSIN dialogue turns📊 Changes
4 files changed (+234 additions, -1 deletions)
View changed files
📝
docs/text.md(+16 -0)➕
tests/test_psin_dialogue.py(+91 -0)➕
tools/psin_dialogue.py(+105 -0)📝
tools/text_tables.py(+22 -1)📄 Description
Claimed in the coordination issue as: PSIN-NATIVE-SPEAKER (claim)
What and why
Add
text_tables.py --native-speakersto export the character hash selected by each PSIN conversation turn. Resolve the turn's slot within that conversation's participant array and keep the source and record offsets for each occurrence. This covers typed cues outside theAU_naming pattern and leaves the existing--dialogueCSV compatible with current consumers.The report leaves the character hash empty for missing, repeated or zero-hash slots. It validates the LSCH layout and bounds typed arrays and strings within their blocks. The native cue and label are sufficient to join on
subtitle_hashlocally. The report makes no assumption about a cue's wave number or AWC address.Tested
python3 -IB tests/test_psin_dialogue.py,tests/test_text_tables.py,tests/test_psin_data.pyandtests/test_psin_index.py(101 passed, 1 skipped).python3 -IB tests/test_docs_cli_flags.py,tests/test_text_write_line_endings.pyandtests/test_docs_links.py(23 passed).AU_expression.git diff --checkandscripts/check_no_game_data.pyon all changed files.GPUs tested: n/a (CPU-only, macOS arm64).
AI-assisted: yes.
Checklist
mainand merges cleanly.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.