Commit Graph
124 Commits
Author SHA1 Message Date
gloamxun 7e5428ec35 Implement XeTeX native word ActualText across shaping and shipout 2026-11-25 23:38:47 +08:00
gloamxun 97319d751b Recover XeTeX PDF Unicode from actual OpenType glyph mappings 2026-11-25 23:16:13 +08:00
gloamxun 20986b2fd5 Ship XDV annotations from measured page ranges 2026-11-25 21:12:44 +08:00
gloamxun 515dbe6181 Ship XDV document views and PDF outline navigation 2026-11-25 20:32:05 +08:00
gloamxun 8be7867b37 Apply XDV color state and page backgrounds at shipout 2026-11-25 20:09:15 +08:00
gloamxun cc147e93d8 Resolve XDV named destinations at PDF shipout 2026-11-25 19:47:17 +08:00
gloamxun dd695a8945 Merge XDV document information in shipout order 2026-11-25 19:28:12 +08:00
gloamxun 2bd6e19519 Render native XeTeX PNG, JPEG and BMP graphics 2026-11-21 13:58:26 +08:00
gloamxun 794c2f9b2c Include PDF graphics in the native XeTeX device 2026-11-21 13:34:55 +08:00
gloamxun ce8a780031 Execute positioned TeX specials through native PDF devices 2026-11-21 11:24:46 +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 584b708487 Allocate dedicated PDF spaces in the native font catalog at shipout 2026-11-21 07:11:48 +08:00
gloamxun 003d5d8726 Resolve FitR destinations using shipped box geometry 2026-11-21 05:18:07 +08:00
gloamxun 22154b53a6 Resolve native PDF structure destinations and local actions 2026-11-21 05:04:54 +08:00
gloamxun 555a029505 Import PNG images in the native PDF device 2026-11-21 04:13:18 +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 7f74251c8a Track PDF literal transforms in native source maps 2026-11-21 02:23:12 +08:00
gloamxun 432c1d2ba7 Emit native PDF literals at scan and shipout boundaries 2026-11-21 02:03:25 +08:00
gloamxun 307303d596 Resolve expandable PDF page references to shipped page objects 2026-11-21 01:25:00 +08:00
gloamxun 4f4a4567ea Emit native PDF page resources and named transparency states 2026-11-21 00:53:46 +08:00
gloamxun ebbc9e2c17 Implement native automatic font expansion for paragraphs 2026-11-20 23:29:37 +08:00
gloamxun 38e4822370 Integrate native repeat boxes and PDF bookmarks 2026-11-19 16:06:28 +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 e41492b2a0 Keep CMMI/CMSY Type1 math in Times PDFs
The TrueType Times backend also sent math glyphs through Liberation fallbacks,
which changed their size and spacing. Allow the math face slots (6..10) to use
their Computer Modern Type1 programs even when the text backend is TrueType,
and add a PDF test asserting CMMI10 plus LiberationSerif in the same file.

Test count is 1082.
2026-10-28 08:54:55 +08:00
gloamxun e9bbd4bd87 Use Times metrics for ptm documents
Add a merged ptmr8t TFM asset, a TimesRoman paragraph face and Cmr10Metrics
entry, map a ptm Roman paragraph to it, and select the Liberation Serif
TrueType PDF backend for those projects. The title is uppercased rather than
small-capped so its widths use Times metrics.

The arXiv PDF now embeds Liberation Serif for body text; title/author/abstract
land at y=88/173/277pt with three pages and all references. Headings and bold/
italic Times faces still use CMR metrics.

Test count is 1075.
2026-10-28 00:00:34 +08:00
gloamxun 263fa36fb5 Activate dormant tests and clear route-D warnings
Three test functions in texrra-tex-core (PDF metadata, Type1 outline embedding
and \noalign row glue) were missing their #[test] attribute and only produced
dead-code warnings. With the attributes added they pass and raise the core suite
from 439 to 442 tests. The unused `mut` on the PDF entry point geometry is gone
too, leaving no route-D/PDF/lib compiler warnings in `cargo check
--workspace --all-targets`.
2026-10-27 04:09:26 +08:00
gloamxun 2018e5f8b8 Paint framed colorbox backgrounds 2026-10-26 03:08:37 +08:00
gloamxun d88e74cd29 Paint colorbox backgrounds 2026-10-26 03:05:07 +08:00
gloamxun c95cfa5967 Colour link annotation borders 2026-10-26 02:48:57 +08:00
gloamxun 1ab2a29bfa Fill the page background with pagecolor 2026-10-26 02:31:50 +08:00
gloamxun 9ad404acee Paint textcolor runs in named colours 2026-10-26 01:41:00 +08:00
gloamxun a4c4864d2b Nest PDF bookmarks by heading level 2026-10-26 01:20:41 +08:00
gloamxun 5f98c199a5 Write PDF bookmarks for section headings 2026-10-26 01:17:42 +08:00
gloamxun 863e7c1a81 Write PDF metadata from hypersetup 2026-10-26 01:15:02 +08:00
gloamxun aaa1ed8213 Map Type1 glyphs through their requested Unicode 2026-10-25 01:14:54 +08:00
gloamxun c6860b7b4a Fall back per glyph outside the Type1 encodings 2026-10-25 00:03:19 +08:00
gloamxun aa4d86d735 Distinguish slanted from italic and add italic typewriter
Add cmsl10/cmbxsl10/cmitt10 faces so \slshape and \textsl no longer reuse the italic cmti10 and \ttfamily\itshape reaches cmitt10. The NFSS state tracks italic, slanted and small caps separately, with last-shape-wins semantics for \em and the shape commands.
2026-10-24 12:58:41 +08:00
gloamxun e303f7852f Select real Computer Modern small caps
Add the cmcsc10 face for \scshape and \textsc, including its Type1 outline, and compose the sc shape with the surrounding family and series. Bold small caps substitute cmbx10 and a later shape command wins, matching NFSS.
2026-10-24 12:52:15 +08:00
gloamxun 9140990a7d Add sans-serif bold and italic faces
Map \sffamily with \bfseries or \itshape onto the bundled cmssbx10 and cmssi10 metrics, with their Type1 outlines embedded alongside the other Computer Modern faces. Bold italic sans substitutes cmssbx10, matching the OT1 fallback in TeX.
2026-10-24 12:49:30 +08:00
texrra 8c42f2de2f Add Fraktur letters, infix fractions and middle delimiters
- bundle eufm10 (TFM + Type1), add the MathFraktur face and map \mathfrak
  onto it, including PDF embedding and width lookup;
- parse TeX's infix fractions (\over, \atop, \choose, \brace,
  \brack, \overwithdelims, \atopwithdelims): the rest of the current
  row becomes the denominator, ar records whether a rule is drawn, and the
  painter no longer emits parentheses (a \frac painter bug) and only draws
  the bar for \over forms;
- add MathAtom::Middle, size top-level middle delimiters with the enclosing
  \left/\right group through the CMEX size classes, and paint
  SizedDelimiter at its selected size instead of the base glyph;
- skip the parser's '\u{0}' math spaces before \big, \middle,
  \left and the withdelims delimiters, so \big ( parses like \big(.

560 workspace tests (381 route-D unit).
2026-10-24 12:28:33 +08:00
gloamxun cb40cc4634 Draw mathbb letters from msbm10 2026-10-24 12:14:54 +08:00
gloamxun e229809581 Draw mathcal letters from cmsy10 2026-10-24 03:49:55 +08:00
gloamxun 66ceabad0e Draw big operators with cmex10 outlines 2026-10-24 03:46:50 +08:00