all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Bar cursor in bidirectional text
@ 2010-08-18 19:30 Eli Zaretskii
  2010-08-28 18:23 ` Jan Djärv
  0 siblings, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2010-08-18 19:30 UTC (permalink / raw)
  To: emacs-devel

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'.

TIA



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Bar cursor in bidirectional text
  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
  0 siblings, 1 reply; 5+ messages in thread
From: Jan Djärv @ 2010-08-28 18:23 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

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?

	Jan D.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Bar cursor in bidirectional text
  2010-08-28 18:23 ` Jan Djärv
@ 2010-08-28 20:13   ` Eli Zaretskii
  2010-08-29 10:36     ` Jan Djärv
  0 siblings, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2010-08-28 20:13 UTC (permalink / raw)
  To: Jan Djärv; +Cc: emacs-devel

> 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.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Bar cursor in bidirectional text
  2010-08-28 20:13   ` Eli Zaretskii
@ 2010-08-29 10:36     ` Jan Djärv
  2010-08-29 11:26       ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: Jan Djärv @ 2010-08-29 10:36 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel



Eli Zaretskii skrev 2010-08-28 22.13:

>
>   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.

Thanks, I checked in the code.  Isn't the bar cursor kind ugly BTW?

	Jan D.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Bar cursor in bidirectional text
  2010-08-29 10:36     ` Jan Djärv
@ 2010-08-29 11:26       ` Eli Zaretskii
  0 siblings, 0 replies; 5+ messages in thread
From: Eli Zaretskii @ 2010-08-29 11:26 UTC (permalink / raw)
  To: Jan Djärv; +Cc: emacs-devel

> Date: Sun, 29 Aug 2010 12:36:49 +0200
> From: Jan Djärv <jan.h.d@swipnet.se>
> Cc: emacs-devel@gnu.org
> 
> Eli Zaretskii skrev 2010-08-28 22.13:
> 
> >
> >   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.
> 
> Thanks, I checked in the code.

Thank you!

> Isn't the bar cursor kind ugly BTW?

Yes.  I always wondered why we don't use the bar cursor provided by
the windowing infrastructure, toolkit, etc.  Ours looks
unprofessional, IMO.



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-08-29 11:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2010-08-29 10:36     ` Jan Djärv
2010-08-29 11:26       ` Eli Zaretskii

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.