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
document.

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"

Regards,

paul


-----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
algorithm(http://www.unicode.org/reports/tr9/)
> provides the guidance on how to process this. The correct layout is
[1].

Given the intervening period between

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

and

<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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:16:08 GMT