From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: Remap key to UK pound sign Date: Wed, 22 Jun 2005 23:43:11 +0200 Message-ID: <738c283cc080dd0115562effd58f0051@Web.DE> References: <42b95e49$0$2412$ed2619ec@ptn-nntp-reader02.plus.net> <42b9cecc$0$2061$ed2e19e4@ptn-nntp-reader04.plus.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v622) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1119477381 25307 80.91.229.2 (22 Jun 2005 21:56:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 22 Jun 2005 21:56:21 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 22 23:56:16 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DlDCM-0005Ut-53 for geh-help-gnu-emacs@m.gmane.org; Wed, 22 Jun 2005 23:55:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DlDJ3-0007x1-IZ for geh-help-gnu-emacs@m.gmane.org; Wed, 22 Jun 2005 18:02:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DlDIY-0007oy-C1 for help-gnu-emacs@gnu.org; Wed, 22 Jun 2005 18:02:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DlDDN-0007Lj-7b for help-gnu-emacs@gnu.org; Wed, 22 Jun 2005 17:57:05 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DlDDI-0007Eu-3N for help-gnu-emacs@gnu.org; Wed, 22 Jun 2005 17:56:52 -0400 Original-Received: from [217.72.192.209] (helo=smtp05.web.de) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1DlD3G-0002l5-Aq for help-gnu-emacs@gnu.org; Wed, 22 Jun 2005 17:46:30 -0400 Original-Received: from [84.245.189.243] (helo=[192.168.1.2]) by smtp05.web.de with asmtp (TLSv1:RC4-SHA:128) (WEB.DE 4.105 #297) id 1DlD04-000816-00 for help-gnu-emacs@gnu.org; Wed, 22 Jun 2005 23:43:12 +0200 In-Reply-To: <42b9cecc$0$2061$ed2e19e4@ptn-nntp-reader04.plus.net> Original-To: emacs help X-Mailer: Apple Mail (2.622) X-Sender: Peter_Dyballa@web.de 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:27605 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:27605 Am 22.06.2005 um 22:49 schrieb zaphod: > Here's the result: > > character: =A3 (04243, 2211, 0x8a3, U+00A3) > charset: latin-iso8859-1 (Right-Hand Part of Latin Alphabet 1=20 > (ISO/IEC > 8859-1): ISO-IR-100.) > code point: 35 > syntax: w which means: word > category: l:Latin > buffer code: 0x81 0xA3 > file code: 0xA3 (encoded by coding system iso-latin-1) > display: no font available > Here above is the answer: "no font available." You're lucky that the =A3 is defined in the MacRoman encoding! So all = you=20 need are fontsets from fonts of your system. To get a list of all=20 available fonts: 1) find a name for the file containing all available fonts 2) write that name down in *scratch* buffer and copy it into a register 3) type M-x set-frame-fonts RET TAB TAB C-g 4) change back into the *Completions* buffer 5) save it to the file name in that register -- if you try to expand a=20= file name the *Completions* buffer will contain these expansions! Now create fontsets =E0 la these templates (with the right fonts and the=20= preferred sizes): (create-fontset-from-mac-roman-font "-*-bitstream vera sans=20 mono-medium-r-*-*-9-*-*-*-*-*-mac-roman" nil "09pt_vera_sans_mono") (create-fontset-from-mac-roman-font "-*-letter=20 gothic-medium-r-*-*-10-*-*-*-*-*-mac-roman" nil=20 "10pt_letter_gothic") (create-fontset-from-mac-roman-font=20 "-*-courier-medium-r-*-*-11-*-*-*-*-*-mac-roman" nil=20 "11pt_bitstream_courier") (create-fontset-from-mac-roman-font "-*-courier=20 std-medium-r-*-*-12-*-*-*-*-*-mac-roman" nil=20 "12pt_courier_std") (create-fontset-from-mac-roman-font=20 "-*-monaco-medium-r-*-*-13-*-*-*-*-*-mac-roman" nil=20 "13pt_monaco") (create-fontset-from-mac-roman-font "-*-andale=20 mono-medium-r-*-*-14-*-*-*-*-*-mac-roman" nil=20 "14pt_andale_mono") Use in .emacs something like: (setq initial-frame-alist '( (mouse-color . "blue") (foreground-color . "midnightblue") (background-color . "antiquewhite1") (font . "fontset-13pt_courier_new") (top . 10) (left . 650) (width . 89) (height . 60))) (setq default-frame-alist '( (background-color . "ghost white") (foreground-color . "grey10") (cursor-color . "purple") (cursor-type . box) (vertical-scroll-bars . left) (font . "fontset-12pt_bitstream_courier") (top . 20) (left . 150) (width . 89) (height . 56))) and (set-terminal-coding-system 'mac-roman) (set-default-coding-systems 'mac-roman) (prefer-coding-system 'mac-roman) In cases when this setup fails you can add something like this to a=20 file's header: ;;; -*- mode: Text; coding: mac-roman-unix; -*- Remember that in Carbon Emacs you're restricted to Mac encodings! -- Greetings Pete =46rom error to error, one discovers the entire truth. -Sigmund=20 Freud