diff --git a/desktop/build-windows-backend.py b/desktop/build-windows-backend.py index 4e52eb5..f7396be 100644 --- a/desktop/build-windows-backend.py +++ b/desktop/build-windows-backend.py @@ -7,6 +7,7 @@ import json import lzma import os from pathlib import Path, PurePosixPath +import re import shutil import stat import struct @@ -162,13 +163,26 @@ def prepare_formats(output): stdin=subprocess.DEVNULL, check=True, ) + finish_formats(output) + + +def finish_formats(output): + formats = output / "formats" for name in FORMAT_MODES: - directory = output / "formats" / name + directory = formats / name for filename in ("latex.tfx", "texsys.aux"): path = directory / filename if not path.is_file() or not path.stat().st_size: raise ValueError(f"Missing generated {name} format input: {filename}") (directory / "latex.log").unlink(missing_ok=True) + # INITEX records its generated files in a private ledger. Only the image + # and its captured scratch input travel with the release. + for path in formats.iterdir(): + if path.name in FORMAT_MODES: + continue + if not path.is_file() or not re.fullmatch(r"[a-f0-9]{64}\.(json|lock)", path.name): + raise ValueError(f"Unexpected item in generated formats: {path.name}") + path.unlink() def stage(args, output): diff --git a/docs/P2_M1_PROGRESS.md b/docs/P2_M1_PROGRESS.md index e5b701c..cdc8b4f 100644 --- a/docs/P2_M1_PROGRESS.md +++ b/docs/P2_M1_PROGRESS.md @@ -18,6 +18,39 @@ | W6 会话 | 实施中 | 共享库/CLI 与当前原生文字/数学/规则来源进入公共结果;真实 A4 副本九类/27 revision 与独立干净作业页面/PDF/aux/映射一致,新增数学场景独立参考通过;详细失败/捕获重放及宿主/离线/CLI观察已通过;原子项目版本/已知生成初态及TeX流记录已接通;原样 12 页 NeurIPS 的中部编辑与恢复已验证前后缀复用、仅更新一页,且与独立全量一致。全部副作用/交叉编辑、旧来源与正式性能门禁仍待闭合 | | W7 总验收 | 未满足 | 原有和新增测试、原样项目、格式与会话门禁全部通过才能结项 | +## 2026-12-03 Texrra 0.1.11 Windows 启动与编辑延迟 + +Windows 安装包内含可迁移的 Unicode 和 pdfLaTeX 格式。实际桌面 +实测 0.1.10 在此机首次生成 Unicode 格式花了 307.25 秒。 +0.1.11 从新的 Windows 私有数据目录和不同于构建目录的位置 +启动,直接使用两份随包格式。原始构建路径已移走。 + +同一台 Windows 电脑用已装 0.1.10 和从安装包解出的 0.1.11 +打开同样的三个项目。桌面窗口通过可信输入事件各做三次正文修改。 +旧版中文首开包含格式生成,两份旧 ZIP 沿用已缓存的 pdfLaTeX 格式。 +新版首页允许在完整 PDF 就绪前显示,参考文献按正常步骤稳定。 + +| 项目 | 点击至首页 | 点击至 PDF 就绪 | 编辑至预览中位数 | +| --- | ---: | ---: | ---: | +| 中文新项目 | 347.23 秒 → 12.68 秒 | 347.49 秒 → 21.43 秒 | 16.33 秒 → 7.83 秒 | +| arXiv 原版 | 58.13 秒 → 11.40 秒 | 58.14 秒 → 28.73 秒 | 8.02 秒 → 3.27 秒 | +| Springer 双栏 | 60.27 秒 → 12.88 秒 | 60.28 秒 → 41.26 秒 | 9.35 秒 → 6.61 秒 | + +完整编译继续校验源文件、依赖和生成的 AUX。导言区未改时可保留 +正文前的执行状态。Windows 文件检查在单次扫描内复用同一目标的查询。 +三个样例的初始 PDF 和各三次编辑后导出的 PDF 共 12 份,均与旧版逐字节一致。 +包含裸 CTeX 和中文正文的 arXiv 另测生成 4 页,中文、Fandol 字体 +及参考文献均核对通过。新包该样例从项目准备到首份完整 PDF 为 61.17 秒。 + +中文样例热编辑仍执行约 2,710 万步。限制步数的诊断显示,执行到 +100 万步时仍在读取 ts1enc.def,1,200 万步时处于 fontspec-xetex.sty +的宏定义。当前断点记录了提前读入的位置,宏包加载尚未结束。后续 +应捕捉宏包加载完成后的执行状态,并沿用依赖及回放校验。 + +构建提交 `830292b`。Windows 安装包在下载目录 +`Texrra-0.1.11-test`。实测回执放在 +`target/p4-desktop-template-latency/installed-performance/comparison.json`。 + ## 2026-12-02 Texrra 0.1.10 Unicode 默认模式 - Windows 桌面和双格式项目库的新建项目默认 Unicode。仍由同一