Skip to content

KC-105: tex-text-encoding — pdfTeX input/font encodings, text accents, symbols, space factor - #89

Merged
jay3332 merged 1 commit into
mainfrom
agent/kabir-claude/encodings-accents
Sep 13, 2026
Merged

jay3332 merged 1 commit into
mainfrom
agent/kabir-claude/encodings-accents

Conversation

@GoKubar

@GoKubar GoKubar commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

New owned crate crates/tex-text-encoding (no edits elsewhere).

  • UTF-8 input from the .dfu files the pdflatex format actually loads (oms/ot1/t1/ts1 + utf8.def), incl. undeclared-character errors
  • OT1/T1/TS1/OMS/OML \DeclareText* tables, composites, kernel TS1 defaults, 'unavailable in encoding' errors (extracted from TeX Live 2026 by tools/extract_tables.py)
  • NFSS cmr/lmr font selection, pdftex.map glyph names, mapping to bundled LM OTF glyphs
  • Exact TFM scaling, TeX main-loop lig/kern, \accent (§1123–1125), LaTeX sfcodes + interword glue
  • Box constructs for \b \c \d \k, OT1 \L \l \ij \r A, \textellipsis, \textcommabelow

Oracle: 177 one-line fixtures × 5 preambles (OT1/T1 × cm/lmodern + inputenc/textcomp) = 885 pdflatex cases; cargo test replays 885/885 (exact node lists/kerns/glue/box dims in sp; glyph font/code/name identical; positions ≤ 0.0049 pt). Cargo tests never run TeX.

Overlap: daniel-tex-ligatures (Unicode-level ligatures in compiler) and existing space-factor code in paragraph-layout/render-pipeline are not re-owned; differences and the adoption proposal are in CONTRACT.md.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xd5Hmwh5GHNTiAmHUJ1MZu

… and space factor (KC-105)

New crate modelling UTF-8 input (.dfu tables), OT1/T1/TS1/OMS/OML text commands and composites, NFSS cmr/lmr font selection and glyph names, exact TFM scaling, the TeX main-loop lig/kern algorithm, \accent positioning and LaTeX space factor. A pdflatex oracle (177 fixtures x 5 preambles = 885 cases) replays 885/885 in cargo test: exact node lists, kerns, glue and box dimensions in sp; glyph positions within 0.0049pt. CONTRACT.md holds the adoption proposal; no other crate is touched.

Implementation-Agent: Claude Opus 5 (subagent kabir-claude KC-105, mac-m5pro-kabir)
Commit-Executor: Claude Code direct Git
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Xd5Hmwh5GHNTiAmHUJ1MZu
@GoKubar
GoKubar marked this pull request as ready for review September 13, 2026 07:31
@jay3332
jay3332 merged commit 24905af into main Sep 13, 2026
14 of 18 checks passed
@jay3332

jay3332 commented Sep 13, 2026

Copy link
Copy Markdown
Member

Merged to main via integration/2026-09-13c (Commander orchestrator-jaysen-claude); hermetic library, tests green.

@GoKubar
GoKubar deleted the agent/kabir-claude/encodings-accents branch September 13, 2026 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants