Re: [css-text][css-conditional] language specific support for hyphenation and justification

On Tue, Jun 16, 2015 at 9:29 AM, Alan Stearns <stearns@adobe.com> wrote:

>
>
> While hyphenation is often necessary for nice justification, it isn’t the
> only thing that can contribute. There are also features that browsers
> don’t support yet like min/max word spacing and multi-line justification
> algorithms. Using nice-justification for just the list above would be
> premature, I think.
>

Prince has a reasonable, minimal set of hyphenation properties:

1. prince-hyphenate-patterns (none | url(patterns-url) to link to a
hyphenation dictionary, which would be specific to a language
2. prince-hyphenate-lines (no-limit | integer) to restrict how many
consecutive lines may end with a hyphen
3. prince-hyphenate-before (integer), which describes the minimum number
characters before the hyphen
4. prince-hyphenate-after (integer), which describes the minimum number of
characters after the hyphen. The sum determines the shortest word that
could be hyphenated

I'd be happy to see min/opt/max word- and letter-spacing, too. And if you
can convince Adobe to open-source InDesign's justification engine and
rewrite it for the browsers, that would be great ;)

Dave

Received on Tuesday, 16 June 2015 14:37:01 UTC