<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Thanks Dov, that's clarifying!<br>
<br>
<div class="moz-cite-prefix">On 3/29/2017 12:39 PM, Dov Grobgeld
wrote:<br>
</div>
<blockquote
cite="mid:CA++fsGFK4zM9B9HatyamV4d615QTWco=XxnA74ec+byWPQtrLQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_default"
style="font-family:arial,helvetica,sans-serif">Unfortunately
fribidi isn't Unicode 6.3 complient yet.<br>
<br>
You may want to test the following branch and see if it makes
a difference:<br>
<br>
<a moz-do-not-send="true"
href="https://github.com/dov/fribidi/tree/unicode63">https://github.com/dov/fribidi/tree/unicode63</a><br>
<br>
</div>
<div class="gmail_default"
style="font-family:arial,helvetica,sans-serif">But I'm in
doubt as we have not yet implemented the N0 rule of the
Unicode6.3 standard, which seems to be relevant to your
problem. It is still (unfortunately far too slow) work in
progress.<br>
<br>
</div>
<div class="gmail_default"
style="font-family:arial,helvetica,sans-serif">Regards,<br>
</div>
<div class="gmail_default"
style="font-family:arial,helvetica,sans-serif">Dov<br>
<br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Mar 29, 2017 at 1:13 PM,
Eduardo Castiñeyra <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:eduardo@brainstorm3d.com" target="_blank">eduardo@brainstorm3d.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex"><span
class=""><br>
<br>
On 3/28/2017 7:24 PM, Eli Zaretskii wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
Consider this level 0 text:<br>
<br>
<a moz-do-not-send="true"
href="http://unicode.org/cldr/utility/bidi.jsp?a=sample+%28text%29&p=LTR"
rel="noreferrer" target="_blank">http://unicode.org/cldr/utilit<wbr>y/bidi.jsp?a=sample+%28text%<wbr>29&p=LTR</a><br>
<br>
Then, we change the Paragraph direction in the drop
down from LTR to RTL<br>
<br>
<a moz-do-not-send="true"
href="http://unicode.org/cldr/utility/bidi.jsp?a=sample+%28text%29&p=RTL"
rel="noreferrer" target="_blank">http://unicode.org/cldr/utilit<wbr>y/bidi.jsp?a=sample+%28text%<wbr>29&p=RTL</a><br>
<br>
Suddenly, all the L0 become L2 except the last
parenthesis and thus, the<br>
reordered view shows the parenthesis at the beginning.<br>
</blockquote>
That page says "Not yet updated for the changes in
Unicode 6.3!",<br>
which means the Bidirectional Parentheses Algorithm
(BPA) is not<br>
accounted for. The BPA causes the text to be rendered
reasonably,<br>
with parentheses mirrored as expected. E.g., try that
in a recent<br>
enough Emacs.<br>
<br>
</blockquote>
</span>
I think I didn't ask the correct question. The problem is
not the parenthesis not flipping but the fact that the last
parenthesis level is odd, which causes:<br>
<br>
1) The parenthesis being shown at the beginning of the
sentence.<br>
2) fribidi_shape_mirroring flipping the parenthesis when it
shouldn't<br>
<br>
So, in this regard I actually cannot complain about the
behavior of fribidi_shape_mirroring, in any case I should
complain about fribidi_log2vis but I don't think it is doing
anything different that what the BiDi algorithm says. I just
would like to know how to prevent this case.<br>
<br>
I have compared MS Notepad in Windows 10 and Windows 7
(pre-U6.3) and you're right, Windows 7 puts the parenthesis
at the beginning and Windows 10 puts it at the end which is
consistent with the Unicode 6.3 explanation but...<br>
<br>
What about Fribidi? Doesn't it implement U6.3 ? Why am I
seeing the parenthesis also at the beginning in my
application ?<br>
<br>
Thanks!
<div class="HOEnZb">
<div class="h5"><br>
<br>
<br>
<br>
<br>
______________________________<wbr>_________________<br>
fribidi mailing list<br>
<a moz-do-not-send="true"
href="mailto:fribidi@lists.freedesktop.org"
target="_blank">fribidi@lists.freedesktop.org</a><br>
<a moz-do-not-send="true"
href="https://lists.freedesktop.org/mailman/listinfo/fribidi"
rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/fribidi</a><br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>