Use CMR10 metrics in the M1 paragraph builder
This commit is contained in:
1 parent
e6da4d2fa7
commit
bf5dae3797
5 files changed
+150
-8
No files matched your search
+7
-5
@@ -42,8 +42,10 @@ class execution are still ahead.
|
||||
|
||||
- `HorizontalItem::{Box, Glue, Penalty}` and `HorizontalBox` as the horizontal
|
||||
list model;
|
||||
- `ParagraphStyle` with `line_width`, `par_indent`, `line_height`, fixed
|
||||
character/space metrics and glue stretch/shrink;
|
||||
- `ParagraphStyle` with `line_width`, `par_indent`, `line_height` and glue
|
||||
stretch/shrink;
|
||||
- `Cmr10Metrics`, a CMR10 ASCII width table extracted from `cmr10.tfm` with
|
||||
`tftopl`, plus the fontdimen space/stretch/shrink values;
|
||||
- an item-stream Knuth-Plass-style dynamic program over character boxes, glue and penalty breakpoints that minimizes badness from
|
||||
glue stretch/shrink, allows overfull lines with an explicit overfull penalty,
|
||||
applies `par_indent` to the first line, and emits justified glue;
|
||||
@@ -68,7 +70,7 @@ next paragraph milestones.
|
||||
| Milestone | Content | Acceptance |
|
||||
| --- | --- | --- |
|
||||
| M0 | vertical list, page builder, checkpoint, page hash, edit demo | edit on page 2 rebuilds only page 2 |
|
||||
| M1 | TeX box/glue/penalty + paragraph builder (`\par`, `\hsize`, `\parindent`) | **partial**: item model + word-level breaker implemented; hyphenation/TFM/pdfTeX parity next |
|
||||
| M1 | TeX box/glue/penalty + paragraph builder (`\par`, `\hsize`, `\parindent`) | **partial**: item stream, CMR10 metrics and breaker implemented; hyphenation/pdfTeX parity next |
|
||||
| M2 | page builder + `\output`, `\vsize`, `\topskip`, footnotes, floats | one-column article matches reference pages |
|
||||
| M3 | `\halign`, `\omit`, `\span`, `\multispan`, booktabs/longtable | table width/rules match reference |
|
||||
| M4 | math lists, scripts, fractions, radicals, accents, delimiters | arXiv formulas render without overlap |
|
||||
@@ -78,8 +80,8 @@ next paragraph milestones.
|
||||
|
||||
## Current limits
|
||||
|
||||
- The M1 paragraph builder is word-level with fixed metrics; it does not yet
|
||||
hyphenate, honor all penalties, or use TFM font metrics.
|
||||
- The M1 paragraph builder uses a CMR10 ASCII metric table; it does not yet
|
||||
hyphenate, honor all penalties, apply kerning/ligatures, or parse arbitrary TFM files.
|
||||
- Page breaking only handles vertical boxes/glue; vertical penalties are recorded
|
||||
but not interpreted.
|
||||
- No macro state, output routine, math, fonts or PDF output in the new core yet.
|
||||
|
||||
Reference in new issue
Block a user