W3C home > Mailing lists > Public > whatwg@whatwg.org > January 2007

[whatwg] Hyphenation

From: Leons Petrazickis <leons.petrazickis@gmail.com>
Date: Tue, 9 Jan 2007 08:03:04 -0500
Message-ID: <5b04ec2d0701090503x28f66251k489afc068064a832@mail.gmail.com>
On 1/8/07, ?istein E.  Andersen <html5 at xn--istein-9xa.com> wrote:
> Currently, hyphenation and justification are scarce on the Web

Is there any browser support for automatic hyphenation?

> and the average
> blogger hardly misses these features.

Hyphenation is a presentational problem. When you copy hyphenated
text, you want the non-hyphenated version in the clipboard. We should
avoid embedding presentational hyphenation tags in the actual text.

I would suggest that the first priority is getting a naive hyphenator
into browsers. Since you only ever need hyphenation when
full-justifying, I would suggest:

align: hyphenated;

Once that is in place, we can start thinking about special cases. I
would suggest a hyphenation dictionary in the <head> of the document.

<html>
<head>
  <title>Monkey grooming</title>

  <hyph word="zo?ven" points="zo-even, zo?-ven">
  <hyph word="abstain" points="ab-stain">
  <hyph word="quality" points="qua-li-ty">
  <hyph word="hypertext" points="hy-per-text">
  <hyph word="indefatigably" points="in-de-fa-ti-ga-bly">
</head>
<body>
<p style="align:hyphenate; width:5em;">
The zo?ven hypertext must abstain from grooming monkeys in an
indefatigably questionable fashion. The zo?ven hypertext must abstain
from grooming monkeys in an indefatigably questionable fashion. The
zo?ven hypertext must abstain from grooming monkeys in an
indefatigably questionable fashion.
</p>
</body>
</html>

Thus, when people dislike the naive hyphenation of a word, they can
specify one of their liking in the header.

-- 
Leons Petrazickis
Received on Tuesday, 9 January 2007 05:03:04 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:31 UTC