Apply e-TeX line penalty arrays to native pagination
This commit is contained in:
1 parent
09cd19594c
commit
c094d9a81d
12 files changed
+243
-24
No files matched your search
@@ -2356,6 +2356,7 @@ impl Executor {
|
||||
p @ (Primitive::Wd | Primitive::Ht | Primitive::Dp | Primitive::Prevdepth),
|
||||
) => self.dimension_value(p, files),
|
||||
Meaning::Primitive(Primitive::Parshape) => Ok(self.read_paragraph_shape().len() as i32),
|
||||
Meaning::Primitive(Primitive::LinePenalties(kind)) => self.line_penalty_value(kind, files),
|
||||
Meaning::Primitive(Primitive::Prevgraf) => {
|
||||
if self.writing {
|
||||
Ok(0)
|
||||
@@ -3336,6 +3337,7 @@ impl Executor {
|
||||
}
|
||||
Primitive::Etexversion => "eTeXversion".into(),
|
||||
Primitive::Etexrevision => "eTeXrevision".into(),
|
||||
Primitive::LinePenalties(kind) => kind.name().into(),
|
||||
Primitive::Uchar => "Uchar".into(),
|
||||
Primitive::Ucharcat => "Ucharcat".into(),
|
||||
Primitive::Umathcode => "Umathcode".into(),
|
||||
@@ -4514,6 +4516,7 @@ impl Executor {
|
||||
self.scan_math_code_assignment(p, global, files)?;
|
||||
}
|
||||
Some(Parshape) => self.scan_paragraph_shape(global, files)?,
|
||||
Some(LinePenalties(kind)) => self.scan_line_penalties(kind, global, files)?,
|
||||
Some(Setbox) => {
|
||||
if !allow_setbox {
|
||||
return self.fail("improper native setbox in an assignment prefix");
|
||||
|
||||
Reference in new issue
Block a user