all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Jan Djärv" <jan.h.d@swipnet.se>
Cc: emacs-devel@gnu.org
Subject: Re: Bar cursor in bidirectional text
Date: Sat, 28 Aug 2010 23:13:15 +0300	[thread overview]
Message-ID: <83fwxylcmc.fsf@gnu.org> (raw)
In-Reply-To: <4C79541C.1030105@swipnet.se>

> Date: Sat, 28 Aug 2010 20:23:24 +0200
> From: Jan Djärv <jan.h.d@swipnet.se>
> CC: emacs-devel@gnu.org
> 
> 2010-08-18 21:30, Eli Zaretskii skrev:
> > I committed today revno 101130 (fixed later in revno 101131) that
> > causes the bar cursor to be positioned correctly on right-to-left
> > characters.  I did that for X and w32, but not for NS, since the
> > relevant code in nsterm.m is slightly different and uses APIs whose
> > semantics I don't understand well enough.
> >
> > Could someone who has access to NS please fix nsterm.m in the manner
> > similar to what I did for X and w32?  The changes should be in the
> > ns_draw_window_cursor function and affect the code under `case BAR_CURSOR'.
> >
> 
> How do I test the changes?

 emacs -Q
 C-h H
 M-: (setq cursor-type 'bar) RET

Now move to one of the lines that use R2L scripts, e.g. Arabic or
Hebrew, and use C-f to get to the Arabic or Hebrew letters.  You
should see the cursor positioned to the right of each R2L letter, as
opposed to the left in L2R scripts.  To make sure the cursor is indeed
to the right of a letter, you could use "C-x =" to show the character
at point.

(Actually, the cursor is positioned to the right of every character
that has its level resolved as R2L.  For example, you can see the
cursor positioned to the right of each of the two parentheses
enclosing the name of the Hebrew language in Hebrew: that is because
they are neutral characters that take the directionality of the
surrounding text, according to the Unicode Bidirectional Algorithm
that Emacs implements.)

Thanks.




  reply	other threads:[~2010-08-28 20:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-18 19:30 Bar cursor in bidirectional text Eli Zaretskii
2010-08-28 18:23 ` Jan Djärv
2010-08-28 20:13   ` Eli Zaretskii [this message]
2010-08-29 10:36     ` Jan Djärv
2010-08-29 11:26       ` 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=83fwxylcmc.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=jan.h.d@swipnet.se \
    /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.