From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "weihan" Newsgroups: gmane.emacs.help Subject: Re: big5 only on emacs-nox for Fedora core 6 Date: 5 Mar 2007 00:58:50 -0800 Organization: http://groups.google.com Message-ID: <1173085124.907910.303370@p10g2000cwp.googlegroups.com> 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="big5" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1173087705 12376 80.91.229.12 (5 Mar 2007 09:41:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 5 Mar 2007 09:41:45 +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 10:41:39 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 1HO9hK-0002f1-H2 for geh-help-gnu-emacs@m.gmane.org; Mon, 05 Mar 2007 10:41:38 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HO9hK-0001B3-3V for geh-help-gnu-emacs@m.gmane.org; Mon, 05 Mar 2007 04:41:38 -0500 Original-Path: shelby.stanford.edu!newshub.stanford.edu!postnews.google.com!p10g2000cwp.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 79 Original-NNTP-Posting-Host: 140.115.25.24 Original-X-Trace: posting.google.com 1173085146 5544 127.0.0.1 (5 Mar 2007 08:59:06 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 5 Mar 2007 08:59:06 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; zh-TW; rv:1.8.1.2) Gecko/20070220 Firefox/2.0.0.2,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: p10g2000cwp.googlegroups.com; posting-host=140.115.25.24; posting-account=5kPnIg0AAABo4qcP-aG1YOCapxIh9-Ad Original-Xref: shelby.stanford.edu gnu.emacs.help:146065 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:41669 Archived-At: On 3=A4=EB5=A4=E9, =A4W=A4=C810=AE=C931=A4=C0, David Hansen wrote: > On 4 Mar 2007 17:32:06 -0800 "weihan" wrote: > > > > > > > > > On 3=A4=EB3=A4=E9, =A4U=A4=C86=AE=C904=A4=C0, 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 =3D. 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 When I type C-u x =3D with cursor on the box and proper .Xresources as you suggest the emacs responses xxxx=3D. There is no category of the character. Any idea ? weihan