From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.bugs Subject: bug#1399: 23.0.60; Some Unicode glyphs incorrectly mapped to CJK Date: Tue, 17 Mar 2009 11:00:30 +0900 Message-ID: Reply-To: Kenichi Handa , 1399@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1237256655 28631 80.91.229.12 (17 Mar 2009 02:24:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Mar 2009 02:24:15 +0000 (UTC) Cc: ian@digg.com To: 1399@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 17 03:25:31 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LjOzh-0001Wm-53 for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Mar 2009 03:25:29 +0100 Original-Received: from localhost ([127.0.0.1]:33015 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LjOyK-000323-TQ for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Mar 2009 22:24:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LjOy8-0002yY-HB for bug-gnu-emacs@gnu.org; Mon, 16 Mar 2009 22:23:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LjOy3-0002y4-8q for bug-gnu-emacs@gnu.org; Mon, 16 Mar 2009 22:23:51 -0400 Original-Received: from [199.232.76.173] (port=49860 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LjOy3-0002y0-4U for bug-gnu-emacs@gnu.org; Mon, 16 Mar 2009 22:23:47 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:42289) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LjOy2-0001Ka-N6 for bug-gnu-emacs@gnu.org; Mon, 16 Mar 2009 22:23:46 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2H2NgVp027608; Mon, 16 Mar 2009 19:23:42 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n2H2A5hA024127; Mon, 16 Mar 2009 19:10:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Kenichi Handa Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 17 Mar 2009 02:10:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 1399 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 1399-submit@emacsbugs.donarmstrong.com id=B1399.123725521521865 (code B ref 1399); Tue, 17 Mar 2009 02:10:04 +0000 Original-Received: (at 1399) by emacsbugs.donarmstrong.com; 17 Mar 2009 02:00:15 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mx1.aist.go.jp (mx1.aist.go.jp [150.29.246.133]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2H20C33021594 for <1399@emacsbugs.donarmstrong.com>; Mon, 16 Mar 2009 19:00:13 -0700 Original-Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id n2H20A3x006950; Tue, 17 Mar 2009 11:00:10 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp4.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id n2H20AHs018567; Tue, 17 Mar 2009 11:00:10 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp4.aist.go.jp with ESMTP id n2H209KU024534; Tue, 17 Mar 2009 11:00:09 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1LjObW-0004PZ-3G; Tue, 17 Mar 2009 11:00:30 +0900 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Mon, 16 Mar 2009 22:23:51 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:26418 Archived-At: Sorry for the late response. > It seems that some Unicode glyphs are incorrectly categorized. > > For example, U+201C, U+201D, U+2018, U+2019 (LEFT/RIGHT SINGLE/DOUBLE > QUOTATION MARK) are all mapped into the CHK category. This results in > the use of the STHeiti font for those characters, which are a > different width than the normal font I've chosen. Category doesn't affect the font selection. As all of those characters are `symbol' script, Emacs at first lists fonts that have at least one of #x201C, #x2200, #x2500 (see script-representative-chars), and select one that matches best with your default font's family, foundry, etc. In your case, perhaps all your listed fonts have different family, foundry, etc than the default font, and thus Emacs selects arbitrary one from the listed fonts. Currently, Emacs can't know which kind of font is more suitable for those charaters; a font that has double-width glyphs for them, or a font that has single-width glyphs. So, if you prefer a specific font for symbol characters, you must modify the defualt fontset (or whatever fontset you are using) for symbol characters, for example, as this: (set-fontset-font "fontset-default" 'symbol '("FAMILYNAME" . "iso10646-1")) > I think it's incorrect for them to be categorized as CJK, since they > are widely used in latin scripts. Character category is not exclusive. Even if a character has CJK category, it doesn't mean that the character is not Latin. --- Kenichi Handa handa@m17n.org