From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!not-for-mail
From: Hui Liu <liuhui.zy@gmail.com>
Newsgroups: gmane.emacs.devel
Subject: Re: A patch for enforcing double-width CJK character display
Date: Wed, 30 Apr 2014 10:00:24 +0800
Message-ID: <CAB=RzgkwMQAjkm90ZJ7EraM7vBTJbq9qWYTdsRutkK7nnxFhgw@mail.gmail.com>
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
X-Trace: ger.gmane.org 1398823241 4864 80.91.229.3 (30 Apr 2014 02:00:41 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Wed, 30 Apr 2014 02:00:41 +0000 (UTC)
Cc: emacs-devel@gnu.org
To: netcasper@gmail.com
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 30 04:00:33 2014
Return-path: <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>
Envelope-to: ged-emacs-devel@m.gmane.org
Original-Received: from lists.gnu.org ([208.118.235.17])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>)
	id 1WfJp3-00012K-0d
	for ged-emacs-devel@m.gmane.org; Wed, 30 Apr 2014 04:00:33 +0200
Original-Received: from localhost ([::1]:54371 helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>)
	id 1WfJp2-0005tn-Na
	for ged-emacs-devel@m.gmane.org; Tue, 29 Apr 2014 22:00:32 -0400
Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42258)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <liuhui.zy@gmail.com>) id 1WfJow-0005sJ-BI
	for emacs-devel@gnu.org; Tue, 29 Apr 2014 22:00:26 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <liuhui.zy@gmail.com>) id 1WfJov-0005wb-IV
	for emacs-devel@gnu.org; Tue, 29 Apr 2014 22:00:26 -0400
Original-Received: from mail-qc0-x244.google.com ([2607:f8b0:400d:c01::244]:51958)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <liuhui.zy@gmail.com>) id 1WfJov-0005wX-Dz
	for emacs-devel@gnu.org; Tue, 29 Apr 2014 22:00:25 -0400
Original-Received: by mail-qc0-f196.google.com with SMTP id x13so383681qcv.11
	for <emacs-devel@gnu.org>; Tue, 29 Apr 2014 19:00:24 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:date:message-id:subject:from:to:cc:content-type;
	bh=WxTP72JlxO9J1i4kDNFoSgr4Z/YYgeAz84DkmocgEcY=;
	b=GmbTRiXrzcJlRZTLqbBrpjqDx07Yrw2PVp0TWo7NOqQDIac7aNUmBvUVGha+emslEt
	k4szkAhAIl8AzrCdPsy3uvT8uMc5RoWUhr2IxI7CYquBlY+vVHyy8O/BHaFsFYW/pIzM
	reO1flxT5cy5oDiJmU94ZjBCG6OamWHbLwkcYeJ71o2Wd4qx2J8OvudIbyGy63eIWmaF
	04D5AnxTuc5SXig6OCMuzEGwnHyqLMwrNcZuI4+AlB8oJpIrc1QPgmumiwNvdfOP1pvj
	85wFMVqvNFgwIcjG5buszJYya8jk1L11Uxuoh7AApPjB5mAa2whFkXXyAAdlgh4eeAM1
	vpJA==
X-Received: by 10.224.138.3 with SMTP id y3mr1525080qat.78.1398823224488; Tue,
	29 Apr 2014 19:00:24 -0700 (PDT)
Original-Received: by 10.140.34.80 with HTTP; Tue, 29 Apr 2014 19:00:24 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
	(bad octet value).
X-Received-From: 2607:f8b0:400d:c01::244
X-BeenThere: emacs-devel@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Emacs development discussions." <emacs-devel.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-devel>,
	<mailto:emacs-devel-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/emacs-devel>
List-Post: <mailto:emacs-devel@gnu.org>
List-Help: <mailto:emacs-devel-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-devel>,
	<mailto:emacs-devel-request@gnu.org?subject=subscribe>
Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org
Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org
Xref: news.gmane.org gmane.emacs.devel:171659
Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/171659>

> But there is a bug on displaying Chinese double dash.  When I switch
> to other buffer and switch back, it looks wrong.  I attached both
> screenshots and I draw a red line under Chinese double dash in the
> correct one.

I don't think it is a bug of the patch. The font you used looks like
WenQuanYi Micro Hei, so I test a dozen other Chinese fonts. ONLY
WenQuanYi fonts have this problem.

The reason is the some characters (e.g. Chinese punctuations and Greek
letters) in WenQuanYi fonts are halfwidth. I know little about fonts,
so I doubt if it is a bug of WenQuanYi because these characters in
other Chinese fonts are all fullwidth.

Since these characters are included in the symbol charset, You can
simply leave this charset to the default English font. Or use any
other Chinese fonts except WenQuanYi.