| 1 | # Editing a right-to-left page |
| 2 | |
| 3 | OneNote 2010 keeps a right-to-left page's positions in the same left-to-right frame |
| 4 | as any page, from a margin origin that `corpus/m6/native-page-direction-03` stores at |
| 5 | x 10763.25: native XML x is stored x minus the origin minus 36. It opens the page |
| 6 | scrolled to the right end of its content and keeps the view's right edge when the |
| 7 | window resizes. A click on blank page puts an outline's left edge on the grid |
| 8 | anchored at the margin origin, as on any page; only an outline laid out wider than |
| 9 | its stored width keeps its right edge. A new drawing stores page-frame strokes with |
| 10 | a zero offset (Win7 lab, 2026-10-01). |
| 11 | |
| 12 | `candidate/` is the output of `crates/canvas/tests/rtl_page.rs` on that page through |
| 13 | the page view: it opens at the drawings' right edge, a click and typing add an outline, |
| 14 | a pen stroke adds a drawing, and a header drag moves the positioned outline two grid |
| 15 | columns right, each published as a revision. `cold/` is a fresh OneNote 2010 read of |
| 16 | it: the new outline at x 126, the moved one at 180, the stroke where the pen went. |
| 17 | `tools/test_rtl_page.py` checks this without a VM. Regenerate with |
| 18 | `SNOWBOUND_RTL_EXPORT` set to a new absolute directory while running the test, then |
| 19 | cold-open it with `tools/native_runner.py OUTPUT COLD --expected-pages 1 --collect-notebook --screenshots`. |