all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kenichi Handa <handa@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: xfq.free@gmail.com, 15273@debbugs.gnu.org
Subject: bug#15273: 24.3.50; Combining character sequences are displayed weirdly
Date: Sun, 08 Sep 2013 22:05:41 +0900	[thread overview]
Message-ID: <87ob83xy3e.fsf@gnu.org> (raw)
In-Reply-To: <83r4d2mpi2.fsf@gnu.org> (message from Eli Zaretskii on Fri, 06 Sep 2013 09:29:57 +0300)

In article <83r4d2mpi2.fsf@gnu.org>, Eli Zaretskii <eliz@gnu.org> writes:

> Character composition in Emacs can happen in 1 of 2 ways:

>  . The font driver tells Emacs to compose several characters into a
>    single grapheme cluster, by drawing all of them as a single unit,
>    and by drawing the 2nd, 3rd, etc. character glyphs at certain pixel
>    offsets relative to the base glyph.

>  . Emacs itself has composition rules for 2 or more characters; in
>    this case, the same pixel offsets come from those rules.

Right.  And U+20E4 has this entry.

(aref composition-function-table #x20E4)
=> (["\\c.\\c^+" 1 compose-gstring-for-graphic]
    [nil 0 compose-gstring-for-graphic])

This says that a base character (char-category ".") followed
by a combing character (char-category "^") should be
composed by the function compose-gstring-for-graphic if
those character are displayed by the same font.

But, I found a bug in characters.el.  In it, U+20E4's
char-actegory is not set as "^".  So, Emacs couldn't compose
it with the preceding base character.  I've just installed a
fix.

Now, Emacs composes U+20E4 with the preceding "!" if the
same font is selected for those two characters.

Next, I'm not sure whether Emacs composes them correctly if
the underlying font driver doesn't support OTF's "mark" and
"mkmk" features.  The function compose-gstring-for-graphic
has a code for such a case, but I don't remember that I
wrote a code for "enclosing combining marks".

---
Kenichi Handa
handa@gnu.org





  parent reply	other threads:[~2013-09-08 13:05 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-05 14:08 bug#15273: 24.3.50; Combining character sequences are displayed weirdly Xue Fuqiao
2013-09-05 14:33 ` Eli Zaretskii
2013-09-05 23:26   ` Xue Fuqiao
2013-09-05 16:48 ` Jan Djärv
2013-09-05 17:12   ` Eli Zaretskii
2013-09-05 17:24     ` Eli Zaretskii
2013-09-05 17:33       ` Jan Djärv
2013-09-05 17:56         ` Eli Zaretskii
2013-09-06  5:08           ` Jan Djärv
2013-09-06  6:29             ` Eli Zaretskii
2013-09-06  6:42               ` Andreas Schwab
2013-09-06  7:32                 ` Eli Zaretskii
2013-09-06 14:37                   ` Xue Fuqiao
2013-09-06 15:53                     ` Eli Zaretskii
2013-09-06 22:17                       ` Xue Fuqiao
2013-09-06 22:37                         ` Xue Fuqiao
2013-09-07  7:27                           ` Eli Zaretskii
2013-09-07  7:26                         ` Eli Zaretskii
2013-09-07  7:36                           ` Jan Djärv
2013-09-07  7:57                             ` Eli Zaretskii
2013-09-07  8:02                               ` Jan Djärv
2013-09-07  8:10                                 ` Eli Zaretskii
2013-09-07  8:27                                   ` Jan Djärv
2013-09-07  8:40                                     ` Eli Zaretskii
2013-09-07  8:54                                       ` Jan Djärv
2013-09-07  9:59                                         ` Eli Zaretskii
2013-09-07 13:44                                           ` Jan Djärv
2013-09-07 15:20                                             ` Eli Zaretskii
2013-09-08  8:26                                               ` Jan Djärv
2013-09-07 22:50                                         ` Xue Fuqiao
2013-09-07  8:47                                     ` Jan Djärv
2013-09-07  9:22                                       ` Eli Zaretskii
2013-09-09  0:52                                       ` YAMAMOTO Mitsuharu
2013-09-09  5:17                                         ` Jan Djärv
2013-09-07 12:25                     ` Wolfgang Jenkner
2013-09-07 15:18                       ` Eli Zaretskii
2013-09-07 21:38                         ` Wolfgang Jenkner
2013-09-07 22:29                           ` Xue Fuqiao
2013-09-07 22:48                             ` Xue Fuqiao
2013-09-08 11:03                               ` Eli Zaretskii
2013-09-08 13:05               ` Kenichi Handa [this message]
2013-09-08 14:59                 ` Eli Zaretskii
2013-09-10 13:58                   ` Kenichi Handa
2013-09-10 15:37                     ` Eli Zaretskii
2013-09-12 14:52                     ` Kenichi Handa
2013-09-12 16:08                       ` Eli Zaretskii
2020-11-18 15:13                         ` Stefan Kangas
2020-11-18 17:09                           ` Eli Zaretskii
2013-09-14  8:51                       ` Jan Djärv
2013-09-14  9:12                         ` Jan Djärv
2013-09-05 17:29     ` Jan Djärv
2013-09-05 17:56       ` Eli Zaretskii
2013-09-05 23:27   ` Xue Fuqiao

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=87ob83xy3e.fsf@gnu.org \
    --to=handa@gnu.org \
    --cc=15273@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=xfq.free@gmail.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.