mirror of
https://github.com/storytold/gridcraft.git
synced 2026-10-24 10:46:50 -06:00
Japanese Excel's B4/B5/B6 are the JIS sizes (257×364, 182×257 and 128×182 mm), but Page Setup's `b4`/`b5` were the ISO ones (250×353, 176×250): a Japanese B5 worksheet printed 8 mm narrow. `known_paper` now reads `B4`/`B5`/`B6` as JIS and keeps the ISO sizes reachable as `B4 (ISO)`/`B5 (ISO)`/`B6 (ISO)`. This also fixes the XLSX round-trip, whose `paperSize` ids 12/13 are the JIS sizes. Adds the Japanese papers Page Setup lacked: Japanese Postcard (はがき, 100×148 mm), Japanese Double Postcard (往復はがき, 148×200 mm), Japanese Envelope #3/#4 (長形3号/4号, 120×235 and 90×225 mm), Japanese Envelope Kaku #2/#3 (角形2号/3号, 240×332 and 216×277 mm), A6, and aliases such as `postcard`, `chou #3`, `kaku #2`; the xlsx paper table gains ids 42 (ISO B4) and 43/69–74/88 so these names survive save and reopen (the ISO B5/B6 names have no ECMA-376 paper id and stay engine-side). The pageSetup/pageLayout.size parameter docs list the names, the Page Layout Size menu lists them, and tests pin the point sizes, the PDF MediaBox for A4 (unchanged), B5, postcard, double postcard and kaku #2, landscape and fit-to-page, the unknown-name Letter fallback, and the XLSX round-trip. Docs: docs/target-app-parity.md print row + revision history, and ROADMAP.md progress log, dated 2026-10-21.