From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Hansen Newsgroups: gmane.emacs.help Subject: Re: big5 only on emacs-nox for Fedora core 6 Date: Mon, 05 Mar 2007 03:31:06 +0100 Organization: disorganized Message-ID: <87slck8lqt.fsf@localhorst.mine.nu> References: <1172906831.774039.235910@t69g2000cwt.googlegroups.com> <1173058326.592016.241520@j27g2000cwj.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1173062435 15471 80.91.229.12 (5 Mar 2007 02:40:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 5 Mar 2007 02:40:35 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 05 03:40:30 2007 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 1HO37l-0001le-Mp for geh-help-gnu-emacs@m.gmane.org; Mon, 05 Mar 2007 03:40:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HO37l-00070P-9B for geh-help-gnu-emacs@m.gmane.org; Sun, 04 Mar 2007 21:40:29 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HO37V-00070K-Qp for help-gnu-emacs@gnu.org; Sun, 04 Mar 2007 21:40:13 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HO37U-000708-AS for help-gnu-emacs@gnu.org; Sun, 04 Mar 2007 21:40:13 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HO37U-000705-7r for help-gnu-emacs@gnu.org; Sun, 04 Mar 2007 21:40:12 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1HO37T-0007j4-K9 for help-gnu-emacs@gnu.org; Sun, 04 Mar 2007 21:40:12 -0500 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1HO37K-0004d3-J4 for help-gnu-emacs@gnu.org; Mon, 05 Mar 2007 03:40:04 +0100 Original-Received: from e178058052.adsl.alicedsl.de ([85.178.58.52]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 05 Mar 2007 03:40:02 +0100 Original-Received: from david.hansen by e178058052.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 05 Mar 2007 03:40:02 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 58 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: e178058052.adsl.alicedsl.de Mail-Copies-To: nobody User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.95 (gnu/linux) Cancel-Lock: sha1:LHDBmUApE0t+JrEqjvvUbbFNd9o= X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) 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:41661 Archived-At: On 4 Mar 2007 17:32:06 -0800 "weihan" wrote: > On 3月3日, 下午6時04分, David Hansen wrote: >> On 2 Mar 2007 23:27:11 -0800 "weihan" wrote: >> >> > Recently, I just upgrade my system to Fedora core 6. I found that >> > in the new OS, the Chinese big5 font can not be shown correctly on >> > emacs. >> > However, it can be shown on emacs-nox. Is there anything I can change >> > to >> > make the emacs work for X-window version ? >> >> You can try to set the font for this encoding via fontsets in your >> ~/.Xresources. >> >> David > > Hi, I try to add the following line on .emacs > > (set-default-font > "-arphic technology co.-ar pl mingti2l big5-medium-r-normal--0-0-0-0- > c-0-iso10646-1") > > the font comes exactly from xlsfonts command, but the emacs keep say > the font does not exist ! > > Anything wrong. I'm not sure if whats wrong with it but you probably don't want to set the "default font". Emacs chooses different fonts for different encodings with some heuristics that usually work pretty well. I suspect in your case emacs tries to find a latin version of your font and fails (I might be wrong though). An IMHO good method to solve your problem is to first choose your favorite fixed font for ASCII chars and add Emacs*fontset-0: -*-neep alt-medium-*-*-*-13-*-*-*-*-*-fontset-name Emacs*font: fontset-name to your Xresources file (and xrdb -merge it and restart Emacs). Now if you see some non ASCII characters that look ugly or are shown as boxes move the cursor over it and hit C-u x =. Emacs will tell you the category of the character. Now you extend you fontset definition (make sure the font is available in the encoding that emacs has chosen). I ended up with: Emacs*fontset-0: -*-neep alt-medium-*-*-*-13-*-*-*-*-*-fontset-small,\ mule-unicode-2500-33ff: -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1,\ mule-unicode-e000-ffff: -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1,\ mule-unicode-0100-24ff: -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1 xrdb -merge again and restart emacs. Note that you can specify fontsets via elisp too. Might save some restarting but I don't know how it works. David