1.9 KiB
1.9 KiB
Roadmap: remaining structural work
This file lists the concrete implementation plans for the foundational items that are still missing. Each item names the files/functions to touch.
Completed: paragraph indentation (\parindent) and \hfill/\hfil; sans
family and true scaled small caps; inline box geometry (\fbox, \makebox,
\raisebox), \minipage, \vbox/\vtop block approximations;
footnotes/\thanks; figure/table [htbp] placement approximations; page
styles (plain/fancy, \thispagestyle, fancyhdr headers/footers, \thepage);
geometry-aware \textwidth/\textheight named length registers; table of
contents and figure/table lists; native PDF rectangles; unified pagination
(build_positioned_pages is the only page builder and no separate break
planner remains).
1. Deferred float queue
- Figures/tables currently place immediately from their source position. Add a
per-page float queue with
\textfraction/\topfractiontuning so a later float can move ahead of text while preserving source order numbers.
2. Paragraph alignment declarations (remaining)
\raggedright/\raggedleftare parsed as no-ops. Thread a per-paragraph alignment intoBlock::Paragraph, then select natural spaces rather than justification inboxworks_line_break/cached_paragraph_lines.
3. True vertical boxes (remaining)
\vbox/\vtopcurrently map to a full-width block\parbox. A real VBox needs a vertical-material capture with its own natural width, baseline, and nested line/box children in the positioned renderer.
4. Contents leaders (remaining)
- TOC/list entries use infinite glue for right-aligned page numbers. Dotted leaders require a glue item that repeats a character across its stretch.
5. Custom title blocks (remaining)
- Let a document-level
\renewcommand{\maketitle}contribute a real title block once the engine's title model can run box material.