[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Unicode bi-directional algorithm in XSL


arabic date today
At 2004-03-12 08:38 -0600, Donald Smith wrote:
>Let's say I have some XML with Arabic content and the English abbreviation
>"C.B." inside the Arabic:
>
><example>imagine some Arabic content here C.B. imagine some more Arabic
>content here</example>
>
>Obviously, the Unicode bi-directional algorithm will handle the direction of
>the Arabic text flow as right-to-left, but when rendered by an XSL-FO
>application, the abbreviation comes out ".C.B" (yes, I know bidi-override
>will fix this).

Yes, with unicode-bidi="embed":

    <bidi-override unicode-bidi="embed">C.B.</bidi-override>

>My question is: what's actually happening with the Unicode bi-directional
>algorithm? Is (1) the period between the "C" and the "B" staying put, and
>the period after the "B" moving before the "C"; or (2) are both periods
>moving, so that the period between the "C" and the "B" moves before "C", and
>the period after the "B" moving between them?

"C" and "B" have a strong direction.

Arabic characters have strong direction.

"." has a week direction and is influenced by neighbouring strong-direction 
characters.

So, I believe the "." between the two is influenced to be left-to-right, 
while the "." after the "B" is being influenced by the right-to-left Arabic 
characters.  So I believe the first one you see is the last one and is 
rendered as part of the continuing right-to-left.  But the "C" and the "B" 
keep their direction of left-to-right and influence the "." in between to 
make it left-to-right.

I hope this helps.

........................ Ken


--
US XSL training: Washington,DC March 15; San Francisco,CA March 22
World-wide on-site corporate, government & user group XML training
G. Ken Holman                 mailto:gkholman@C...
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/x/
Box 266, Kars, Ontario CANADA K0A-2E0    +1(613)489-0999 (F:-0995)
Male Breast Cancer Awareness  http://www.CraneSoftwrights.com/x/bc


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.