Honour raggedright and raggedleft paragraph alignment

This commit is contained in:
gloamxun committed 2026-10-19 14:16:50 +08:00
1 parent c7b7660049
commit 2c8d5e12d8
13 files changed
+238 -40

No files matched your search

+5 -10
View File
@@ -9,7 +9,8 @@ family and true scaled small caps; inline box geometry (`\fbox`, `\makebox`,
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
contents and figure/table lists; native PDF rectangles; unified pagination;
`\raggedright`/`\raggedleft` declarations and environments
(`build_positioned_pages` is the only page builder and no separate break
planner remains).
@@ -19,24 +20,18 @@ planner remains).
per-page float queue with `\textfraction`/`\topfraction` tuning so a later
float can move ahead of text while preserving source order numbers.
## 2. Paragraph alignment declarations (remaining)
- `\raggedright`/`\raggedleft` are parsed as no-ops. Thread a per-paragraph
alignment into `Block::Paragraph`, then select natural spaces rather than
justification in `boxworks_line_break`/`cached_paragraph_lines`.
## 3. True vertical boxes (remaining)
## 2. True vertical boxes (remaining)
- `\vbox`/`\vtop` currently 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)
## 3. 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)
## 4. 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.