Commit Graph
92 Commits
Author SHA1 Message Date
gloamxun 651fab42f1 Expand native Unicode character primitives and definitions 2026-11-21 11:58:23 +08:00
gloamxun d17680fcd8 Execute Unicode math codes and measured OpenType math characters 2026-11-21 11:47:56 +08:00
gloamxun ce8a780031 Execute positioned TeX specials through native PDF devices 2026-11-21 11:24:46 +08:00
gloamxun b681f9791a Reduce repeated macro tracing and input position work 2026-11-21 10:54:11 +08:00
gloamxun 70822cbd94 Shape and render explicit OpenType fonts in native Unicode jobs 2026-11-21 10:35:03 +08:00
gloamxun 3caf1eced2 Render Type1 map slant and extension in PDF and SVG 2026-11-21 10:04:48 +08:00
gloamxun 28dfba5a5e Apply job-local PDF font maps at execution and shipout 2026-11-21 09:53:31 +08:00
gloamxun 9527d3bbec Reject automatic expansion of bitmap fonts at PDF shipout 2026-11-21 09:38:18 +08:00
gloamxun 45b79fc5a5 Apply inherited virtual font expansion limits 2026-11-21 09:27:10 +08:00
gloamxun 614f09aa9b Register virtual fonts in native PDF shipout order 2026-11-21 09:18:03 +08:00
gloamxun b008c0693a Separate format font metrics from live expansion links 2026-11-21 08:43:02 +08:00
gloamxun 9b80a782cf Allocate native automatic font expansion instances 2026-11-21 08:27:32 +08:00
gloamxun 75d3667397 Bind native format jobs to their validated pdfTeX revision 2026-11-21 06:43:26 +08:00
gloamxun f66a5a7e20 Implement native letterspaced fonts and virtual glyph placement 2026-11-21 05:48:44 +08:00
gloamxun 297431a547 Retain signed glue in native display lists 2026-11-21 03:56:17 +08:00
gloamxun d1ddf4bfeb Apply native PDF page dictionaries and viewport projection 2026-11-21 03:31:00 +08:00
gloamxun 514a2d3344 Write PDF interword spaces with actual device fonts 2026-11-21 03:09:10 +08:00
gloamxun b647bd8dcd Support native PDF font dictionaries and running link controls 2026-11-21 02:46:57 +08:00
gloamxun 60d7411dfe Bind native last-link numbers to shipped PDF annotations 2026-11-21 02:31:43 +08:00
gloamxun d46d6d79a8 Expose stored left and right margin kerns from native boxes 2026-11-21 02:13:39 +08:00
gloamxun 432c1d2ba7 Emit native PDF literals at scan and shipout boundaries 2026-11-21 02:03:25 +08:00
gloamxun 13ab32247d Implement native paragraph token naming and execution contexts 2026-11-21 01:49:10 +08:00
gloamxun 862801ee5f Preserve alignment boundaries when matching hash-brace macros 2026-11-21 01:36:06 +08:00
gloamxun 307303d596 Resolve expandable PDF page references to shipped page objects 2026-11-21 01:25:00 +08:00
gloamxun 5c2ba9fad0 Implement pdfTeX random primitives with checkpointed state 2026-11-21 01:10:55 +08:00
gloamxun 4f4a4567ea Emit native PDF page resources and named transparency states 2026-11-21 00:53:46 +08:00
gloamxun 6d54af5350 Expand deferred TeX input without recursive dispatch frames 2026-11-20 23:40:14 +08:00
gloamxun ebbc9e2c17 Implement native automatic font expansion for paragraphs 2026-11-20 23:29:37 +08:00
gloamxun 4777d66fc8 Apply native font protrusion during line breaking and packing 2026-11-20 17:18:25 +08:00
gloamxun 6e573dc1ce Run cancellable pdfTeX matching in native frontends 2026-11-20 16:43:48 +08:00
gloamxun 091458d329 Verify schema 28 format round trips and rejection gates 2026-11-20 16:21:19 +08:00
gloamxun 4eeb5686b8 Implement native text accents for unmodified LaTeX jobs 2026-11-20 16:15:30 +08:00
gloamxun 0a21eb27a7 Reuse session-verified source versions in native source maps 2026-11-20 14:18:42 +08:00
gloamxun ee22f25ee0 Resolve TeX inputs with the default suffix alternatives 2026-11-19 20:01:08 +08:00
gloamxun 38e4822370 Integrate native repeat boxes and PDF bookmarks 2026-11-19 16:06:28 +08:00
gloamxun 9ce878efd4 Match paragraph tokens in macro delimiters 2026-11-19 15:06:50 +08:00
gloamxun 72ed779749 Promote verified native PDF and box capacity support 2026-11-19 14:39:39 +08:00
gloamxun f4b003bd27 Write native PDF catalogs and open actions 2026-11-19 08:54:04 +08:00
gloamxun a53d9c9bf9 Implement native PDF links and vertical discard lists 2026-11-18 23:39:45 +08:00
gloamxun 2741546ca8 Advance native LaTeX execution and preview 2026-11-18 22:17:21 +08:00
gloamxun 01b3f518cb Add bounded line expansion for Times body text 2026-10-28 23:19:16 +08:00
gloamxun 2f9b18c95c Reserve display skips around math
TeX surrounds each display with \abovedisplayskip above and \belowdisplayskip
below, but route-D only reserved the paragraph's own spacing, so displays sat
directly against the surrounding text. Parse the four registers (including the
short forms), default to the article-class 10/11/12pt values, and add them to
the math unit and the unit that follows it.

