diff --git a/README.md b/README.md index 801a533..ba1fe2d 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,22 @@ # texrra engine -Rust-native, Typst-inspired incremental LaTeX engine with a live preview -server. Typesetting is implemented in Rust; the engine does not invoke XeLaTeX, -LuaLaTeX, or pdfLaTeX. The web frontend is a separate repository, -[`texrra-web`](https://git.iloveuulove.me/gloamxun/texrra-web), served by this -engine as static files. +Texrra is building a TeX engine for live editing of existing LaTeX projects. +It tracks inputs and compilation state, reuses eligible work after edits, +and publishes updated pages with source locations. The delivery targets are +a library, a CLI, and editor integration. The current Route-D implementation +is the development baseline. Upstream TeX components are candidates for reuse +where their state, file effects, and cancellation can be verified. + +The [product goal](docs/NATIVE_PRODUCT_GOAL.md) defines compatibility and live +preview acceptance. The [publisher matrix](docs/PUBLISHER_TEMPLATE_MATRIX.md) +covers original journals, two-column journals, conferences, and arXiv. ## Native execution bootstrap -Route-D's native token/state kernel has a strict developer entry. Its target is -portable, complete LaTeX execution and real-time compilation; the web interface -is a test client. The full [P2-M1 stage](docs/NATIVE_FORMAT_ARTICLE_STAGE.md) -is active and incomplete; [current progress](docs/P2_M1_PROGRESS.md) records the -accepted components and remaining work. +The current Route-D entry is available through the developer CLI and the native +editor example. Its implementation and remaining work are tracked in the +[stage progress](docs/P2_M1_PROGRESS.md). The separate frontend repository +is [texrra-web](https://git.iloveuulove.me/gloamxun/texrra-web). Native fonts come from an explicit resource World. For the checked-in examples, configure the actual TFM/PFB directories and an installed font-map directory: @@ -54,13 +58,12 @@ or source preprocessing. It now carries actual sized FontId resources through text, math, geometry, SVG and PDF. Live fontdimen and em/ex affect their real consumers; output uses actual map/encoding/PFB resources. See [native font execution and boundaries](docs/NATIVE_FONT_EXECUTION.md). -HTTP/project routes still use the older implementation and have not migrated -to this kernel. +The native editor example exercises the shared compile session and page +updates. The production HTTP routes still use the older implementation. +Format boot, active compatibility gaps, and whole-project results are tracked +in the [stage progress](docs/P2_M1_PROGRESS.md). -The e-TeX profile remains partial. Unmodified latex.ltx currently stops at -657:3, tracinggroups, using the actual native job target; the complete -pdflatex.ini entry now enters latex.ltx and stops at the same boundary. Neither -is a successful format boot. [Streaming TFM keep/pass/boundary execution](docs/NATIVE_FONT_PROGRAMS.md) is +[Streaming TFM keep/pass/boundary execution](docs/NATIVE_FONT_PROGRAMS.md) is connected to actual lists. [Owned discretionary branches and actual ligature hyphenation/reconstitution](docs/NATIVE_DISCRETIONARIES.md) now feed line breaking, packing, diagnostics and output. [Two-pass mathematical noad ligature/kern and diff --git a/docs/NATIVE_PRODUCT_GOAL.md b/docs/NATIVE_PRODUCT_GOAL.md index 2f8ecbe..8c22a42 100644 --- a/docs/NATIVE_PRODUCT_GOAL.md +++ b/docs/NATIVE_PRODUCT_GOAL.md @@ -25,8 +25,9 @@ Tectonic 的 XeTeX 入口在进程级锁内运行,桥接层能提供输入输 [Tectonic 桥接层](https://github.com/tectonic-typesetting/tectonic/blob/master/crates/bridge_core/src/lib.rs#L271-L288) 原样 A4 在连续子文件编辑中,取消旧作业的浏览器观测 p95 已低于100 ms。 -新编辑到可见页面的 p95 仍高于250 ms。接下来分解编译准备、执行复用和页面 -交付,继续按固定预算及逐版本全量一致性验收。 +当前两轮原样 A4 主文件编辑的可见 p95 为224.0和208.6 ms,仍需达到100 ms +门禁。评估上游执行入口时,分别测量编辑到可见页面、可恢复的状态范围与 +全量一致性,并记录完整重新执行的成本作为基线。 [阶段测量与回执](P2_M1_PROGRESS.md) ## 2026-11-11 总目标重新确认 diff --git a/docs/P2_M1_PROGRESS.md b/docs/P2_M1_PROGRESS.md index e5b71b0..6087348 100644 --- a/docs/P2_M1_PROGRESS.md +++ b/docs/P2_M1_PROGRESS.md @@ -655,7 +655,9 @@ SHA-256 为 `d2fa1a80f378445e1dccc29378cfc1546d94e823a49f460bffda827ba5790b0d` 回执 `a3-shared/test.log` 与 `a3-manual/test.log` SHA-256 为 `34fd27652fb0afb59deaee5b68c0dcede8bd2d8e38460746031f134d698683f6`、 `f4c65f08d98a2c15544dde3f3bd82cc57f7f139fbd50782541a04e65cc407d03`。 -完整工作区和原样模板复验在同一补丁上运行。 +同一优化程序已完成14项原样模板复验。原版工具生成14份 PDF,原生生成 +5份,成功项的页数、词框和逐轮 aux 与各自前次结果一致。逐项回执见 +[出版模板矩阵](PUBLISHER_TEMPLATE_MATRIX.md)。完整工作区回归在同一补丁上运行。 为验证可停止的匹配方式,用 GNU 正则子进程独立测量管道往返。6个对照 覆盖最长选择、反向引用、字节位置、大小写、无匹配和模式错误。60次 @@ -663,7 +665,11 @@ SHA-256 为 `d2fa1a80f378445e1dccc29378cfc1546d94e823a49f460bffda827ba5790b0d` 耗时1.360 ms,旧作业未产生匹配答复,随后新的 helper 返回实际匹配。 `target/p3-pdfmatch-worker-probe/receipt.json` 的 SHA-256 为 `492bd9a411e6547b41bf294061e45c8c79567107e4f8d959e92a2843a5cf170a`。 -目前只完成独立进程探针,编译会话接线仍待验收。 +另将旧候选真实编译 arXiv、ACL 与 NeurIPS 时的165次请求原样重放至 +独立进程,三个样稿各55次。匹配状态、每个捕获及其字节位置全部一致。 +`target/p3-pdfmatch-worker-probe/publisher/receipt.json` 的 SHA-256 为 +`df24011752225937af162b6faa8c6f9bd8a35e609653dd472f50d4004adafc3c`。 +编译会话接线在隔离候选上验收。 ### TeX 输入的默认扩展名候选 diff --git a/docs/PUBLISHER_TEMPLATE_MATRIX.md b/docs/PUBLISHER_TEMPLATE_MATRIX.md index 6ba54c8..4d227e8 100644 --- a/docs/PUBLISHER_TEMPLATE_MATRIX.md +++ b/docs/PUBLISHER_TEMPLATE_MATRIX.md @@ -384,6 +384,17 @@ ACL 和 NeurIPS 原生首处诊断均为 `\MT@protrudechars`,分别位于 四项复跑及分范围合并回执 `publisher-followup/receipt.json` 的 SHA-256 为 `65ee11dea157174e282033cf993a8bfd1e5e0989bab48fe73df1ab7005bd7e19`。 +### 主线文件身份扫描调整后的原样复验 + +主线 `24ea6ef` 的同一优化程序独立复跑14项。分别使用已验证的基础、 +NeurIPS、ACM 编译环境。源文件、模板归档、格式和字体映射均按对应基线 +校验。14份参考 PDF 生成,全部 aux 收敛且无未定义引用告警。原生生成 +Springer Nature、IEEE Transactions 双栏 starter、IEEE Conference starter、 +Springer LNCS、CVPR 2026 共5份 PDF。成功项的页数、词框和逐轮 aux 与各自 +上一次结果一致,其他9项的首条诊断一致。三组报告及逐项复验汇总见 +`target/p4-alias-scan-identity/publisher/receipt.json`,SHA-256 为 +`a8aa32d5f9ca829dd121018300cd07f9f996b3aad17b11b3549bbbe49ee8ac3b`。 + ### ACM 的三类官方样例 新增 ACM acmart v2.21 的单栏期刊 `acmsmall`、双栏期刊 `acmtog` 和会议