A grid sweeps a content column at a trial width and then at the width it settles on, so a memoized view in it is
measured in two rooms in a pass. Since a view keeps a sizing measure per layout context, both calls take kept measures
in a settled pass, but a sizing replay handed forward nothing: code after the call that reads a text or width the run
handed forward (layout_memory::emit_text, emit_width) found none. In the gallery the card's value-text column was empty
in that pass, so the story column took the whole row and the card's real run differed from its replay (replay audit,
craft-ui-gallery panels::a_selection_change_runs_only_the_panels_that_read_it).
A memoized view's sizing run keeps the texts and widths it handed forward with its measure
(layout_memory::handing_forward, the hand-forwards of views it shows included), and a sizing call that takes the
measure hands them forward again (hand_forward_again), as a real replay does through its journal.
A capped body or a layer with a footer drafts its content at its content height and, when that does not fit, takes the
draft back and lays the content out at its room. A memoized view inside was measured in both contexts, but kept one
sizing slot, and the taken-back draft also undid the measure it wrote: every pass after a change of the content version
around it ran the view's draft measure again although its key, flow and room were unchanged.
Entry::measures keeps up to four sizing measures, keyed by (key, flow, room size), most recently used last. The draft
undo restores everything else (settled, replays, sizes, measuring_pass) and keeps the measures. A real run keeps only
the measures written or taken in its own pass, so content a run showed under an unchanged key never meets a measure of
an earlier pass.
start_rename, reveal and focus_filter_name take effect only in the panel's real run; a measuring run or a replay applies none. The output reports, from Inner::settle, whether the real run took them, so a host keeps a request and passes it again until then.
With joiners now inside an Indic word, the Gujarati pack guard (the
Gujarati block only) turned a word with a ZWJ or ZWNJ away from its
pack, so a pack exception for it was skipped. Gujarati and Hindi now
check the script's letters, marks and joiners (indic::Script::is_letter),
as their rules do, and still need the pack to know the word.
CodeRabbit on #3905.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The first run of a pass decides whether a Lazy child runs, and every later run
of the pass takes that answer. The decision used the extent of the deciding
run's kind, so a card its grid row stretches (content 68 pt, shown 723 pt) was
skipped in a pass whose measuring run decided and ran in one whose real run
decided. Cut by the view's top edge, it left a hole in the view for a frame,
and the Overview's next replay differed from a real run there (the replay audit
in scrolling_runs_only_the_cards_entering_the_view). The decision now takes the
shown extent (the last real run's, else a measuring run's, else the estimate);
a skipped child still takes its own kind's extent in flow.
#3899 added ProofLang::Hi, and on main it went into the old fixed list
(17 entries, range still 0u8..16, so Other wasn't drawn). Keep
every_lang() and add L::Hi to its match and list.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The spelling check and the repeated-word and spacing checks move to
script_checks, which takes a language's Script (its letters, digits and
an optional second spelling) and Rules (messages, repeat policy). Gujarati
uses it with the predicates it had, so its behaviour is unchanged; Hindi
uses the Devanagari letters from indic and its nukta spellings.
ProofLang::Hi maps to indic::Script::Devanagari, so Hindi words break
between aksharas.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A ZWJ or ZWNJ after a virama (choosing how a conjunct is drawn) ended
the letter run, so a Gujarati word with one was hyphenated as two short
parts and got no break. In a language with Indic rules a joiner is now
part of the word, and the akshara rules keep it inside its conjunct and
never break next to it. Other languages still end a run at a joiner.
Follow-up to #3901 (CodeRabbit review). Part of storytold/vectorcraft#4947.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
craft-ui-gallery: a story whose dialog is open replays in a settled frame. The
dialog's layer is part of the story's run and replays where it ran (f418a2a3f7);
the story ran every frame only because the pointer stayed over the card after the
click, which no longer runs a settled view while what sensing gives it is
unchanged (4fe31f5dc3). The trial asserts the dialog stays painted, the card keeps
the story in place of its opener, and the story does not run.
craft-layers: a blend-mode edit is a new version of the panel's view, so the
header measures its content afresh (7f4311f96f) and the blend rows run in that
measuring run and once in the real run, all in one pass. The trial asserts one
pass and one real run of the blend rows.
The module docs linked the private Script::kind, which the workspace docs
check (-D warnings) rejects, and gave ProofLang::Gu a redundant explicit target.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>