Re: Bidirectional editing in Emacs -- main design decisions
Mohammad Hossein Sekhavat <[email protected]> Thu, 19 May 2016 13:58:52 +0430
| Newsgroups | gmane.emacs.bidi |
|---|---|
| Message-ID | <CAOZW_xwW6Vy1GVdHvDvs_9oH-MCXnMqmrDHDBH4P24H0_uY1Kg@mail.gmail.com> |
--===============2935697214069876775== Content-Type: multipart/alternative; boundary=94eb2c0441f460aa3c05332e9b20 --94eb2c0441f460aa3c05332e9b20 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, May 19, 2016 at 9:16 AM, Eli Zaretskii <[email protected]> wrote: > > > In each of these examples, either there's no problem having the text > displayed in a L2R paragraph (it still gets reordered correctly), No it doesn't. Believe me! Just an english word in a RTL line is enough to become unreadable when it is displayed LTR. > > or you can start the line with a RLM character to see better results in > some cases. Of course you can handle it with RLM character even if your editor doesn't support dynamic reordering at all. But we emacs users expect smart behavior= . > TeX file is not a simple text file (similar to HTML). Supporting > correct bidi reordering in such structured meta-text files is a > feature that is missing. You cannot fix this by just setting paragraph > direction. I do not expect emacs to support correct bidi reordering based on structure of a file. I just expect it to *be able to *have the same =E2=80=8Bidea as most of other editors , about what a paragraph is=E2=80=8B. Although =E2=80=8B=E2=80=8Bemacs is still UAX#9 =E2=80=8B-compatible, but it is inconsistent with most of *other* *UAX#9-co= mpatible* editors. So the blame for inconsistency is on emacs. > Emacs currently doesn't support this. =E2=80=8B Patches are welcome. =E2=80=8BWould you please let me know which functions in which files are mo= st related how emacs =E2=80=8Bbidi dynamic reordering algorithm separates para= graphs? =E2=80=8BThanks in advance for your time Eli.=E2=80=8B --=20 Sincerely, Mohammad Hossein Sekhavat --94eb2c0441f460aa3c05332e9b20 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">On Thu, May 19, 2016 at 9:16 AM, Eli Zaretskii <<a href= =3D"mailto:[email protected]">[email protected]</a>> wrote:<br>><br>><br>>= ; In each of these examples, either there's no problem having the text<= br>> displayed in a L2R paragraph (it still gets reordered correctly),<b= r><br>No it doesn't. Believe me! Just an english word in a RTL line is = enough to become unreadable when it is displayed LTR.<br>=C2=A0<br>><br>= > or=C2=A0you can start the line with a RLM character to see better resu= lts in<br>> some cases.<br>Of course you can handle it with RLM characte= r=C2=A0even if your editor doesn't support dynamic reordering at all. B= ut we emacs users expect smart behavior.<div><br>> TeX file is not a sim= ple text file (similar to HTML).=C2=A0 Supporting<br>> correct bidi reor= dering in such structured meta-text files is a<br>> feature that is miss= ing. You cannot fix this by just setting paragraph<br>> direction.</div>= <div>I do not expect emacs to support correct bidi reordering based on stru= cture of a file. I just expect it to <b>be able to </b>have the same=C2=A0<= div class=3D"gmail_default" style=3D"font-family:tahoma,sans-serif;display:= inline">=E2=80=8Bidea=C2=A0</div><span style=3D"font-family:tahoma,sans-ser= if">as most of other editors</span><div class=3D"gmail_default" style=3D"fo= nt-family:tahoma,sans-serif;display:inline">, about what a paragraph is=E2= =80=8B. Although=C2=A0</div><span style=3D"font-size:12.8px"><div class=3D"= gmail_default" style=3D"font-family:tahoma,sans-serif;display:inline">=E2= =80=8B=E2=80=8Bemacs is still=C2=A0</div>UAX#9<div class=3D"gmail_default" = style=3D"font-family:tahoma,sans-serif;display:inline">=E2=80=8B-compatible= , but it is inconsistent with most of <b>other</b> <b>UAX#9-compatible</b> = editors. So the blame for inconsistency is on emacs.</div></span></div><div= ><div class=3D"gmail_default" style=3D"font-family:tahoma,sans-serif"><br><= /div></div><div>> Emacs currently doesn't support this. =C2=A0<div c= lass=3D"gmail_default" style=3D"font-family:tahoma,sans-serif;display:inlin= e">=E2=80=8B</div>Patches are welcome.</div><div><div class=3D"gmail_defaul= t" style=3D"font-family:tahoma,sans-serif">=E2=80=8BWould you please let me= know which functions in which files are most related how emacs =E2=80=8Bbi= di dynamic reordering algorithm separates paragraphs?</div><div><br></div><= div class=3D"gmail_default" style=3D"font-family:tahoma,sans-serif">=E2=80= =8BThanks in advance for your time Eli.=E2=80=8B</div><br>-- <br>Sincerely,= <br>Mohammad Hossein Sekhavat</div></div> --94eb2c0441f460aa3c05332e9b20-- --===============2935697214069876775== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ emacs-bidi mailing list [email protected] https://lists.gnu.org/mailman/listinfo/emacs-bidi --===============2935697214069876775==--