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

+5
View File
@@ -339,6 +339,11 @@ fn build_document(paragraphs: &[SourceParagraph]) -> Document {
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: paragraph.line_height * SCALE,
char_width: 10 * SCALE,
space_width: 4 * SCALE,