Support native e-TeX middle delimiters and math segments
This commit is contained in:
1 parent
e3be6dcd09
commit
91bb864d8c
8 files changed
+134
-27
No files matched your search
@@ -149,6 +149,13 @@ fn delimiter_variants_recipes_dimensions_and_dvi_positions_match_initex() {
|
||||
r"\left(\textfont0=\sevenrm a\right)",
|
||||
r#"\left(a\delcode41="05D303\right)"#,
|
||||
r"\left(a\over b\right)",
|
||||
r"\left(a\middle|b\right)",
|
||||
r"\left(\vbox to40pt{\vfil}\middle|x\right)",
|
||||
r"\left(\scriptstyle a\middle|b\middle.\scriptscriptstyle c\right)",
|
||||
r"\left(+a+\middle|+b=\middle|=c+\right)",
|
||||
r"\left(a\over b\middle|c\over d\middle|e\over f\right)",
|
||||
r"\left(\left(x\middle|y\right)\middle|\left(a\over b\right)\right)",
|
||||
r"\left(a\middle|^2 b\right)",
|
||||
r"\left(\left.a\over b\right]\right)",
|
||||
r"\left.a+b\right)",
|
||||
r#"\delimiter"4028300 a\delimiter"5029301"#,
|
||||
@@ -273,8 +280,11 @@ fn delimiter_variants_recipes_dimensions_and_dvi_positions_match_initex() {
|
||||
x: x + p.x,
|
||||
y: p.y,
|
||||
}),
|
||||
MathItem::Glyph { .. } | MathItem::PdfImage(_) | MathItem::OpenType(_) => {
|
||||
panic!("legacy glyph identity in strict native math")
|
||||
MathItem::Glyph { .. }
|
||||
| MathItem::PdfImage(_)
|
||||
| MathItem::PdfForm(_)
|
||||
| MathItem::OpenType(_) => {
|
||||
panic!("unexpected item in the TFM math comparison")
|
||||
}
|
||||
MathItem::Rule { width, height } => {
|
||||
rules.push((x + p.x, p.y, *width, *height))
|
||||
@@ -392,6 +402,8 @@ fn unsupported_delimiter_fields_ranges_and_geometry_capacity_fail_strictly() {
|
||||
r"\advance\catcode65 by1",
|
||||
r"$\left a b\right)$",
|
||||
r"$\right)a$",
|
||||
r"$\middle|a$",
|
||||
r"$\left(\begingroup a\middle|b\endgroup\right)$",
|
||||
r"$\left(a$",
|
||||
r"$\left(a}$",
|
||||
r"$\left(\begingroup a\right)\endgroup$",
|
||||
|
||||
Reference in new issue
Block a user