Expand native Unicode character primitives and definitions
This commit is contained in:
1 parent
d17680fcd8
commit
651fab42f1
7 files changed
+227
-31
No files matched your search
@@ -2175,6 +2175,33 @@ PDF,恢复实际 PFB 并反转斜切时复用 1277 步,只替换第二页。
|
||||
全量编译一致。incremental-receipt.json 的 SHA-256 为
|
||||
bbc0991b0316e6d76aa58649ec873525f5544ab530d93fe491fc6e16bd00a27d。
|
||||
|
||||
### Unicode 字符定义和展开
|
||||
|
||||
原生 Unicode 入口的 \chardef 可保存并查询 0–U+10FFFF 的字符编号。
|
||||
\Uchar 生成普通字符或空格,\Ucharcat 保留指定的类别,类别 13 进入
|
||||
实际活动命令的名字空间。生成的 token 保留调用来源。\char 在水平列表
|
||||
接受完整的 Unicode 字符编号,在数学列表按 XeTeX 扫描 16 位编号。
|
||||
数学中的 \chardef 别名独立使用它保存的完整编号。8 位入口保有原范围,
|
||||
新命令只安装在 Unicode 入口。代理码点可以通过 \chardef 保存为数值,
|
||||
要求实际生成标量 token 时会报告错误。
|
||||
|
||||
24 项定向回归通过。schema59 的真实格式写入和重载覆盖宽定义、活动
|
||||
字符和普通字符的区别,未改动的 schema58 仍可重载。以相同的源码和
|
||||
实际 Latin Modern Math 字体对照 XeTeX 0.999998,字符展开输出逐项一致,
|
||||
两个盒的 sp 尺寸及七个字形的编号、位置一致,一页 600 dpi 灰度图一致。
|
||||
证据位于 target/p3-xetex-unicode-chars,含原始 XDV、原生布局清单、
|
||||
geometry-receipt.json、各次参考结果和首轮参考缺少数学字体的失败记录。
|
||||
|
||||
原样 xelatex.ini 越过此前 latex.ltx 第 397 行的 \chardef=256,在
|
||||
执行 11418041 步后停于 expl3-code.tex 第 35859 行的数据读取。
|
||||
expl3 通过 \Umathcode 选择 Unicode 生成路径,通过引擎识别分支计算
|
||||
的字符上限仍是 255,因此 U+0100 触发 out-of-range。完整现场见
|
||||
target/p3-xetex-unicode-chars/xelatex-native/failure.json。接续核对
|
||||
XeTeX profile、版本和后端选择所需的实际原语,以及其对格式与项目
|
||||
身份的影响。原样 XeLaTeX 格式、类包矩阵和实时性能门禁仍待完成。
|
||||
[XeTeX 字符生成](https://github.com/TeX-Live/texlive-source/blob/trunk/texk/web2c/xetexdir/xetex.web#L10457-L10472)
|
||||
[XeTeX token 类别](https://github.com/TeX-Live/texlive-source/blob/trunk/texk/web2c/xetexdir/xetex.web#L10049-L10086)
|
||||
|
||||
### Unicode 数学编码和实际数学字形
|
||||
|
||||
Unicode 入口的经典 \mathcode 与 \Umathcode、\Umathcodenum 共用
|
||||
|
||||
Reference in new issue
Block a user