mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-21 09:26:43 +00:00
`file.print` accepts the customary names (はがき, L判, …) and remembers the `paper` value as typed. On reopening, the Paper control passed that alias straight to a menu keyed by the canonical `PAPERS` names, so a valid remembered paper showed `—` instead of its preset. Resolve the remembered name through `paper_size` and select the matching `PAPERS` key. Custom arrays still open as Custom, and unknown names stay as they are. Tests: a remembered はがき reopens with はがき (100 × 148 mm) selected and still lays the page out at 283.46 × 419.53 pt. Docs: say that named papers use the table while custom [width, height] values are accepted directly.