From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ulrich Hobelmann Newsgroups: gmane.emacs.devel Subject: Special Characters on Mac Emacs Date: Thu, 10 Mar 2005 10:18:02 -0600 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1110474380 13209 80.91.229.2 (10 Mar 2005 17:06:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 10 Mar 2005 17:06:20 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 10 18:06:19 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D9R4g-0004u6-Ko for ged-emacs-devel@m.gmane.org; Thu, 10 Mar 2005 18:03:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D9RJa-0007cP-Rl for ged-emacs-devel@m.gmane.org; Thu, 10 Mar 2005 12:19:14 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D9RHj-0006vQ-OZ for emacs-devel@gnu.org; Thu, 10 Mar 2005 12:17:19 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D9RHe-0006rO-Gg for emacs-devel@gnu.org; Thu, 10 Mar 2005 12:17:15 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D9RHe-0006pW-CR for emacs-devel@gnu.org; Thu, 10 Mar 2005 12:17:14 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1D9QwA-00050W-Ri for emacs-devel@gnu.org; Thu, 10 Mar 2005 11:55:03 -0500 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1D9QsX-0003C5-Cl for emacs-devel@gnu.org; Thu, 10 Mar 2005 17:51:17 +0100 Original-Received: from 138.49.154.30 ([138.49.154.30]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 10 Mar 2005 17:51:17 +0100 Original-Received: from u.hobelmann by 138.49.154.30 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 10 Mar 2005 17:51:17 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 64 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 138.49.154.30 User-Agent: Mozilla Thunderbird 1.0 (Macintosh/20041206) X-Accept-Language: en-us, en X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: news.gmane.org gmane.emacs.devel:34424 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34424 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