Bidi and Empty Parentheses

Ken Whistler kenwhistler at sonic.net
Mon Feb 28 19:41:03 CST 2022


Richard,

"x()y"

More specifically, with an explicit LTR paragraph direction:

Trace: Entering br_Check
Current State: 20
   Text:        0078 0028 0029 0079
   Bidi_Class:     L    L    L    L
   Levels: *0    0    0    0*
   Exp Levels:     0    0    0    0
   Runs:        <L---------------L>

   Order:      [0 1 2 3]
   Exp Order:  [0 1 2 3]

I.e. "x()y"

With an explicit RTL paragraph direction:

Trace: Entering br_Check
Current State: 20
   Text:        0078 0028 0029 0079
   Bidi_Class:     L    L    L    L
   Levels: *2    2    2    2*
   Exp Levels:     2    2    2    2
   Runs:        <R---------------R>

   Order:      [0 1 2 3]
   Exp Order:  [0 1 2 3]

I.e. "x()y". Note that the paragraph embedding level is 1, and the 
resolved levels are 2 (instead of 0), but the resolved display order of 
the string is identical in both cases.

--Ken

On 2/28/2022 1:09 PM, Richard Wordingham via Unicode wrote:
> At a right-to-left embedding level, in the absence of directional
> overrides, should the 4-character ASCII substring "x()y" render like
> "x()y" or like "y()x"?
>
> Richard.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://corp.unicode.org/pipermail/unicode/attachments/20220228/6b2025e3/attachment.htm>


More information about the Unicode mailing list