Re: embedded levels of a string with parenthesis

Behdad Esfahbod <[email protected]> Fri, 28 Sep 2012 09:40:20 -0400
Newsgroups gmane.comp.internationalization.fribidi
Message-ID <[email protected]>
On 09/28/2012 04:43 AM, Samiullah Khawaja wrote:
> Agreed about the standard part but I have to make sure my text gets rendered
> correctly. so:
> 
> Currently it is:
> 
> R N EOR -> R e EOR
> 
> What if I change it to:
> 
> R N EOR -> R R EOR  (this looks correct to me). Is there any reason for not
> doing this?

Strongest reason is: it won't be standard anymore.

> Will this give me any further issue or will it cleanly solve my
> problem? Comments?

Will give you problems with other constructs.  The problem is, there's no way
to get all cases right.

b

> Thanks.
> 
> On Fri, Sep 28, 2012 at 3:25 AM, Behdad Esfahbod <[email protected]
> <mailto:[email protected]>> wrote:
> 
>     That's standard behavior.  It's broken, I know.  But that's what the Unicode
>     standard requires.
> 
>       http://unicode.org/reports/tr9/
> 
>     There's work being pushed by Microsoft to address this in the next version of
>     Unicode though.  In the mean time, bidi formatting characters are your friend.
> 
>     behdad
> 
>     On 09/27/2012 12:33 PM, Samiullah Khawaja wrote:
>     > Hi,
>     >
>     > When I use the string "hello (world) مرحبا العالم" in fribidi it gives be
>     > base_direction = RTL and generates the embedded levels. It generates the
>     > embedded level of the ")" after "world" equal to 1.
>     >
>     > Is this correct? I think it should be equal to 2. as the it is part of the
>     > embedded English (LTR) text. Note that the text is starting with arabic and
>     > then ending on the ")" in string array.
>     >
>     > --
>     > Samiullah Khawaja
>     >
>     >
>     >
>     > _______________________________________________
>     > fribidi mailing list
>     > [email protected] <mailto:[email protected]>
>     > http://lists.freedesktop.org/mailman/listinfo/fribidi
> 
> 
> 
> 
> -- 
> Samiullah Khawaja
> Software Engineer
> email: [email protected] <mailto:[email protected]>
> voice: +(92) 0321-4184324
_______________________________________________
fribidi mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/fribidi