emacs-bidi
[Top][All Lists]
Advanced

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

Re: [emacs-bidi] status? news?


From: Roozbeh Pournader
Subject: Re: [emacs-bidi] status? news?
Date: Fri, 19 Jan 2001 17:57:17 +0330 (IRT)

On Fri, 19 Jan 2001, Eli Zaretskii wrote:

> ???  How can the editor insert an RLM?  The editor doesn't have any
> idea what the user means when she types an exclam.

When the user types the exclamation mark while being in English keyboard
mode, the editor finds that the exclamation should be treated L2R.

If the bugger is logical, it then applies some parts of Unicode bidi, and
finds that if it just inserts the exclamation mark in the logical buffer
in that position, it will come out R2L. So it inserts the LRM. It may want
to remove the LRM later, if it finds that it is not needed anymore (e.g.,
if you continue with Latin letters).

If the buffer is visual, it checks the embedding levels of the two
adjacent characters. It finds that the left one is in level 2 (L2R inside
R2L), and the right one is in level 1 (R2L). It finds that this character
belongs to level 2. Finally, when writing the file to disk, it inserts the
LRM to make the exclamation mark level 2. Or it may insert an LRE-PDF
pair arround the Latin embedding if allowed (explicit bidi characters are
not allowed in HTML and XML, markup should be use instead. Take a look at:
http://www.w3.org/TR/unicode-xml/#Bidi)

--roozbeh




reply via email to

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