all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kenichi Handa <handa@m17n.org>
Cc: lidaobing@gmail.com, emacs-devel@gnu.org
Subject: Re: Emacs, Chinese language environment, and Japanese fonts
Date: Thu, 15 Sep 2005 11:34:47 +0900	[thread overview]
Message-ID: <E1EFjaJ-0000GI-00@etlken> (raw)
In-Reply-To: <87psrb9xhj.fsf@pacem.orebokech.com> (message from Romain Francoise on Wed, 14 Sep 2005 22:59:36 +0200)

In article <87psrb9xhj.fsf@pacem.orebokech.com>, Romain Francoise <romain@orebokech.com> writes:

> I received a bug report from a Chinese user complaining that Emacs 22
> wants to use a Japanese font to display a character from the Chinese
> alphabet, even if the language environment is set to something Chinese
> (in this case, Chinese-GB).

> My guess is that the character is identical in Chinese and Japanese
> (kanji) alphabets and that Emacs just uses the "best fitting" font,
> which isn't installed on this user's workstation.  Apparently,
> (list-charset-chars 'chinese-gb2312) correctly shows the character, but
> the font isn't selected when displaying a regular buffer.

> Is that a bug or a configuration problem?  I'm not really knowledgeable
> about this stuff, can someone enlighten me?

> You can find more information here:

>     <URL: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=328196>

I've just read that thread.  In any Chinese-XXX lang. env.,
if that character is (0x4A4A of GB2312) encoded in UTF-8,
Emacs correctly decodes it into chinese-gb charset.  So, my
question is how he got that character in Emacs buffer.  One
possibility is that he cut&pasted it from the other
application and that application sent that character encoded
in compound-text while designating JISX0212.  In that case,
Emacs surely decodes it into japanese-jisx0212, but that is
a correct behaviour.

(setq x-select-request-type '(UTF8_STRING COMPOUND-TEXT))

forces Emacs to ask the other application to send a
selection data in utf-8 if possible.   So, this setting will
work for him.

---
Kenichi Handa
handa@m17n.org

  reply	other threads:[~2005-09-15  2:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-14 20:59 Emacs, Chinese language environment, and Japanese fonts Romain Francoise
2005-09-15  2:34 ` Kenichi Handa [this message]
2005-09-15  2:54   ` LI Daobing
2005-09-15  3:52     ` Kenichi Handa
2005-09-15  4:25       ` Kenichi Handa
2005-09-15  4:47         ` LI Daobing

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=E1EFjaJ-0000GI-00@etlken \
    --to=handa@m17n.org \
    --cc=emacs-devel@gnu.org \
    --cc=lidaobing@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.