emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unicode confusables and reordering characters considered harmful, a


From: Stefan Monnier
Subject: Re: Unicode confusables and reordering characters considered harmful, a simple solution
Date: Thu, 04 Nov 2021 15:22:41 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>>      myfun("שָׁלוֹם" ,"السّلامعليكم");
[...]
> There is a danger when, because the source code contains invisible control
> characters, the programmer sees something on their screen, and the compiler
> sees something completely different.

You mean there is a special kind of danger coming from the invisible
control characters because they can make code render unexpectedly even
though all the rendered chars are "familiar" (e.g. all-ASCII)?

That's a good point.  Maybe a middle ground could be to call the
attention to such overrides when they're used inside a text line where
all the chars are of the exact same directionality, but not if the line
already contains both strong-LTR and strong-RTL characters.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]