Re: [csswg-drafts] [css-text] For most languages, hyphens:auto should not hyphenate Capitalized words (#3927)

Even books aren't necessarily static documents any more, if you consider something other than a novel. Non-fiction books may be updated after their first release, and at that point any custom, manual optimizations may bite you.

At the same time, books remain rather unforgiving wrt to badly justified paragraphs. And even ragged-right may look too ragged if you have any rule that rigidly prevents splitting long words.

The type of algorithm that will produce superior results is one that uses weights, and balances poor choice of hyphenation location with other factors such as uneven line length (and where applicable: unacceptably loose or tight text as result of justifying a line.

Such algorithm should be able to cope well with emergency situations.

In the example the title is a single line. If the window gets too narrow, a weight-based algorithm should be able to detect that

Dokument-
Zeichensatz

works better than 

Dokument-Zeichen-
satz

while for a really narrow column may be more natural than having two lines with overflow:
Doku-
ment-
Zeichen-
satz

The way to influence such an algorithm would be by raising/lowering the priority (weight) for various line-breaking and hyphenation opportunities, but not by crudely turning some of the off or on.

The key would be to define the controls in **_relative_** mode, so that they are not dependent on any absolute weights for a given implementation.

-- 
GitHub Notification of comment by asmusf
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3927#issuecomment-1106620023 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 22 April 2022 15:21:30 UTC