The glue parser now also accepts the class-file spelling
(`\abovedisplayskip 7\p@ \@plus 2\p@ \@minus 5\p@`), register copies such as
`\belowdisplayskip \abovedisplayskip`, `\z@`/`\p@` dimensions and
space-separated assignments, which clears the display-skip warnings the arXiv
template produced.

A page oracle sets a 45pt above skip and pins the display moving to the second
page exactly as pdfLaTeX lays it out; unit tests cover the defaults, overrides
and the class-file spelling.
2026-10-26 22:49:41 +08:00
gloamxun 8ac2e828df Honour club and widow penalties on paragraph lines
Route-D expanded a paragraph into one node per line without TeX's
\clubpenalty/\widowpenalty, so a page break could orphan the first line or
widow the last. Insert the penalties between line nodes (150 by default, read
from the source registers) and make the page builder reject any penalty of
10000 or more as a breakpoint. Forced -10000 values now break exactly where
pdfLaTeX does; two page oracle fixtures compare per-page text, and unit tests
cover the node order and the forbidden breakpoint.
2026-10-26 22:14:01 +08:00
gloamxun 83f49db49e Sort oracle word boxes before grouping lines
pdftotext 26 does not always emit words in reading order: wide justified gaps and hyphenated lines interleave words from different baselines, so parse_bbox split one visual line into several. Sort by baseline and then x before grouping. It also reports each word box as the font extent, whose ascent varies with type size; compare display limits by the subscript/superscript baseline gap, which is anchor-free, instead of mixing 7pt box tops with the 10pt base.
2026-10-26 22:03:25 +08:00
gloamxun 8e274a252d Separate table columns by twice tabcolsep 2026-10-26 04:09:57 +08:00
gloamxun d89b71bfbc Measure table cells with Computer Modern metrics 2026-10-26 04:07:29 +08:00
gloamxun 569160f805 Check stacked limits against pdfLaTeX 2026-10-26 00:59:19 +08:00
gloamxun 52a74755f7 Check matrix and cases positions against pdfLaTeX 2026-10-26 00:53:40 +08:00
gloamxun aaa1ed8213 Map Type1 glyphs through their requested Unicode 2026-10-25 01:14:54 +08:00
gloamxun 7e006cea86 Cover Greek text through the Liberation fallback 2026-10-25 00:53:17 +08:00