all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kenichi Handa <handa@m17n.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: RLM and LRM are composed?
Date: Thu, 01 Apr 2010 15:39:30 +0900	[thread overview]
Message-ID: <tl7y6h71xst.fsf@m17n.org> (raw)
In-Reply-To: <837hov159z.fsf@gnu.org> (message from Eli Zaretskii on Mon, 29 Mar 2010 19:06:32 +0300)

In article <837hov159z.fsf@gnu.org>, Eli Zaretskii <eliz@gnu.org> writes:

> Evaluate this form:
>   (aset standard-display-table ?‎ (vconcat "->"))

> and then visit a file with this single line:

>     Hebrew ‏(עברית)	שלום

> The character being set up in the standard-display-table is RLM,
> RIGHT-TO-LEFT MARK.  If you are reading this in a GUI session, chances
> are it will be displayed as whitespace.  The same character is before
> the left paren after "Hebrew".  However, Emacs does not display "->"
> instead of it, as I'd expect.  It thinks it does (try "C-u C-x =" on
> that character), but it doesn't.

> If I step with a debugger through produce_glyphs (in the TTY case) or
> through x_produce_glyphs (in the GUI case), I see that the glyph we
> produce for displaying this character is not IT_CHARACTER, but
> IT_COMPOSITION.

Current code try to compose any non-spacing mark characters
with the previous spacing characters.  But, the detection of
non-spacing mark is done by (= (aref char-width-table CH)
0).  This should be changed to check char-code-property
`general-category'.  I'll fix the code soon, but at the
moment, you can workaround the problem by this:

  (aset composition-function-table #x200f nil)

---
Kenichi Handa
handa@m17n.org




  parent reply	other threads:[~2010-04-01  6:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-29 16:06 RLM and LRM are composed? Eli Zaretskii
2010-03-29 16:53 ` Eli Zaretskii
2010-04-01  6:39 ` Kenichi Handa [this message]
2010-04-01  7:56   ` Eli Zaretskii
2010-04-01 12:55     ` Kenichi Handa

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=tl7y6h71xst.fsf@m17n.org \
    --to=handa@m17n.org \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /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.