Model TeX demerit registers and hyphenation exceptions

This commit is contained in:
gloamxun committed 2026-10-23 01:12:52 +08:00
1 parent 3725cca9d7
commit 24a96d1c7c
5 files changed
+153 -34

No files matched your search

+20
View File
@@ -21,6 +21,11 @@ fn body_style() -> ParagraphStyle {
tolerance: 200,
hyphen_penalty: 50,
ex_hyphen_penalty: 50,
double_hyphen_demerits: 10_000,
final_hyphen_demerits: 5_000,
line_penalty: 10,
adj_demerits: 10_000,
hyphenation_exceptions: Vec::new(),
line_height: 12 * 65_536,
char_width: font.width('x'),
space_width: font.space(),
@@ -162,6 +167,11 @@ fn route_d_page_matches_pdftex_raster_geometry() {
tolerance: 200,
hyphen_penalty: 50,
ex_hyphen_penalty: 50,
double_hyphen_demerits: 10_000,
final_hyphen_demerits: 5_000,
line_penalty: 10,
adj_demerits: 10_000,
hyphenation_exceptions: Vec::new(),
line_height: 12 * 65_536,
char_width: 10 * 65_536,
space_width: 4 * 65_536,
@@ -314,6 +324,11 @@ fn route_d_two_pages_match_pdftex_raster_geometry() {
tolerance: 200,
hyphen_penalty: 50,
ex_hyphen_penalty: 50,
double_hyphen_demerits: 10_000,
final_hyphen_demerits: 5_000,
line_penalty: 10,
adj_demerits: 10_000,
hyphenation_exceptions: Vec::new(),
line_height: 12 * 65_536,
char_width: 10 * 65_536,
space_width: 4 * 65_536,
@@ -596,6 +611,11 @@ fn route_d_multiline_bands_track_pdftex() {
tolerance: 200,
hyphen_penalty: 50,
ex_hyphen_penalty: 50,
double_hyphen_demerits: 10_000,
final_hyphen_demerits: 5_000,
line_penalty: 10,
adj_demerits: 10_000,
hyphenation_exceptions: Vec::new(),
line_height: 12 * 65_536,
char_width: 10 * 65_536,
space_width: 4 * 65_536,