W3C home > Mailing lists > Public > www-html@w3.org > December 2006

RE: 'dir' attribute on BIDI inline elements and actual browsers

From: Paul Nelson (ATC) <paulnel@winse.microsoft.com>
Date: Wed, 20 Dec 2006 14:46:54 -0800
Message-ID: <49C257E2C13F584790B2E302E021B6F912070B02@winse-msg-01.segroup.winse.corp.microsoft.com>
To: Orion Adrian <orion.adrian@gmail.com>, <www-html@w3.org>

The correct rendering is:

English1 2WERBEH English 2.5 3WERBEH Englisch4.

Punctuation is handled as a neutral class and is determined based on
surrounding strong characters. If you work through the bidi algorithm
paper you can follow the processing.

The application of the dir property is putting in an explicit embedding
direction. When you have a right to left script like Hebrew or Arabic,
the direction is explicit by character properties. The only time a web
page author needs to insert markup of direction is to set the block
level direction (which can be done at the <html> level for the entire

The use of direction inline is only really necessary for those times
when a particular bidi layout other than the default layout is
required...as with forcing a part number or trailing punctuation in a
RTL line. One example is "Yahoo!" When they have RTL content and want
their trademarked name to have the exclamation on the right, they need
to use the following <span dir=ltr>Yahoo!</span>. They don't want the
user to see "!Yahoo"



-----Original Message-----
From: www-html-request@w3.org [mailto:www-html-request@w3.org] On Behalf
Of Orion Adrian
Sent: Wednesday, December 20, 2006 11:08 PM
To: www-html@w3.org
Subject: Re: 'dir' attribute on BIDI inline elements and actual browsers

On 12/19/06, Paul Nelson (ATC) <paulnel@winse.microsoft.com> wrote:
> The Unicode Bidirectional
> provides the guidance on how to process this. The correct layout is

Given the intervening period between

<span dir="rtl">&#1506;&#1489;&#1512;&#1497;&#1514;2</span>


<span dir="rtl">&#1506;&#1489;&#1512;&#1497;&#1514;3</span>

that inherits its parents text direction (ltr) shouldn't 2 be the
correct rendering?

What would be the correct rendering for:

<p>English1 <span dir="rtl">&#1506;&#1489;&#1512;&#1497;&#1514;2</span>
English 2.5 <span
dir="rtl">&#1506;&#1489;&#1512;&#1497;&#1514;3</span> Englisch4.</p>

or are there special cases for punctuation?


Orion Adrian
Received on Wednesday, 20 December 2006 22:46:27 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:14 UTC