Advance native LaTeX execution and preview

This commit is contained in:
gloamxun committed 2026-11-18 22:17:21 +08:00
1 parent 91f9d76b16
commit 2741546ca8
414 files changed
+99872 -933

No files matched your search

+35 -26
View File
@@ -1,32 +1,41 @@
# Route-D scoped acceptance
# Route-D native math acceptance — 2026-10-31
## Verified build
**C/D passes for the current native core atom slice.** The previous +7.131bp
failure is resolved through general paragraph/display depth, page glue and
source NFSS/section state. No v1 fallback or new template rendering rule was
added. This is not complete LaTeX/XeTeX compatibility.
- Workspace tests: **1094 passed / 0 failed**
- Fidelity against a freshly compiled fixture: 3 vs 3 pages, 1243 vs 1264
words, ratio **0.8999**
- Warm arXiv preview: 19–21 ms; cold 64 ms
- 2.1 paragraph: six lines
- 3.3 Tables: page 2 (heading, body, booktabs URL)
- figure/table floats: page 3
- 3.4 Lists and References: page 3
- article-basic raster hash unchanged after the Times page-flow changes
| Gate | Final result |
| --- | --- |
| workspace | **1113 passed / 0 failed**, fmt/diff checks pass |
| dimensions | **476 pdfTeX probes**, maximum error **1sp** |
| controlled vlist | **12 real TeX cases**, font/depth/line/display variants |
| fixed-baseline raster | 7 identical bboxes; six zero ink differences, full math 19/1948 |
| incremental replay | matches full native rebuild, including display dependencies and later insertions |
| full fixture | 3 pages; 2.1 six lines; 3.3 Tables and final URL on page 2 |
| word sequence ratio | **0.924860**, 1243 reference / 1259 native words |
| warm preview HTTP | **35.1–49.8ms**, five samples |
| real edit HTTP / engine | **81.1–240.5 / 48.9–171.5ms**, five unsaved edits |
## Formula
| Rule, bp | Reference | Native |
| --- | --- | --- |
| x | 305.093750 | 305.094 |
| width | 173.050781 | 173.052 |
| center y | 179.1484375 | 179.252 |
```text
route: x=135.4..540.9, y=170.3..191.5
TeX: x=132.7..540.7, y=170.3..188.5
```
**y error +0.1035625bp passes the 1bp gate.** Entire formula ink bbox at 144dpi
is identical: **[265,330,1079,388]**. Reproduce with scripts/check-arxiv-math.py
and the documented fresh-reference script. Fixed-baseline probes alone were
not used to pass the absolute gate.
Large-operator lower limits were raised 4 pt, removing most of the vertical
overshoot without colliding with the fraction rule. Residual: the fraction rule
is still about 31 pt shorter than TeX (horizontal density); the denominator is
still 3 pt deeper.
Both CMR figure/table samples remain two pages with image matrix
[132,48,174,744]. General vertical fixes change text placement, so the old
non-math whole-page hash is superseded. Unported atoms, full format boot,
package/class execution, general short-display and text/page unit semantics,
remaining block budgets and float rules are future native-core milestones.
Three pages are still recomputed for fixture formula edits because of earlier
insertion state. Local timings are slower than C and are not p95 guarantees.
## Residual scope
- ORCID is a generated badge, not the original vector logo.
- Times top floats are deferred to the unit-stream end: a scoped arXiv policy,
not a full TeX float algorithm.
- Formula fraction internal width remains approximate.
Details: [MATH_ENGINE_TEX.md](MATH_ENGINE_TEX.md). Current evidence/review PDF:
`/tmp/texrra-math-d/absolute-final.json`, metrics-final.json, fidelity-final.json,
comparison.pdf. Temporary artifacts are not committed.