<feed xmlns='http://www.w3.org/2005/Atom'>
<title>npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/docs/text.md, branch docs/pso-cache-scope-note</title>
<subtitle>[no description]</subtitle>
<id>https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/atom?h=docs%2Fpso-cache-scope-note</id>
<link rel='self' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/atom?h=docs%2Fpso-cache-scope-note'/>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/'/>
<updated>2026-11-24T17:11:30+00:00</updated>
<entry>
<title>Recognize an additional script in text-table language guessing</title>
<updated>2026-11-24T17:11:30+00:00</updated>
<author>
<name>Lumencer</name>
<email>lumence@atomicmail.io</email>
</author>
<published>2026-11-24T17:11:30+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=1d2e0848fcbd2a6eb790a3becec0cab49c94f3a5'/>
<id>urn:sha1:1d2e0848fcbd2a6eb790a3becec0cab49c94f3a5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>docs: use the 14,482-table census in the nested-archive table</title>
<updated>2026-11-23T03:39:04+00:00</updated>
<author>
<name>Kam471</name>
<email>kam471@users.noreply.github.com</email>
</author>
<published>2026-11-23T00:22:30+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=273cea69016e42570bf7b20da1449020d85aa84a'/>
<id>urn:sha1:273cea69016e42570bf7b20da1449020d85aa84a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge pull request #3575 from Leonardo Guimaraes</title>
<updated>2026-11-22T22:02:47+00:00</updated>
<author>
<name>ItsNotRexed</name>
<email>300290919+ItsNotRexed@users.noreply.github.com</email>
</author>
<published>2026-11-22T22:02:47+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=22a092e6a51d273bb342be1576accbfc4c7f421e'/>
<id>urn:sha1:22a092e6a51d273bb342be1576accbfc4c7f421e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>text_tables: read a string table's blob chunks instead of the first chunk only</title>
<updated>2026-11-22T20:56:20+00:00</updated>
<author>
<name>Leonardo Guimaraes</name>
<email>leozinhoszg@gmail.com</email>
</author>
<published>2026-11-22T20:56:20+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=49900018e3aa4415f0f80f926d44b4baa5248ba6'/>
<id>urn:sha1:49900018e3aa4415f0f80f926d44b4baa5248ba6</id>
<content type='text'>
A string table with more than 1 MiB of text splits its blob into several
tag-0x10 descriptor entries. From the blob on, the descriptor is a run of
16-byte entries (u32 tag, u32 bytes, pointer). An index entry names its chunk
in the low bits of its second word (0b1cc, chunk = flags &amp; 3). string_tables()
read every offset from the first chunk, so 293,292 strings in 23 data.rpf
tables came out with the wrong text and no error. story000.rpf and
shared_minigame000.rpf tables read the same as before.

docs/text.md documents the entries and the chunk bits, updates the
story000.rpf table count to what main reads today (15,951), and lists the
hash entries with byte +8 = 5/7/8 as an open question.
</content>
</entry>
<entry>
<title>docs: measure nested text archives in the minigame and rest-of-world packs</title>
<updated>2026-11-22T20:32:49+00:00</updated>
<author>
<name>Kam471</name>
<email>115741199+Kam471@users.noreply.github.com</email>
</author>
<published>2026-11-22T20:32:49+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=5e1a7c85a5242058e5651ff797a35e579c399baa'/>
<id>urn:sha1:5e1a7c85a5242058e5651ff797a35e579c399baa</id>
<content type='text'>
shared_minigame000.rpf: 78 tables in 13 nested archives, six each; the same 13 language order as data.rpf and story000.rpf, and 5 tables change language. story000_restofworld.rpf: 18 nested archives and no string table (0 of its 101 0DRP resources match the descriptor).
</content>
</entry>
<entry>
<title>Merge pull request #2324 from Leonardo Guimaraes</title>
<updated>2026-11-22T18:13:53+00:00</updated>
<author>
<name>ItsNotRexed</name>
<email>300290919+ItsNotRexed@users.noreply.github.com</email>
</author>
<published>2026-11-22T18:13:53+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=697c01b0e933fad0012ee4c685e6b952444ebbc0'/>
<id>urn:sha1:697c01b0e933fad0012ee4c685e6b952444ebbc0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>text_tables: a string table's language from the nested RPF9 archive it sits in</title>
<updated>2026-11-22T16:40:09+00:00</updated>
<author>
<name>Leonardo Guimaraes</name>
<email>leozinhoszg@gmail.com</email>
</author>
<published>2026-11-22T16:40:09+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=63424bee7ed3e1f95b2b915323c389b030cba510'/>
<id>urn:sha1:63424bee7ed3e1f95b2b915323c389b030cba510</id>
<content type='text'>
docs/text.md had "Language per table" open: the tables carry no
language field and each one's language was guessed from its text. In
data.rpf and story000.rpf every string table sits in one of 13 nested
RPF9 archives (9FPR at 4 KiB-aligned offsets), and each archive is one
language.

A table in a nested archive now takes the guess most of that archive's
tables share (xx left out), when it covers more than half of them;
otherwise, and outside nested archives, a table keeps its own guess.
Nested archives come from an .rpf source or from the archive an
rpf9_carve.py directory's index.json names. --tables gains `guess` (the
per-table guess) and `archive` (the nested archive's offset). Scan
keeps the guesses and resolves languages when tables or texts are read.

Measured (counts only): data.rpf 14,440 tables in 13 archives, 2,075
change; story000.rpf 15,831 tables in 13 of 436 nested archives, 849
change. xx, plain es and plain zh drop to 0 in both. Table in
docs/text.md.

tests: nested-archive detection, archive majority over strays and xx,
no majority keeps each guess, a carve directory end to end through its
index.json, and a source with no archive.
</content>
</entry>
<entry>
<title>text_tables: a resource's first stream may be any whole number of 64 KiB blocks</title>
<updated>2026-11-22T16:04:06+00:00</updated>
<author>
<name>Rafael</name>
<email>rafaelalvesp2005@gmail.com</email>
</author>
<published>2026-11-22T16:04:06+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=395dee87595241860ae7c8441c861ea3b453113d'/>
<id>urn:sha1:395dee87595241860ae7c8441c861ea3b453113d</id>
<content type='text'>
_chains joined the next stream only when the previous one was exactly BLOCK (65,536 bytes). But a
resource's first stream can be 128 or 192 KiB (docs/page_directory.md shows one ending at 0x20000 that
the next stream continues), and its string-table descriptors then end in the following stream. On my
1.0.2.1 copy, 41 data.rpf resources start with a 131,072- or 196,608-byte stream: 20 of their tables
were refused as out of range and 21 lost entries through the at + 8 &gt; len(buf) skip. A stream now
continues a previous one whose size is a nonzero multiple of BLOCK.

Real data (counts only): data.rpf 14,440 -&gt; 14,482 tables and 4,118,181 -&gt; 4,197,518 strings, the same
from the archive and from an rpf9_carve folder; shared_minigame000.rpf unchanged (78 tables, 22,371
strings). docs/text.md updated.

Tests: test_resource_across_a_128k_first_stream and
test_whole_block_streams_continue_and_others_end_the_chain (main: the 128/192 KiB cases fail).

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>tools: write stream names and dialogue subtitles into Ogg Opus tags</title>
<updated>2026-11-22T12:31:29+00:00</updated>
<author>
<name>Nikolas Sturm</name>
<email>code@nsturm.me</email>
</author>
<published>2026-11-22T12:31:29+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=2197cf3f9c60b17972e3ea848311d9126fb8aa1c'/>
<id>urn:sha1:2197cf3f9c60b17972e3ea848311d9126fb8aa1c</id>
<content type='text'>
awc_opus.py exports streams with an empty OpusTags header, so players show
only the stream id. opus_tags.py fills that header in place from the
awc_names.py CSV (TITLE) and the text_tables.py dialogue CSV (LABEL,
SPEAKER, SUBTITLE and SUBTITLE_&lt;LANG&gt;). Only page 1 is rewritten; the audio
pages stay byte for byte. Synthetic tests only.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>tools: decode string tables and join dialogue to its subtitles</title>
<updated>2026-11-22T11:42:09+00:00</updated>
<author>
<name>Nikolas Sturm</name>
<email>code@nsturm.me</email>
</author>
<published>2026-11-22T11:41:52+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=8ef54230a30593551c1392afcd3b1b4fd9ad1fc3'/>
<id>urn:sha1:8ef54230a30593551c1392afcd3b1b4fd9ad1fc3</id>
<content type='text'>
Text resources are 0DRP logical resources holding a joaat label hash table,
an index array and a UTF-8 string blob, located by a descriptor of
0x5xxxxxxx resource pointers. text_tables.py joins each 0DRP stream with
its 64 KiB continuations (carve directory or archive via gamedata_index, or
whole-resource files), decodes the tables, guesses each table's language
(script, distinctive letters, common words; es-ES/es-419 and
zh-Hant/zh-Hans by markers; xx when undecided), and joins conversation
key/label pairs (&lt;key&gt;_01.. waves) to their text in every language.

On 1.0.2.1: 30,349 tables / 7.17M strings; 118,351 dialogue keys and
138,104 lines, 88-93% with text per language. docs/text.md records the
format, the per-language conflict counts and the open questions.
Standard library only; tests are synthetic.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
</feed>
