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>

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 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:47 UTC