GoTalk NOW .gotalk-book share exports: nested layout, image resolution, format routing - #51
Merged
Merged
Conversation
…esolution, format routing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Real-world GoTalk NOW books shared from the app arrive as
.gotalk-bookZIPexports (often
.zip-suffixed) — a layout the processor previously rejectedoutright. This PR teaches the processor both container variants and fixes the
image/semantic gaps found testing against real share exports.
Container support
.gotalk-booklayout: plists live under<BookName>.gotalk-book/rather than the ZIP root (
.gtbzbackups);__MACOSX/resource-fork entriesare ignored.
processTextsround-trips the nested structure in place(nothing hoisted/flattened).
MyBook.gotalk-book.zipand.gotalk-booknames routeto the GoTalk processor in
getProcessor(Node + browser);.gotalk-bookadded to supported extensions;
core/analyzeaccepts agotalk-bookkey;the CLI content-sniffs bare
.ziparchives for GoTalk plists.Image resolution (previously resolved nothing on real files)
guessing —
Location/QuickRecoveryPathare iOS container paths thatnever match archive entry names verbatim.
skipped; the
QuickRecoveryPathentry is preferred (second entry whenmultiple); final fallback is the pre-rendered snapshot
<page>-<button>-<buttonCount>.png.metacom/pcs/symbolstix/widgit)and marked without resolving a bundled file.
Semantics
JumpTosentinels (0,-1, empty) no longer produce phantom navigationtargets.
ButtonCountsized by highest button index + 1;non-square counts derive a near-square rectangle (cols = ⌈√n⌉, rows = ⌈n/cols⌉).
Testing
clip-art skipping, snapshot fallback, library-symbol marking, JumpTo
sentinels, sparse grid sizing, nested
processTextsround-trip, book-suffixrouting in both entrypoints, CLI
.gotalk-book.zip+ bare-.zipsniffing.