Skip to content

render-pipeline: set \TeX/\LaTeX logos, \rule and text kerns (stacked; needs vendor re-pin) - #129

Closed
GoKubar wants to merge 1 commit into
agent/kabir-claude/text-logos-rule-symbolsfrom
agent/kabir-claude/text-logos-rule-symbols-pipeline
Closed

GoKubar wants to merge 1 commit into
agent/kabir-claude/text-logos-rule-symbolsfrom
agent/kabir-claude/text-logos-rule-symbols-pipeline

Conversation

@GoKubar

@GoKubar GoKubar commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

Stacked on the compiler-only PR (agent/kabir-claude/text-logos-rule-symbols). This does not build until the Commander re-pins vendor/compiler, and that re-pin must also add vendor/tex-text-encoding and vendor/tex-boxes, which the compiler now path-depends on. No vendor/ files are touched here.

What

  • Adapter:
    • new items Logo, Rule and Kern;
    • a control space \ is interword glue at space factor 1000, after which blanks are skipped;
    • blanks after a symbol's control word (\AA ngstr) are skipped;
    • only a typed ~ is a tie (\textasciitilde is the character).
  • Typeset:
    • logo glyph boxes sit at text_builtins::layout_logo's positions, computed from the ec-lm* TFMs through pl::Item::kern (no break points). A is raised and E lowered through a new BoxRec::Text::raise; \LaTeXe's ε is a math box shifted through MathRec::raise;
    • \rule is a box whose painted part spans rule_bottom..rule_top (BoxRec::Rule::bottom), and struts paint nothing;
    • text kerns resolve against the face's quad.
  • Math-mode \rule: its width is kept as glue and reported as a math_limitation, because math-layout has no rule atom.

Verification (uncommitted scratch copy: main 1d4604d pipeline + this patch + the compiler PR in vendor)

  • cargo test --release: green.
  • HW1/HW2 display lists are byte-identical to main's pipeline.
  • Real-world corpus: target diagnostics 58 → 0, no page count changed, no diagnostic added.
  • cv paints its 5 section rules (0.6pt × 6.9in at the \cvsection spans).

Known limitations

  • The pipeline picks ec-lmr8 metrics for sizes below 8.5pt, so the 7pt A of \LaTeX at 10pt uses ec-lmr8 widths/heights where pdfLaTeX uses ec-lmr7. The construction itself is oracle-exact in the compiler PR.
  • The pipeline has no sans family, so \textsf{\LaTeX} is set in the roman face.
  • \LaTeXe's ε is not bold under \textbf (no \boldmath math fonts), and its sub1 uses lmsy's .15em ratio.
  • \linewidth inside lists resolves to the text width, and math \rule is not painted.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xd5Hmwh5GHNTiAmHUJ1MZu

… space

Stacked on agent/kabir-claude/text-logos-rule-symbols (compiler-only).
Needs the Commander's vendor re-pin of crates/compiler (which now also
path-depends on tex-text-encoding and tex-boxes) before it builds; no
vendor/ files are touched here.

Adapter items Logo/Rule/Kern: typeset places each logo glyph box at
text_builtins::layout_logo's position from the ec-lm TFMs (raised A,
lowered E, \LaTeXe's epsilon as a shifted math box), \rule as a box whose
painted part spans rule_bottom..rule_top (struts paint nothing), text
kerns as paragraph-layout kerns. Control space is interword glue at space
factor 1000; blanks after a symbol control word are skipped; only a typed
~ is a tie. Math-mode \rule keeps its width as glue with a
math_limitation (math-layout has no rule atom).

Verified in an uncommitted scratch copy with this compiler swapped into
vendor: cargo test --release green; HW1/HW2 display lists byte-identical;
real-world corpus target diagnostics 58 -> 0, no page count changed.

Implementation-Agent: Claude Opus 5 (subagent kabir-claude text logos rule symbols, 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
@jay3332

jay3332 commented Sep 13, 2026

Copy link
Copy Markdown
Member

Merged to main via integration/2026-09-13k (Commander).

@GoKubar
GoKubar deleted the branch agent/kabir-claude/text-logos-rule-symbols September 13, 2026 18:12
@GoKubar GoKubar closed this Sep 13, 2026
@GoKubar
GoKubar deleted the agent/kabir-claude/text-logos-rule-symbols-pipeline branch September 13, 2026 18:51
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