1# Native right-to-left page control
2
3`scripts/author.ps1` changes PageSettings RTL to true and locks the existing
4table columns to 96 and 144 points through OneNote COM. `before.xml`, `after.xml`
5and `read/page-000.xml` retain the native observations. The saved store uses
6visual left-to-right column order [Right cell, Left cell], with widths [144, 96].
7COM exports cells in page direction [Left cell, Right cell], with widths [96, 144].
8The native PDF independently confirms the physical cell order. Native x is store x -
9PageMarginOriginX - 36; the native table outline measures wider than its stored suggested
10maximum width and keeps its right edge, store x + LayoutMaxWidth - PageMarginOriginX - 36
11equalling native x + native width (`corpus/rtl-page` has narrower outlines keep their left).
12Vertical coordinates retain the 14.4-point canonical origin.
13
14The public fixture includes images, a file and two opaque ink objects. All
15supported text, object order, payloads, formats and coordinates pass
16`tools/verify-document.py`. Ink stroke bounds remain distinct from the stored
17container position; the comparator checks ink count and excludes stroke geometry.
18`teardown.json` records deletion of the authoring clone.