Rearrange landscape puzzle layout

Landscape leaves now lay the puzzle out in two columns: the whole grid
keeps one column (square, sized to the page) with the heading, area
totals, hint/undo and notes beside it, and the leaf navigation folds
into a single row. The game leaf also keeps its actions in a compact
bottom bar, so the board and controls are visible without scrolling.

- Leaf gains an optional wideBody used on landscape pages.
- Board gains maxWidth, defaulting to the previous 350.
- Split the puzzle body into area, board and note builders so both
  layouts share the same controls.
- Add a landscape widget regression test and document the layout.

This snapshot also carries the pending 2.0.2 notebook work already in
the tree: read-ahead restore, bundled PCM WAV narration assets, the
audio consistency comment, version 2.0.2+11, and the related unit,
integration and script updates.
This commit is contained in:
Hadrian Burkhardt
2026-10-31 06:21:36 +01:00
parent 302ad6d38e
commit a863b0ca93
22 changed files with 971 additions and 374 deletions
+4 -2
View File
@@ -18,7 +18,9 @@ for record in canonical:
for cue in track['cues']:
assert previous<=cue['startMs']<cue['endMs']<=track['durationMs']
previous=cue['endMs']
wav=source/'wav'/(record['resource']+'.wav');flac=raw/track['file']
wav=source/'wav'/(record['resource']+'.wav');flac=raw/track['flacFile']
assert (raw/track['file']).read_bytes()==wav.read_bytes(),'Runtime WAV differs from its reviewed master'
assert track['wavSha256']==hashlib.sha256(wav.read_bytes()).hexdigest()
with wave.open(str(wav),'rb') as reader:
assert reader.getnchannels()==1 and reader.getsampwidth()==2 and reader.getframerate()==24000
assert reader.getnframes()==track['frames']
@@ -28,7 +30,7 @@ for record in canonical:
decoded=subprocess.check_output(['ffmpeg','-v','error','-i',str(flac),'-f','s16le','-acodec','pcm_s16le','-'])
assert decoded==master,'Runtime FLAC must preserve the WAV master exactly'
assert track['flacSha256']==hashlib.sha256(flac.read_bytes()).hexdigest()
print(f"PASS {record['pageId']}: {track['durationMs']/1000:.1f}s, lossless, text/cues match")
print(f"PASS {record['pageId']}: {track['durationMs']/1000:.1f}s, WAV/master match, FLAC lossless, text/cues match")
for p in (root/'lib').rglob('*.dart'):
assert 'flutter_tts' not in p.read_text(),f'Device reader reintroduced in {p}'
print('All five recordings verified; bundled file playback only.')