all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: James Cloos <cloos@jhcloos.com>
Cc: eli.osherovich@gmail.com, md5i@md5i.com, emacs-bidi@gnu.org,
	emacs-devel@gnu.org
Subject: Re: Re: improving bidi documents display
Date: Wed, 02 Mar 2011 20:59:54 +0200	[thread overview]
Message-ID: <8339n5xs9h.fsf@gnu.org> (raw)
In-Reply-To: <m3fwr6ban7.fsf@jhcloos.com>

> From: James Cloos <cloos@jhcloos.com>
> Cc: Michael Welsh Duggan <md5i@md5i.com>,  eli.osherovich@gmail.com,  emacs-bidi@gnu.org,  emacs-devel@gnu.org
> Copyright: Copyright 2011 James Cloos
> OpenPGP-Fingerprint: E9E9 F828 61A4 6EA9 0F2B  63E7 997A 9F17 ED7D AEA6
> Date: Tue, 01 Mar 2011 19:58:44 -0500
> 
>   the UAX is specific to plain text

Not entirely true.  It's just that in most structured text, the
reordering should affect only certain portions of the text.  But where
we do reorder, UAX#9 should still be in effect.

>   emacs' modes uses faces to differentiate syntactically different
>   text runs

Not true at all.  You are probably thinking about font lock, but faces
are also used for other purposes, like region highlight, mouse
highlight, hl-line mode, etc.  These other uses do cross bidi runs
quite easily and frequently.

>   the latter is essentially the same as (invisible) markup

Who is?

> then one could conclude that bidi runs always should be intra-face and
> never inter-face, yes?

No, see above.

> How well does >>back to default on face changes<< translate to the level
> where emacs' bidi works?

Not at all.  The reordering engine works on lower level than the
face-sensitive code.  In a nutshell, reordering is implemented as an
abstract "get to next character" operation that is what the display
iterator does when it walks the visible portion of the buffer and
prepares it for display.  Faces and the rest are considered only
_after_ getting to the next character.  By the time the iterator
notices that the next character has a different face, the bidi
reordering has effectively already happened.

  reply	other threads:[~2011-03-02 18:59 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-24 12:32 improving bidi documents display Eli Osherovich
2011-02-24 19:54 ` Eli Zaretskii
2011-02-27 10:01   ` Michael Welsh Duggan
2011-02-27 10:34     ` "Martin J. Dürst"
2011-02-27 21:19       ` Eli Zaretskii
2011-03-02  1:50         ` "Martin J. Dürst"
2011-03-02  4:02           ` Eli Zaretskii
2011-03-04 10:34             ` [emacs-bidi] " "Martin J. Dürst"
2011-02-27 21:15     ` Eli Zaretskii
2011-02-28  1:10       ` Miles Bader
2011-02-28  4:02         ` Eli Zaretskii
2011-03-02  0:58       ` James Cloos
2011-03-02 18:59         ` Eli Zaretskii [this message]
2011-03-02  2:09       ` [emacs-bidi] " "Martin J. Dürst"
2011-03-02  2:39         ` Miles Bader
2011-03-02  4:03           ` Eli Zaretskii
2011-03-02  7:06             ` Miles Bader
2011-03-02 18:39               ` Eli Zaretskii
2011-03-03  1:32                 ` Miles Bader
2011-03-03  4:07                   ` Eli Zaretskii
2011-03-03  6:11                     ` "Martin J. Dürst"
2011-03-03 10:40                       ` [emacs-bidi] " Eli Zaretskii
2011-03-04 10:34                         ` "Martin J. Dürst"
2011-03-04  3:58                 ` Stefan Monnier
2011-03-04  8:04                   ` Eli Zaretskii
2011-03-04  4:25                 ` Miles Bader
2011-03-04  9:52                   ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8339n5xs9h.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=cloos@jhcloos.com \
    --cc=eli.osherovich@gmail.com \
    --cc=emacs-bidi@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=md5i@md5i.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.