commit 41a5e75c6f176ae008e4b2e7e9d0b07df6f9711e
parent 73832af3735675b9a9d22232829dbe2d6b4c30fe
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Thu, 5 Nov 2026 10:33:27 -0500
umtool: a picture-only item whose read reads its picture frames the picture -- its read is its post's piece
Kirsche's reply (only "@ObviousRises" and a screenshot of a Millennial Woes post, its read the words on the
screenshot) times no block of the card's words, so the threaded card had no piece: the carried post it answers
stayed full and the picture sat half below the window. Such a read is now its post's piece from the read's start
(follow.picReads): the carried post gives way as it begins, read-follow frames the post's tile whole.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
3 files changed, 20 insertions(+), 4 deletions(-)
diff --git a/umtool/report-to-video/post-picture.test.mjs b/umtool/report-to-video/post-picture.test.mjs
@@ -112,6 +112,17 @@ test("A PICTURE-ONLY ITEM (Kirsche's '@subject' and a screenshot): its picture i
assert.equal(readingSeconds(base({ parents: [gifParent] })), readingSeconds(base()) + 2.53);
});
+test("A PICTURE-ONLY ITEM whose read reads its picture (the words on a screenshot): the read is its post's piece -- the carried post it answers gives way, its picture framed", () => {
+ const kir = base({ id: "p-7", post: "kir-x/7", author: "Kir", handle: "kir", text: "@subject", media: [IMG], parents: [{ id: "1", author: "Subject", handle: "subject", date: at(19), text: WORDS }] });
+ const n = narrate(kir, "It's amazing how much discourse is just pretending not to understand things.");
+ const plan = postItemPlan(n, R, { prev: base({ post: "subj-x/1" }) });
+ assert.deepEqual(plan.follow.picReads, [{ scope: "post", t0: plan.narration.at, t1: plan.follow.readEnd }]);
+ const row = (sc) => plan.follow.thread.tiles.find((t) => t.scope === sc);
+ assert.equal(row("parent:0").mode, "carry");
+ assert.deepEqual(row("parent:0").to, [0.62, 0.5], "the carried post shrinks as the read begins");
+ assert.deepEqual(row("post").to, [1, 1]);
+});
+
test("A PICTURE-ONLY QUOTED post the read does not read: above his post, its own beat", () => {
const e = narrate(base({ quoted: { id: "5", author: "Q", handle: "q", date: at(19), text: "", media: [IMG] } }));
const L = threadLayout(e, R);
diff --git a/umtool/report-to-video/post-thread.mjs b/umtool/report-to-video/post-thread.mjs
@@ -601,7 +601,7 @@ export function threadSchedule(entry, render, { layout, blocks, lead = 0.4, beat
for (const b of blocks) if (b.part !== null && b.start !== null && !startOfPart.has(b.part)) startOfPart.set(b.part, b.start);
// A PICTURE-ONLY context post's BEAT (pictureBeats) is a piece of its own, before the read's first.
const beatOf = new Map((Array.isArray(beats) ? beats : []).map((b) => [b.scope, b]));
- const pieces = [...beatOf.values()].map((b) => ({ role: b.scope, parts: [], start: b.t0, beat: true })).concat(readPieces(entry, roles).map((p) => {
+ const pieces = [...beatOf.values()].map((b) => ({ role: b.scope, parts: [], start: b.t0, beat: b.scope !== "post" })).concat(readPieces(entry, roles).map((p) => {
const ts = p.parts.map((n) => startOfPart.get(n)).filter(fin);
return { ...p, start: ts.length ? Math.min(...ts) : null };
}).filter((p) => p.start !== null && p.role));
diff --git a/umtool/report-to-video/read-follow.mjs b/umtool/report-to-video/read-follow.mjs
@@ -398,13 +398,18 @@ export function followSchedule(entry, render = undefined, { hold = null, narrati
const layout = ms ? sceneLayout(base, entry, ms) : base;
// PICTURE-ONLY context posts' BEATS (post-thread.mjs pictureBeats, post-picture.mjs): pieces of their own before the read.
const beatsOn = base && Array.isArray(beats) && beats.length ? beats : [];
- const own = !layout?.on ? null : base ? threadSchedule(entry, render, { layout, blocks, lead: FOLLOW_PAN.lead, beats: beatsOn }) : sceneSchedule(threadKnobs(entry, render), { layout, blocks, lead: FOLLOW_PAN.lead });
+ // A PICTURE-ONLY post of his own whose read reads its picture (the words on a screenshot: no block of the card's
+ // words is timed) is read as a piece of its own from the read's start: its tile -- the picture -- framed whole.
+ const picReads = base?.on && isNarrated(entry) && base.tiles.some((t) => t.scope === "post" && t.pic) && !blocks.some((b) => b.start !== null)
+ ? [{ scope: "post", t0: r3((narration ?? narrationSchedule(entry, render)).at), t1: readEnd }]
+ : [];
+ const own = !layout?.on ? null : base ? threadSchedule(entry, render, { layout, blocks, lead: FOLLOW_PAN.lead, beats: [...beatsOn, ...picReads] }) : sceneSchedule(threadKnobs(entry, render), { layout, blocks, lead: FOLLOW_PAN.lead });
const thread0 = ms ? sceneRows(own, layout) : own;
// LINK VISITS (post-link-visit.mjs): a link in the words visited -- the pointer, the click, the post opened.
const visits = thread0 && isNarrated(entry) ? linkVisits(entry, thread0, blocks, render) : [];
const thread = visits.length ? visitRows(thread0, visits) : thread0;
// THE JOIN (post-join.mjs): its first seconds morph from the item before as it ended.
- return { dim: k.dim, ease: k.ease, readEnd, source: map.source, blocks, ...(thread ? { thread } : {}), ...(visits.length ? { visits } : {}), ...(join && fin(join.seconds) ? { join: { seconds: join.seconds } } : {}), ...(thread && beatsOn.length ? { beats: beatsOn } : {}) };
+ return { dim: k.dim, ease: k.ease, readEnd, source: map.source, blocks, ...(thread ? { thread } : {}), ...(visits.length ? { visits } : {}), ...(join && fin(join.seconds) ? { join: { seconds: join.seconds } } : {}), ...(thread && beatsOn.length ? { beats: beatsOn } : {}), ...(thread && picReads.length ? { picReads } : {}) };
}
/** The block being read at item second `s` (its k), or null (before the read's first block, or none). */
@@ -495,7 +500,7 @@ export function threadPath(follow, geo) {
return Math.round(clamp(want, 0, max) * 100) / 100;
};
// A PICTURE-ONLY post's BEAT (post-picture.mjs) is framed as a piece read: its tile, for its beat.
- const beatBlocks = (Array.isArray(follow.beats) ? follow.beats : []).filter((b) => geo?.tiles?.[b.scope]).map((b) => ({ scope: b.scope, start: b.t0, end: b.t1, k: null, beat: true }));
+ const beatBlocks = [...(Array.isArray(follow.beats) ? follow.beats : []), ...(Array.isArray(follow.picReads) ? follow.picReads : [])].filter((b) => geo?.tiles?.[b.scope]).map((b) => ({ scope: b.scope, start: b.t0, end: b.t1, k: null, beat: true }));
const read = [...beatBlocks, ...(follow.blocks ?? []).filter((b) => b.start !== null && geo.blocks?.[b.k]).sort((a, b) => a.start - b.start || a.k - b.k)];
const boxOf = (g, b) => (b.beat ? g.tiles[b.scope] : g.blocks[b.k]);
// The opening frame: a carried post (or the scene's post the item before ended on) framed as the item before