W3C home > Mailing lists > Public > www-style@w3.org > June 2010

[css3-gcpm][css3-text] Hyphenation

From: Christoph Päper <christoph.paeper@crissov.de>
Date: Tue, 8 Jun 2010 01:14:33 +0200
Message-Id: <268CA12D-2CC4-4882-892C-005D24852BA2@crissov.de>
To: CSS WWW Style <www-style@w3.org>
 <http://dev.w3.org/csswg/css3-gcpm/#hyphenate-properties>
(<http://dev.w3.org/csswg/css3-text/#hyphenate>)

Currently proposed properties ‘hyphenate-before’ and ‘hyphenate-after’ take as value either ‘auto’ or an integer (number of characters). They should also accept a length (which may include the ‘ch’ unit some day).

It might be a good idea to have a shorthand property for both, e.g. ‘hyphenate-length’. I like to set them both to the same amount as ‘text-indent’ and ::marker width.

BTW: There is at least one Javascript implementation of automatic hyphenation: <http://code.google.com/p/hyphenator/>. There you can configure the minimum length (in characters) of a word for it to be broken, not the remainder on either line. It doesn’t do “fancy” hyphenation, like ‹…CC…› -> ‹…CC-C…› or ‘…ck…’ -> ‘…k-k…’.

Since my native tongue is German I would like a hyphenation option, maybe in CSS 4, to prefer semantic boundaries, especially in compounds or if there is a hyphen or a ZWNJ already, or with any variant of camel case.
Received on Monday, 7 June 2010 23:15:41 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:28 GMT