- From: Paul Nelson (ATC) <paulnel@winse.microsoft.com>
- Date: Wed, 20 Dec 2006 14:46:54 -0800
- 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">עברית2</span> and <span dir="rtl">עברית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">עברית2</span> English 2.5 <span dir="rtl">עברית3</span> Englisch4.</p> or are there special cases for punctuation? -- Orion Adrian
Received on Wednesday, 20 December 2006 22:46:27 UTC