From: Peter Dyballa <Peter_Dyballa@Web.DE>
Subject: Re: Remap key to UK pound sign
Date: Wed, 22 Jun 2005 23:43:11 +0200 [thread overview]
Message-ID: <738c283cc080dd0115562effd58f0051@Web.DE> (raw)
In-Reply-To: <42b9cecc$0$2061$ed2e19e4@ptn-nntp-reader04.plus.net>
Am 22.06.2005 um 22:49 schrieb zaphod:
> Here's the result:
>
> character: £ (04243, 2211, 0x8a3, U+00A3)
> charset: latin-iso8859-1 (Right-Hand Part of Latin Alphabet 1
> (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 £ is defined in the MacRoman encoding! So all you
need are fontsets from fonts of your system. To get a list of all
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
file name the *Completions* buffer will contain these expansions!
Now create fontsets à la these templates (with the right fonts and the
preferred sizes):
(create-fontset-from-mac-roman-font "-*-bitstream vera sans
mono-medium-r-*-*-9-*-*-*-*-*-mac-roman" nil "09pt_vera_sans_mono")
(create-fontset-from-mac-roman-font "-*-letter
gothic-medium-r-*-*-10-*-*-*-*-*-mac-roman" nil
"10pt_letter_gothic")
(create-fontset-from-mac-roman-font
"-*-courier-medium-r-*-*-11-*-*-*-*-*-mac-roman" nil
"11pt_bitstream_courier")
(create-fontset-from-mac-roman-font "-*-courier
std-medium-r-*-*-12-*-*-*-*-*-mac-roman" nil
"12pt_courier_std")
(create-fontset-from-mac-roman-font
"-*-monaco-medium-r-*-*-13-*-*-*-*-*-mac-roman" nil
"13pt_monaco")
(create-fontset-from-mac-roman-font "-*-andale
mono-medium-r-*-*-14-*-*-*-*-*-mac-roman" nil
"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
file's header:
;;; -*- mode: Text; coding: mac-roman-unix; -*-
Remember that in Carbon Emacs you're restricted to Mac encodings!
--
Greetings
Pete
From error to error, one discovers the entire truth.
-Sigmund
Freud
next prev parent reply other threads:[~2005-06-22 21:43 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-22 12:49 Remap key to UK pound sign zaphod
2005-06-22 13:48 ` Peter Dyballa
[not found] ` <mailman.802.1119448232.2857.help-gnu-emacs@gnu.org>
2005-06-22 20:49 ` zaphod
2005-06-22 21:18 ` Jason Rumney
2005-06-23 0:28 ` zaphod
2005-06-23 8:41 ` Peter Dyballa
[not found] ` <mailman.939.1119517905.2857.help-gnu-emacs@gnu.org>
2005-06-23 21:13 ` zaphod
2005-06-23 22:06 ` Peter Dyballa
2005-06-28 7:08 ` Stefan Monnier
2005-06-28 8:19 ` Peter Dyballa
2005-06-22 21:43 ` Peter Dyballa [this message]
2005-06-22 21:14 ` Jason Rumney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=738c283cc080dd0115562effd58f0051@Web.DE \
--to=peter_dyballa@web.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).