Re: fribidi_reorder_runs()

Dov Grobgeld <[email protected]> Wed, 8 Feb 2017 17:04:06 +0100
Newsgroups gmane.comp.internationalization.fribidi
Message-ID <CA++fsGE=-uHmoKiRJEPZLT5ke5z_BVf1A8-z1OVdyvUsqppszg@mail.gmail.com>
--===============1957053716==
Content-Type: multipart/alternative; boundary=94eb2c047d4aa73c34054807031f

--94eb2c047d4aa73c34054807031f
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Well, almost. There are actually two issues. One is that since the Unicode
version 6.3, there is a new rule N0, in which parenthesis take up a more
active meaning, and are no longer "passively" neutral. (Unfortunately, this
version of fribidi has not been finished yet.) The second issue is the
issue of mirroring, which is done after the direction of parenthesis has
been determined. If the resolved direction of a parenthesis is odd, then it
is expected that the render engine replace its shape, with that of its
mirror.

Regards,
Dov

On Wed, Feb 8, 2017 at 4:59 PM, Eduardo Casti=C3=B1eyra <eduardo@brainstorm=
3d.com
> wrote:

>
>
> On 2/7/2017 5:19 PM, Eli Zaretskii wrote:
>
>> From: Eduardo Casti=C3=B1eyra <[email protected]>
>>> Date: Tue, 7 Feb 2017 16:39:01 +0100
>>>
>>> It turned out that our incorrect way to integrate fribidi and harfbuzz
>>> (let fribidi reorder all the characters and shape as full LTR in
>>> harfbuzz) is "surprisingly" causing problems.
>>>
>>> The problem is mainly with the parenthesis. It looks like the shaper
>>> should flip the direction of the parenthesis when it belongs to a RTL
>>> run.
>>>
>> Shouldn't reordering mirror parentheses if their level is even?
>>
>
> AFAIK, parenthesis are neutral, they inherit the direction of the text
> surrounding them
>
> _______________________________________________
> fribidi mailing list
> [email protected]
> https://lists.freedesktop.org/mailman/listinfo/fribidi
>

--94eb2c047d4aa73c34054807031f
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:arial,he=
lvetica,sans-serif">Well, almost. There are actually two issues. One is tha=
t since the Unicode version 6.3, there is a new rule N0, in which parenthes=
is take up a more active meaning, and are no longer &quot;passively&quot; n=
eutral. (Unfortunately, this version of fribidi has not been finished yet.)=
 The second issue is the issue of mirroring, which is done after the direct=
ion of parenthesis has been determined. If the resolved direction of a pare=
nthesis is odd, then it is expected that the render engine replace its shap=
e, with that of its mirror.<br><br></div><div class=3D"gmail_default" style=
=3D"font-family:arial,helvetica,sans-serif">Regards,<br></div><div class=3D=
"gmail_default" style=3D"font-family:arial,helvetica,sans-serif">Dov<br></d=
iv></div><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">On Wed, =
Feb 8, 2017 at 4:59 PM, Eduardo Casti=C3=B1eyra <span dir=3D"ltr">&lt;<a hr=
ef=3D"mailto:[email protected]" target=3D"_blank">eduardo@brainstorm=
3d.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"=
margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=
=3D""><br>
<br>
On 2/7/2017 5:19 PM, Eli Zaretskii wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><blockquote class=3D"gmail_quote" style=3D"m=
argin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
From: Eduardo Casti=C3=B1eyra &lt;<a href=3D"mailto:[email protected]=
m" target=3D"_blank">[email protected]</a>&gt;<br>
Date: Tue, 7 Feb 2017 16:39:01 +0100<br>
<br>
It turned out that our incorrect way to integrate fribidi and harfbuzz<br>
(let fribidi reorder all the characters and shape as full LTR in<br>
harfbuzz) is &quot;surprisingly&quot; causing problems.<br>
<br>
The problem is mainly with the parenthesis. It looks like the shaper<br>
should flip the direction of the parenthesis when it belongs to a RTL run.<=
br>
</blockquote>
Shouldn&#39;t reordering mirror parentheses if their level is even?<br>
</blockquote>
<br></span>
AFAIK, parenthesis are neutral, they inherit the direction of the text surr=
ounding them<div class=3D"HOEnZb"><div class=3D"h5"><br>
______________________________<wbr>_________________<br>
fribidi mailing list<br>
<a href=3D"mailto:[email protected]" target=3D"_blank">fribidi@=
lists.freedesktop.org</a><br>
<a href=3D"https://lists.freedesktop.org/mailman/listinfo/fribidi" rel=3D"n=
oreferrer" target=3D"_blank">https://lists.freedesktop.org/<wbr>mailman/lis=
tinfo/fribidi</a><br>
</div></div></blockquote></div><br></div>

--94eb2c047d4aa73c34054807031f--

--===============1957053716==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZnJpYmlkaSBt
YWlsaW5nIGxpc3QKZnJpYmlkaUBsaXN0cy5mcmVlZGVza3RvcC5vcmcKaHR0cHM6Ly9saXN0cy5m
cmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9mcmliaWRpCg==

--===============1957053716==--