From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: Special Characters on Mac Emacs Date: Wed, 09 Mar 2005 23:22:01 -0500 Organization: Bell Sympatico Message-ID: <87zmxc6sio.fsf-monnier+gnu.emacs.help@gnu.org> References: <399bktF5u12hpU1@individual.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1110430331 30445 80.91.229.2 (10 Mar 2005 04:52:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 10 Mar 2005 04:52:11 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 10 05:52:10 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D9FeP-00088o-DA for geh-help-gnu-emacs@m.gmane.org; Thu, 10 Mar 2005 05:51:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D9FtD-0007Mz-3b for geh-help-gnu-emacs@m.gmane.org; Thu, 10 Mar 2005 00:07:15 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!cyclone.bc.net!news-in.mts.net!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:fInlsFRIpGPZW36K+JYdJmGUzqU= Original-Lines: 72 Original-NNTP-Posting-Host: 65.92.241.52 Original-X-Complaints-To: abuse@sympatico.ca Original-X-Trace: news20.bellglobal.com 1110428521 65.92.241.52 (Wed, 09 Mar 2005 23:22:01 EST) Original-NNTP-Posting-Date: Wed, 09 Mar 2005 23:22:01 EST Original-Xref: shelby.stanford.edu gnu.emacs.help:129160 Original-To: help-gnu-emacs@gnu.org 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 X-MailScanner-To: geh-help-gnu-emacs@m.gmane.org Xref: news.gmane.org gmane.emacs.help:24710 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:24710 Discussion of development versions of Emacs, as explained in INSTALL.CVS should take place in emacs-devel or emacs-pretest-bug so that problems may have a chance of getting fixed before the release. Please, Stefan >>>>> "Ulrich" == Ulrich Hobelmann writes: > Okay, let me wrap up how things work out for me: > (set-keyboard-coding-system 'mac-roman) > seems to be an easy way to make Emacs behave like one would expect it to: > all special combinations (umlauts, euro symbol, accents) work. > To make Emacs display the stuff the following works: > (create-fontset-from-fontset-spec > "-apple-monaco-medium-r-normal--12-*-*-*-*-*-fontset-monaco, > ascii:-apple-monaco-medium-r-normal--12-120-75-75-m-120-mac-roman, > mule-unicode-0100-24ff:-apple-lucida > grande-medium-r-normal--0-0-75-75-m-0-mac-roman, > mule-unicode-2500-33ff:-apple-bitstream vera sans mono > bold-medium-r-normal--0-0-75-75-m-0-mac-roman, > latin-iso8859-15:-apple-monaco-medium-r-normal--12-120-75-75-m-120-mac-roman, > latin-iso8859-1:-apple-monaco-medium-r-normal--12-120-75-75-m-120-mac-roman" > ) > (set-face-font > 'default "-apple-monaco-medium-r-normal--12-*-*-*-*-*-fontset-monaco") > It seems, however, that Emacs really only uses the first (ascii) part, so > I tried changing it to: > (create-fontset-from-fontset-spec > "-apple-Bitstream Vera Sans > Mono-regular-r-normal--13-*-*-*-*-*-fontset-monaco, > ascii:-apple-Bitstream Vera Sans > Mono-regular-r-normal--13-140-75-75-m-120-mac-roman, > mule-unicode-0100-24ff:-apple-lucida > grande-medium-r-normal--0-0-75-75-m-0-mac-roman, > mule-unicode-2500-33ff:-apple-bitstream vera sans mono > bold-medium-r-normal--0-0-75-75-m-0-mac-roman, > latin-iso8859-15:-apple-monaco-medium-r-normal--12-120-75-75-m-120-mac-roman, > latin-iso8859-1:-apple-monaco-medium-r-normal--12-120-75-75-m-120-mac-roman" > ) > Interestingly now Emacs explodes into the debugger and claims that no font > matches. For some reason the very same font works fine with: > (set-face-font 'default "-apple-Bitstream Vera Sans > Mono-regular-r-normal--13-140-75-75-m-120-mac-roman"). Only then the > special characters don't display correctly. > What is it that makes Emacs find the font in one instance and not in the > other? And what makes Emacs accept the fontset containing a Monaco with > mac-roman encoding(!) but display special characters, while loading the > Bitstream font (also with mac-roman encoding) can't display > special characters? > The emacs info pages can't really help me. I don't really understand what > all those characters and numbers in a fontset stand for... But this doesn't > change the fact that emacs doesn't even find my font to include it in > the fontset. > Regards, Ulrich