mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-21 01:18:43 +00:00
Japanese printing had no paper of its own: the Print dialog and `file.print` only offered letter/legal/tabloid/A3–A5/4x6/5x7, so a 年賀状 (New Year card), はがき, a JIS B5 handout or an L判 photo could not be printed or exported to PDF at its size. Add the customary papers at their exact metric sizes after the existing entries, whose order and sizes are unchanged: はがき 100×148 mm (283.46×419.53 pt), 往復はがき 148×200, JIS B5 182×257 (515.91×728.50), JIS B4 257×364 (728.50×1031.81), A6, L判 89×127 (252.28×360.00), 2L判 127×178, KG判 102×152, 六切 203×254 and 四切 254×305. Names resolve case-, space- and punctuation-insensitively, and the customary names are aliases (はがき/ハガキ/葉書/ポストカード, 往復はがき, JIS B5/B5 (JIS), JIS B4/B4 (JIS), L判/Lサイズ/L-size, 2L判, KG判, 六切/6切, 四切/4切). The Print dialog lists the sizes with their customary names and metric sizes, and the PDF page (MediaBox) takes the paper's size. Tests: `print_cmds::tests::japanese_paper_sizes_and_aliases` pins every size to 0.1 pt, the aliases and the unchanged existing papers; `japanese_paper_sizes_reach_the_pdf_page` prints on はがき, L判, the はがき alias and JIS B5 and reads the actual PDF MediaBox (283.46×419.53 and 252.28×360.00 pt). Docs: docs/printing.md gains a Paper sizes section, docs/target-app-parity.md's print row and revision history, and ROADMAP.md's progress log and revision history, dated 2026-10-22; existing revision rows keep their dates.