Re: line breaks in XHTML 2.0

On Mon, 7 Nov 2005, Johannes Koch wrote:

> Theoretically,
>
> Daten-‌Set
>
> (zero width non-joiner)

No, that would _prevent_ line breaks on a browser that honors
Unicode semantics of characters. (There is no requirement that they
honor it in general, but it would be foolish to have an exactly
opposite interpretation for a character.)

Microsoft Word uses zero width non-joiner when you use Insert/Symbol
to add a line break opportunity. This however is _not_ what
ZWNJ means in Unicode. It suggests that characters before and after
it should be joined cursively or as a ligature. It also _forbids_
line break.

Zero-width space (ZWSP) U+200B is the recommended Unicode character
for suggesting line break opportunities. However, this what Unicode
recommends, and HTML specifications do not require conformance to it.

Moreover, by Unicode rules, such an explicit opportunity is not
needed after hyphen-minus, since it by default allows a line
break after it.

-- 
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/

Received on Monday, 7 November 2005 14:15:56 UTC