Description
Using justification can lead to wrong hyphenation
#set page(
paper: "a4",
margin: 2.7cm,
)
#set text(
font: "New Computer Modern",
size: 13pt,
lang: "de",
)
#set par(
justify: true,
justification-limits: (spacing: (min: 66.67% + 0pt, max: 150% + 0pt), tracking: (min: -0.01em, max: 0.015em))
)
Staubecke Staubecke Staubecke Staub Staubecke Staubecke Staubecke Staubeckenbegrenzungsmauer
Leads to a hyphenation of the last word as "Staube-ckenbegrenzungsmauer". "Staubecken" is ambiguous it could either be "dusty corners" and then hyphenated as "Staub-ek-ken" or be "water retention basin" and then hyphenated as "Stau-bek-ken". While testing, what Typst would do, it did a third thing, that is wrong no matter what.
The wrong hyphenation vanishes when the justification-limits are removed, therefore it is a bit hard to trigger.
hyphenationtest.pdf
Operating system
Linux, Web app
Typst version
Description
Using justification can lead to wrong hyphenation
Leads to a hyphenation of the last word as "Staube-ckenbegrenzungsmauer". "Staubecken" is ambiguous it could either be "dusty corners" and then hyphenated as "Staub-ek-ken" or be "water retention basin" and then hyphenated as "Stau-bek-ken". While testing, what Typst would do, it did a third thing, that is wrong no matter what.
The wrong hyphenation vanishes when the justification-limits are removed, therefore it is a bit hard to trigger.
hyphenationtest.pdf
Operating system
Linux, Web app
Typst version