Skip to content

Wrong hyphenation of German word "Staubeckenbegrenzungsmauer" #33

Description

@orangenschalen

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

  • I am using the latest version of Typst

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions