(pascal-auto-newline, pascal-mode, electric-pascal-hash):
[bpt/emacs.git] / lisp / international / iso-ascii.el
CommitLineData
e5167999
ER
1;;; iso-ascii.el --- set up char tables for ISO 8859/1 on ASCII terminals.
2
64690f3d 3;; Copyright (C) 1987, 1995 Free Software Foundation, Inc.
9750e079 4
e5167999
ER
5;; Author: Howard Gayle
6;; Maintainer: FSF
a1d15b3e 7;; Keywords: i18n
3b4a6e27
JB
8
9;; This file is part of GNU Emacs.
10
11;; GNU Emacs is free software; you can redistribute it and/or modify
12;; it under the terms of the GNU General Public License as published by
e5167999 13;; the Free Software Foundation; either version 2, or (at your option)
3b4a6e27
JB
14;; any later version.
15
16;; GNU Emacs is distributed in the hope that it will be useful,
17;; but WITHOUT ANY WARRANTY; without even the implied warranty of
18;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19;; GNU General Public License for more details.
20
21;; You should have received a copy of the GNU General Public License
22;; along with GNU Emacs; see the file COPYING. If not, write to
23;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
24
e5167999 25;;; Commentary:
3b4a6e27
JB
26
27;; Written by Howard Gayle. See display-table.el for details.
28
29;; This code sets up to display ISO 8859/1 characters on plain
30;; ASCII terminals. The display strings for the characters are
31;; more-or-less based on TeX.
32
e5167999
ER
33;;; Code:
34
3b4a6e27
JB
35(require 'disp-table)
36
64690f3d
KH
37(defvar iso-ascii-convenient nil
38 "*Non-nil means `iso-ascii' should aim for convenience, not precision.")
39
40(defun iso-ascii-display (code string &optional convenient-string)
41 (if iso-ascii-convenient
42 (setq string (or convenient-string string))
43 (setq string (concat "{" string "}")))
44 (standard-display-ascii code string))
45
46(iso-ascii-display 160 "_" " ") ; NBSP (no-break space)
47(iso-ascii-display 161 "!") ; inverted exclamation mark
48(iso-ascii-display 162 "c") ; cent sign
49(iso-ascii-display 163 "GBP") ; pound sign
50(iso-ascii-display 164 "$") ; general currency sign
51(iso-ascii-display 165 "JPY") ; yen sign
52(iso-ascii-display 166 "|") ; broken vertical line
53(iso-ascii-display 167 "S" "(S)") ; section sign
54(iso-ascii-display 168 "\"") ; diaeresis
55(iso-ascii-display 169 "C" "(C)") ; copyright sign
56(iso-ascii-display 170 "_a") ; ordinal indicator, feminine
57(iso-ascii-display 171 "<<") ; left angle quotation mark
58(iso-ascii-display 172 "~") ; not sign
59(iso-ascii-display 173 "-") ; soft hyphen
60(iso-ascii-display 174 "R" "(R)") ; registered sign
61(iso-ascii-display 175 "=") ; macron
62(iso-ascii-display 176 "o") ; degree sign
63(iso-ascii-display 177 "+-") ; plus or minus sign
64(iso-ascii-display 178 "2") ; superscript two
65(iso-ascii-display 179 "3") ; superscript three
66(iso-ascii-display 180 "'") ; acute accent
67(iso-ascii-display 181 "u") ; micro sign
68(iso-ascii-display 182 "P" "{P}") ; pilcrow
69(iso-ascii-display 183 ".") ; middle dot
70(iso-ascii-display 184 ",") ; cedilla
71(iso-ascii-display 185 "1") ; superscript one
72(iso-ascii-display 186 "_o") ; ordinal indicator, masculine
73(iso-ascii-display 187 ">>") ; right angle quotation mark
74(iso-ascii-display 188 "1/4") ; fraction one-quarter
75(iso-ascii-display 189 "1/2") ; fraction one-half
76(iso-ascii-display 190 "3/4") ; fraction three-quarters
77(iso-ascii-display 191 "?") ; inverted question mark
78(iso-ascii-display 192 "`A") ; A with grave accent
79(iso-ascii-display 193 "'A") ; A with acute accent
80(iso-ascii-display 194 "^A") ; A with circumflex accent
81(iso-ascii-display 195 "~A") ; A with tilde
82(iso-ascii-display 196 "\"A") ; A with diaeresis or umlaut mark
83(iso-ascii-display 197 "AA") ; A with ring
84(iso-ascii-display 198 "AE") ; AE diphthong
85(iso-ascii-display 199 ",C") ; C with cedilla
86(iso-ascii-display 200 "`E") ; E with grave accent
87(iso-ascii-display 201 "'E") ; E with acute accent
88(iso-ascii-display 202 "^E") ; E with circumflex accent
89(iso-ascii-display 203 "\"E") ; E with diaeresis or umlaut mark
90(iso-ascii-display 204 "`I") ; I with grave accent
91(iso-ascii-display 205 "'I") ; I with acute accent
92(iso-ascii-display 206 "^I") ; I with circumflex accent
93(iso-ascii-display 207 "\"I") ; I with diaeresis or umlaut mark
94(iso-ascii-display 208 "-D") ; D with stroke, Icelandic eth
95(iso-ascii-display 209 "~N") ; N with tilde
96(iso-ascii-display 210 "`O") ; O with grave accent
97(iso-ascii-display 211 "'O") ; O with acute accent
98(iso-ascii-display 212 "^O") ; O with circumflex accent
99(iso-ascii-display 213 "~O") ; O with tilde
100(iso-ascii-display 214 "\"O") ; O with diaeresis or umlaut mark
101(iso-ascii-display 215 "x") ; multiplication sign
102(iso-ascii-display 216 "/O") ; O with slash
103(iso-ascii-display 217 "`U") ; U with grave accent
104(iso-ascii-display 218 "'U") ; U with acute accent
105(iso-ascii-display 219 "^U") ; U with circumflex accent
106(iso-ascii-display 220 "\"U") ; U with diaeresis or umlaut mark
107(iso-ascii-display 221 "'Y") ; Y with acute accent
108(iso-ascii-display 222 "TH") ; capital thorn, Icelandic
109(iso-ascii-display 223 "ss") ; small sharp s, German
110(iso-ascii-display 224 "`a") ; a with grave accent
111(iso-ascii-display 225 "'a") ; a with acute accent
112(iso-ascii-display 226 "^a") ; a with circumflex accent
113(iso-ascii-display 227 "~a") ; a with tilde
114(iso-ascii-display 228 "\"a") ; a with diaeresis or umlaut mark
115(iso-ascii-display 229 "aa") ; a with ring
116(iso-ascii-display 230 "ae") ; ae diphthong
117(iso-ascii-display 231 ",c") ; c with cedilla
118(iso-ascii-display 232 "`e") ; e with grave accent
119(iso-ascii-display 233 "'e") ; e with acute accent
120(iso-ascii-display 234 "^e") ; e with circumflex accent
121(iso-ascii-display 235 "\"e") ; e with diaeresis or umlaut mark
122(iso-ascii-display 236 "`i") ; i with grave accent
123(iso-ascii-display 237 "'i") ; i with acute accent
124(iso-ascii-display 238 "^i") ; i with circumflex accent
125(iso-ascii-display 239 "\"i") ; i with diaeresis or umlaut mark
126(iso-ascii-display 240 "-d") ; d with stroke, Icelandic eth
127(iso-ascii-display 241 "~n") ; n with tilde
128(iso-ascii-display 242 "`o") ; o with grave accent
129(iso-ascii-display 243 "'o") ; o with acute accent
130(iso-ascii-display 244 "^o") ; o with circumflex accent
131(iso-ascii-display 245 "~o") ; o with tilde
132(iso-ascii-display 246 "\"o") ; o with diaeresis or umlaut mark
133(iso-ascii-display 247 "/") ; division sign
134(iso-ascii-display 248 "/o") ; o with slash
135(iso-ascii-display 249 "`u") ; u with grave accent
136(iso-ascii-display 250 "'u") ; u with acute accent
137(iso-ascii-display 251 "^u") ; u with circumflex accent
138(iso-ascii-display 252 "\"u") ; u with diaeresis or umlaut mark
139(iso-ascii-display 253 "'y") ; y with acute accent
140(iso-ascii-display 254 "th") ; small thorn, Icelandic
141(iso-ascii-display 255 "\"y") ; small y with diaeresis or umlaut mark
3b4a6e27 142
10d5cec6 143(provide 'iso-ascii)
1a06eabd
ER
144
145;;; iso-ascii.el ends here