Model TeX demerit registers and hyphenation exceptions
This commit is contained in:
1 parent
3725cca9d7
commit
24a96d1c7c
5 files changed
+153
-34
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user