From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Forrest Y. Yu" Newsgroups: gmane.emacs.help Subject: Incorrect tab-width when using non-english fonts Date: Fri, 22 Aug 2008 17:05:50 +0800 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_63821_18992342.1219395950299" X-Trace: ger.gmane.org 1219398619 26084 80.91.229.12 (22 Aug 2008 09:50:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Aug 2008 09:50:19 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 22 11:51:12 2008 Return-path: Envelope-to: geh-help-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 1KWTIQ-0000WE-Nj for geh-help-gnu-emacs@m.gmane.org; Fri, 22 Aug 2008 11:51:07 +0200 Original-Received: from localhost ([127.0.0.1]:38673 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KWTHT-0004vF-3a for geh-help-gnu-emacs@m.gmane.org; Fri, 22 Aug 2008 05:50:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KWSah-0007Da-AZ for help-gnu-emacs@gnu.org; Fri, 22 Aug 2008 05:05:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KWSae-0007CO-5B for help-gnu-emacs@gnu.org; Fri, 22 Aug 2008 05:05:53 -0400 Original-Received: from [199.232.76.173] (port=57976 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KWSad-0007CH-V9 for help-gnu-emacs@gnu.org; Fri, 22 Aug 2008 05:05:52 -0400 Original-Received: from an-out-0708.google.com ([209.85.132.243]:6956) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KWSad-0002rv-Ln for help-gnu-emacs@gnu.org; Fri, 22 Aug 2008 05:05:51 -0400 Original-Received: by an-out-0708.google.com with SMTP id c38so92160ana.84 for ; Fri, 22 Aug 2008 02:05:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=l5F6vNUCn6g9et2taDk8nx5b2I38z6cJCltd6kkabR4=; b=wUTg5cE9s/HDpPlNNtcKD2PpVs6h0Mh5yxC461dvI7g1cS7sVlcaTUTEJjXyphllxP j0tXIlgIridNCHIfhn3M3/Mqql3dlI3xf9amHHS9Fh5MGSD10LiSIB/GtYIY7Ou3Mu48 QFa5e385ZDBMBl/XrcX2IIQwfnQkMxWt7WghI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=xZqAaDAvn7YDymWnUeaDbaR5IuW+vkx5113NL/ZfJ7H4CfCMBU4YlLiDIGAGKA3zCW hpe2OsOB+ds9PZQZThiZTaAO24zUMWmhP9dCPnnc6VDvXXvYkZ+QqG9ATVUJaBG9ySjM 12JwcE4Z1i3d/fQoobuRw7yGsPBkdEbN0KDbA= Original-Received: by 10.100.154.9 with SMTP id b9mr886482ane.54.1219395950292; Fri, 22 Aug 2008 02:05:50 -0700 (PDT) Original-Received: by 10.100.45.2 with HTTP; Fri, 22 Aug 2008 02:05:50 -0700 (PDT) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:56879 Archived-At: ------=_Part_63821_18992342.1219395950299 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I fetched Emacs-23.0.60.1 yesterday and built it successfully. It is beautiful. However, when I set default font to SimSun -- a common Chinese font, the tab-width becomes twice as before, that is, Emacs calculates the tab width in width of Chinese, which often occupies a space of two English letters. That makes my document looks weird. My last installation was done about 8 months ago. Things were ok with that version. The tab-width was correct no matter what fonts I used. This is not a simple tab-width problem, so I don't know how to search the internet. I tried but found no useful information. One possible solution is to use two kinds of fonts, one for English the other for Chinese, but that will make my doc fail to align. I need that one Chinese character occupies exactly the width of two monospace-type english letters. I cannot find any English font that satisfies this. In a word, my problem might be solved in these two ways: 1. To make Emacs calculate width using English letters regardless of the font 2. To find an English font whose width is half of a Chinese character (of course, it should be monospace) Neither of the way I know how to do. Could anyone help me out? Thanks for your attention. Your suggestion will be very appreciated. Best Regards, Forrest (YYu) -- Stupid is as stupid does. ------=_Part_63821_18992342.1219395950299 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Hi,

  I fetched Emacs-23.0.60.1 yesterday and built it successfully. It is beautiful. However, when I set default font to SimSun -- a common Chinese font, the tab-width becomes twice as before, that is, Emacs calculates the tab width in width of Chinese, which often occupies a space of two English letters. That makes my document looks weird.

  My last installation was done about 8 months ago. Things were ok with that version. The tab-width was correct no matter what fonts I used.

  This is not a simple tab-width problem, so I don't know how to search the internet. I tried but found no useful information.

  One possible solution is to use two kinds of fonts, one for English the other for Chinese, but that will make my doc fail to align. I need that one Chinese character occupies exactly the width of two monospace-type english letters. I cannot find any English font that satisfies this.

  In a word, my problem might be solved in these two ways:

  1. To make Emacs calculate width using English letters regardless of the font
  2. To find an English font whose width is half of a Chinese character (of course, it should be monospace)

  Neither of the way I know how to do.

  Could anyone help me out?

  Thanks for your attention. Your suggestion will be very appreciated.

Best Regards,
Forrest (YYu)

--
Stupid is as stupid does.
------=_Part_63821_18992342.1219395950299--