From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4273 invoked from network); 1 Jul 1997 12:11:51 -0000 Received: from euclid.skiles.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 1 Jul 1997 12:11:51 -0000 Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id HAA02833; Tue, 1 Jul 1997 07:56:14 -0400 (EDT) Resent-Date: Tue, 1 Jul 1997 07:55:48 -0400 (EDT) Message-Id: <199707011159.NAA10888@hydra.ifh.de> To: zsh-users@math.gatech.edu (Zsh users list) Subject: Key bindings for ISO-8859-1 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----- =_aaaaaaaaaa0" Content-ID: <9291.867757920.0@hydra.ifh.de> Date: Tue, 01 Jul 1997 13:59:56 +0200 From: Peter Stephenson Resent-Message-ID: <"xVfDP1.0.Ug.31Fkp"@euclid> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/928 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu ------- =_aaaaaaaaaa0 Content-Type: text/plain; charset="us-ascii" Content-ID: <9291.867757920.1@hydra.ifh.de> On the subject of 8-bit fonts... here is a set of key bindings useful for inserting accented characters and similar for ISO-8859-1 (which is the standard encoding for X-windows fonts in countries with the latin alphabet). It's really for people without keyboard support for accented characters, but it does have the advantage that the shell knows the character is to be literal rather than a command sequence. This could probably usefully be in StartupFiles or Misc. I have sent it as an attachment with quoted-printables since it has 8 bit characters in it. However, it should work anyway since the bindings themselves use the ASCII equivalents with a \M- in front. Oh yes... remember the bit in the FAQ about using the meta key. -- Peter Stephenson Tel: +49 33762 77366 WWW: http://www.ifh.de/~pws/ Fax: +49 33762 77413 Deutsches Elektronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen DESY-IfH, 15735 Zeuthen, Germany. ------- =_aaaaaaaaaa0 Content-Type: text/plain; charset="iso-8859-1" Content-ID: <9291.867757920.2@hydra.ifh.de> Content-Description: isobindings.zsh Content-Transfer-Encoding: quoted-printable # ISO-8859-1 mappings which work like Emacs' iso-accent-mode. # This file contains ISO-8859-1 characters itself, which may have # been encoded for mailing. However, it should work even if these # have not been properly decoded, since only ASCII sequences are # used to define the bindings themselves. # # One minor annoyance is that this relies on control-V being bound to # quoted-insert. However, it should work in both emacs and vi insert # mode. # # You type the metafied accent character ', `, ", ^, ~ or /, then the # letter to be accented (only the sensible combinations work; / only # works naturally with o or O). # # Other unexpected combinations: # \M-~c =E7 \M-~C =C7 # \M-~d =F0 \M-~D =D0 # \M-"s =DF # \M-/a =E5 \M-/A =C5 # \M-/e =E6 \M-/E =C6 # \M-~< =AB \M-~> =BB # The following are my own additions which are not in the Emacs # version (some are vaguely TeX-based): # \M-/# =A3 # \M-/c =A2 # \M-/m =B5 # \M-/p =B6 # \M-/s =A7 # \M-/t =FE # \M-/y =A5 # \M-/C =A9 # \M-/R =AE # \M-`? =BF # \M-`! =A1 # \M-\^1 =B9 # \M-\^2 =B2 # \M-\^3 =B3 # Note that \M-' and \M-" are bound to quote-line and quote-region. # However, if you unbind them you can still use escape-' and escape-" # for that purpose. Conversely, the bindings with escape do not give # accented characters. bindkey -r '\M-`' '\M-\^' '\M-'\' '\M-"' '\M-~' '\M-/' # This is the raw binding table, which may be garbled. # bindkey -s "\M-'a" '^V=E1' "\M-'A" '^V=C1' \ # "\M-'e" '^V=E9' "\M-'E" '^V=C9' \ # "\M-'i" '^V=ED' "\M-'I" '^V=CD' \ # "\M-'o" '^V=F3' "\M-'O" '^V=D3' \ # "\M-'u" '^V=FA' "\M-'U" '^V=DA' \ # "\M-'y" '^V=FD' "\M-'Y" '^V=DD' \ # '\M-`a' '^V=E0' '\M-`A' '^V=C0' \ # '\M-`e' '^V=E8' '\M-`E' '^V=C8' \ # '\M-`i' '^V=EC' '\M-`I' '^V=CC' \ # '\M-`o' '^V=F2' '\M-`O' '^V=D2' \ # '\M-`u' '^V=F9' '\M-`U' '^V=D9' \ # '\M-\^a' '^V=E2' '\M-\^A' '^V=C2' \ # '\M-\^e' '^V=EA' '\M-\^E' '^V=CA' \ # '\M-\^i' '^V=EE' '\M-\^I' '^V=CE' \ # '\M-\^o' '^V=F4' '\M-\^O' '^V=D4' \ # '\M-\^u' '^V=FB' '\M-\^U' '^V=DB' \ # '\M-"a' '^V=E4' '\M-"A' '^V=C4' \ # '\M-"e' '^V=EB' '\M-"E' '^V=CB' \ # '\M-"i' '^V=EF' '\M-"I' '^V=EF' \ # '\M-"o' '^V=F6' '\M-"O' '^V=D6' \ # '\M-"u' '^V=FC' '\M-"U' '^V=DC' \ # '\M-"s' '^V=DF' '\M-"y' '^V=FF' \ # '\M-~a' '^V=E3' '\M-~A' '^V=C3' \ # '\M-~c' '^V=E7' '\M-~C' '^V=C7' \ # '\M-~d' '^V=F0' '\M-~D' '^V=D0' \ # '\M-~n' '^V=F1' '\M-~N' '^V=D1' \ # '\M-~o' '^V=F5' '\M-~O' '^V=D5' \ # '\M-~<' '^V=AB' '\M-~>' '^V=BB' \ # '\M-~~' '^V=B8' \ # '\M-`?' '^V=BF' '\M-`!' '^V=A1' \ # '\M-/a' '^V=E5' '\M-/A' '^V=C5' \ # '\M-/e' '^V=E6' '\M-/E' '^V=C6' \ # '\M-/o' '^V=F8' '\M-/O' '^V=D8' \ # '\M-//' '^V=B0' '\M-/#' '^V=A3' \ # '\M-/t' '^V=FE' '\M-/c' '^V=A2' \ # '\M-/m' '^V=B5' '\M-/p' '^V=B6' \ # '\M-/s' '^V=A7' '\M-/y' '^V=A5' \ # '\M-/C' '^V=A9' '\M-/R' '^V=AE' \ # '\M-\^1' '^V=B9' '\M-\^2' '^V=B2' \ # '\M-\^3' '^V=B3' # The following binds the same characters, but using only ASCII sequences. bindkey -s "\M-'a" '^V\M-a' "\M-'A" '^V\M-A' \ "\M-'e" '^V\M-i' "\M-'E" '^V\M-I' \ "\M-'i" '^V\M-m' "\M-'I" '^V\M-M' \ "\M-'o" '^V\M-s' "\M-'O" '^V\M-S' \ "\M-'u" '^V\M-z' "\M-'U" '^V\M-Z' \ "\M-'y" '^V\M-}' "\M-'Y" '^V\M-]' \ '\M-`a' '^V\M-`' '\M-`A' '^V\M-@' \ '\M-`e' '^V\M-h' '\M-`E' '^V\M-H' \ '\M-`i' '^V\M-l' '\M-`I' '^V\M-L' \ '\M-`o' '^V\M-r' '\M-`O' '^V\M-R' \ '\M-`u' '^V\M-y' '\M-`U' '^V\M-Y' \ '\M-\^a' '^V\M-b' '\M-\^A' '^V\M-B' \ '\M-\^e' '^V\M-j' '\M-\^E' '^V\M-J' \ '\M-\^i' '^V\M-n' '\M-\^I' '^V\M-N' \ '\M-\^o' '^V\M-t' '\M-\^O' '^V\M-T' \ '\M-\^u' '^V\M-{' '\M-\^U' '^V\M-[' \ '\M-"a' '^V\M-d' '\M-"A' '^V\M-D' \ '\M-"e' '^V\M-k' '\M-"E' '^V\M-K' \ '\M-"i' '^V\M-o' '\M-"I' '^V\M-O' \ '\M-"o' '^V\M-v' '\M-"O' '^V\M-V' \ '\M-"u' '^V\M-|' '\M-"U' '^V\M-\\' \ '\M-"s' '^V\M-_' '\M-"y' '^V\M-^?' \ '\M-~a' '^V\M-c' '\M-~A' '^V\M-C' \ '\M-~c' '^V\M-g' '\M-~C' '^V\M-G' \ '\M-~d' '^V\M-p' '\M-~D' '^V\M-P' \ '\M-~n' '^V\M-q' '\M-~N' '^V\M-Q' \ '\M-~o' '^V\M-u' '\M-~O' '^V\M-U' \ '\M-~<' '^V\M-+' '\M-~>' '^V\M-;' \ '\M-~~' '^V\M-8' \ '\M-`?' '^V\M-?' '\M-`!' '^V\M-!' \ '\M-/a' '^V\M-e' '\M-/A' '^V\M-E' \ '\M-/e' '^V\M-f' '\M-/E' '^V\M-F' \ '\M-/o' '^V\M-x' '\M-/O' '^V\M-X' \ '\M-//' '^V\M-0' '\M-/#' '^V\M-#' \ '\M-/t' '^V\M-~' '\M-/c' '^V\M-"' \ '\M-/m' '^V\M-5' '\M-/p' '^V\M-6' \ '\M-/s' '^V\M-'\' '\M-/y' '^V\M-%' \ '\M-/C' '^V\M-)' '\M-/R' '^V\M-.' \ '\M-\^1' '^V\M-9' '\M-\^2' '^V\M-2' \ '\M-\^3' '^V\M-3' ------- =_aaaaaaaaaa0--