Re: Attributed unicode
Behnam Esfahbod <[email protected]> Mon, 5 Feb 2018 15:21:31 -0800
| Newsgroups | gmane.comp.internationalization.fribidi |
|---|---|
| Message-ID | <CAPTpOHK2E+FMb2drJPgSbbjjuNzfKhfnuiC0h2urnfkkHPM+nw@mail.gmail.com> |
--===============1514606251== Content-Type: multipart/alternative; boundary="94eb2c03465eb931da05647f53f9" --94eb2c03465eb931da05647f53f9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Robin, Why don't you track the position of your target (the CAPITAL LETTER I here) via the log2vis mapping that most bidi implementations, including FriBidi, provide? -Behnam On Mon, Feb 5, 2018 at 3:13 AM, Robin Becker <[email protected]> wrote: > Not sure if this is the right place to ask, but I would like to know if > there's a way to attach attributes (eg colour) to the unicodes that enter > the fribidi api. In the reportlab case we allow rather arbitrary changes = to > the unicode strings that represent text eg > > paragraph('<span color=3D"red" fontSize=3D"14">I</span>n the beginning...= .... > > where the initial capital I is larger and a different colour. > > If this happened in a word that I want to pass to fribidi is there a way > to see where the attributes change in the return from fribidi? I imagine > this must be an issue in html rendering as well. > > I looked at various unicode mechanisms (eg variation sequences), but none > seem appropriate to changes of font, size, weight, style or colour. > -- > Robin Becker > _______________________________________________ > fribidi mailing list > [email protected] > https://lists.freedesktop.org/mailman/listinfo/fribidi > --=20 Behnam Esfahbod | =D8=A8=D9=87=D9=86=D8=A7=D9=85 =D8=A7=D8=B3=D9=81=D9=87= =D8=A8=D8=AF | Q4880939 Q2064908 http://behnam.es/ --94eb2c03465eb931da05647f53f9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Robin,<div><br></div><div>Why don't you track the posi= tion of your target (the CAPITAL LETTER I here) via the log2vis mapping tha= t most bidi implementations, including FriBidi, provide?</div><div><br></di= v><div><br></div><div>-Behnam</div><div><br></div></div><div class=3D"gmail= _extra"><br><div class=3D"gmail_quote">On Mon, Feb 5, 2018 at 3:13 AM, Robi= n Becker <span dir=3D"ltr"><<a href=3D"mailto:[email protected]" targe= t=3D"_blank">[email protected]</a>></span> wrote:<br><blockquote class= =3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padd= ing-left:1ex">Not sure if this is the right place to ask, but I would like = to know if there's a way to attach attributes (eg colour) to the unicod= es that enter the fribidi api. In the reportlab case we allow rather arbitr= ary changes to the unicode strings that represent text eg<br> <br> paragraph('<span color=3D"red" fontSize=3D"14"&g= t;I</span>n the beginning.......<br> <br> where the initial capital I is larger and a different colour.<br> <br> If this happened in a word that I want to pass to fribidi is there a way to= see where the attributes change in the return from fribidi? I imagine this= must be an issue in html rendering as well.<br> <br> I looked at various unicode mechanisms (eg variation sequences), but none s= eem appropriate to changes of font, size, weight, style or colour.<span cla= ss=3D"HOEnZb"><font color=3D"#888888"><br> -- <br> Robin Becker<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> </font></span></blockquote></div><br><br clear=3D"all"><div><br></div>-- <b= r><div class=3D"gmail_signature" data-smartmail=3D"gmail_signature"><div di= r=3D"ltr"><div><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><span sty= le=3D"font-size:12.8px">Behnam Esfahbod |=C2=A0</span><span style=3D"font-s= ize:12.8px">=D8=A8=D9=87=D9=86=D8=A7=D9=85 =D8=A7=D8=B3=D9=81=D9=87=D8=A8= =D8=AF |=C2=A0</span>Q4880939 Q2064908<div dir=3D"ltr" style=3D"font-size:1= 2.8px"></div><a href=3D"http://behnam.es/" style=3D"font-size:12.8px" targe= t=3D"_blank">http://behnam.es/</a></div></div></div></div></div></div> </div> --94eb2c03465eb931da05647f53f9-- --===============1514606251== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZnJpYmlkaSBt YWlsaW5nIGxpc3QKZnJpYmlkaUBsaXN0cy5mcmVlZGVza3RvcC5vcmcKaHR0cHM6Ly9saXN0cy5m cmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9mcmliaWRpCg== --===============1514606251==--