all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* IT testing for multiple characters (ִרֹ) that occupy 1 display string.
@ 2018-10-01  0:14 Keith David Bershatsky
  2018-10-01  6:35 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Keith David Bershatsky @ 2018-10-01  0:14 UTC (permalink / raw)
  To: Emacs Devel

I am working on feature requests #17684 (crosshairs) and #22873 (multiple fake cursors).

When using move_it_in_display_line_to, ִרֹ is treated as one display string; however, it is 3 different characters occupying 3 HPOS.  it->c only reports 1460.

I initially guessed that this was a composition situation, however, it.what returns a 0, which is the same as any other regular character.

Q:  How do we test for this situation, so that we know all of the different characters and each of their individual pixel widths?

Thanks,

Keith



^ permalink raw reply	[flat|nested] 3+ messages in thread
* Re: IT testing for multiple characters (ִרֹ) that occupy 1 display string.
@ 2018-10-01 20:45 Keith David Bershatsky
  0 siblings, 0 replies; 3+ messages in thread
From: Keith David Bershatsky @ 2018-10-01 20:45 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

Thank you, Eli, for helping me to understand how to analyze composition characters. 

I had disabled auto-composition-mode several years ago in my init.el, which affected the ability to compose the characters.

When creating the email seeking assistance, I probably copied what should have been just one composition character, along with one-half of another composition character.

I am now able to properly test the existence of a composition character when moving IT.

As always, your help is greatly appreciated!

Keith



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

end of thread, other threads:[~2018-10-01 20:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-01  0:14 IT testing for multiple characters (ִרֹ) that occupy 1 display string Keith David Bershatsky
2018-10-01  6:35 ` Eli Zaretskii
  -- strict thread matches above, loose matches on Subject: below --
2018-10-01 20:45 Keith David Bershatsky

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.