*** empty log message ***
[emacs.git] / lisp / obsolete / iso-insert.el
blob831ae3ffc1bbc9f731314c4178167897b6cedf64
1 ;;; iso-insert.el --- insert functions for ISO 8859/1 -*- coding: iso-8859-1;-*-
3 ;; Copyright (C) 1987, 1994, 2001 Free Software Foundation, Inc.
5 ;; Author: Howard Gayle
6 ;; Maintainer: FSF
7 ;; Keywords: i18n
9 ;; This file is part of GNU Emacs.
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
13 ;; the Free Software Foundation; either version 2, or (at your option)
14 ;; any later version.
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.
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 the
23 ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
24 ;; Boston, MA 02110-1301, USA.
26 ;;; Commentary:
28 ;; Provides keys for inserting ISO Latin-1 characters. They use the
29 ;; prefix key C-x 8. Type C-x 8 C-h for a list.
31 ;;; Code:
33 (defun insert-no-break-space ()
34 (interactive "*")
35 (insert ?\ )
38 (defun insert-inverted-exclamation-mark ()
39 (interactive "*")
40 (insert ?\¡)
43 (defun insert-cent-sign ()
44 (interactive "*")
45 (insert ?\¢)
48 (defun insert-pound-sign ()
49 (interactive "*")
50 (insert ?\£)
53 (defun insert-general-currency-sign ()
54 (interactive "*")
55 (insert ?\¤)
58 (defun insert-yen-sign ()
59 (interactive "*")
60 (insert ?\¥)
63 (defun insert-broken-vertical-line ()
64 (interactive "*")
65 (insert ?\¦)
68 (defun insert-section-sign ()
69 (interactive "*")
70 (insert ?\§)
73 (defun insert-diaeresis ()
74 (interactive "*")
75 (insert ?\¨)
78 (defun insert-copyright-sign ()
79 (interactive "*")
80 (insert ?\©)
83 (defun insert-ordinal-indicator-feminine ()
84 (interactive "*")
85 (insert ?\ª)
88 (defun insert-angle-quotation-mark-left ()
89 (interactive "*")
90 (insert ?\«)
93 (defun insert-not-sign ()
94 (interactive "*")
95 (insert ?\¬)
98 (defun insert-soft-hyphen ()
99 (interactive "*")
100 (insert ?\­)
103 (defun insert-registered-sign ()
104 (interactive "*")
105 (insert ?\®)
108 (defun insert-macron ()
109 (interactive "*")
110 (insert ?\¯)
113 (defun insert-degree-sign ()
114 (interactive "*")
115 (insert ?\°)
118 (defun insert-plus-or-minus-sign ()
119 (interactive "*")
120 (insert ?\±)
123 (defun insert-superscript-two ()
124 (interactive "*")
125 (insert ?\²)
128 (defun insert-superscript-three ()
129 (interactive "*")
130 (insert ?\³)
133 (defun insert-acute-accent ()
134 (interactive "*")
135 (insert ?\´)
138 (defun insert-micro-sign ()
139 (interactive "*")
140 (insert ?\µ)
143 (defun insert-pilcrow ()
144 (interactive "*")
145 (insert ?\¶)
148 (defun insert-middle-dot ()
149 (interactive "*")
150 (insert ?\·)
153 (defun insert-cedilla ()
154 (interactive "*")
155 (insert ?\¸)
158 (defun insert-superscript-one ()
159 (interactive "*")
160 (insert ?\¹)
163 (defun insert-ordinal-indicator-masculine ()
164 (interactive "*")
165 (insert ?\º)
168 (defun insert-angle-quotation-mark-right ()
169 (interactive "*")
170 (insert ?\»)
173 (defun insert-fraction-one-quarter ()
174 (interactive "*")
175 (insert ?\¼)
178 (defun insert-fraction-one-half ()
179 (interactive "*")
180 (insert ?\½)
183 (defun insert-fraction-three-quarters ()
184 (interactive "*")
185 (insert ?\¾)
188 (defun insert-inverted-question-mark ()
189 (interactive "*")
190 (insert ?\¿)
193 (defun insert-A-grave ()
194 (interactive "*")
195 (insert ?\À)
198 (defun insert-A-acute ()
199 (interactive "*")
200 (insert ?\Á)
203 (defun insert-A-circumflex ()
204 (interactive "*")
205 (insert ?\Â)
208 (defun insert-A-tilde ()
209 (interactive "*")
210 (insert ?\Ã)
213 (defun insert-A-umlaut ()
214 (interactive "*")
215 (insert ?\Ä)
218 (defun insert-A-ring ()
219 (interactive "*")
220 (insert ?\Å)
223 (defun insert-AE ()
224 (interactive "*")
225 (insert ?\Æ)
228 (defun insert-C-cedilla ()
229 (interactive "*")
230 (insert ?\Ç)
233 (defun insert-E-grave ()
234 (interactive "*")
235 (insert ?\È)
238 (defun insert-E-acute ()
239 (interactive "*")
240 (insert ?\É)
243 (defun insert-E-circumflex ()
244 (interactive "*")
245 (insert ?\Ê)
248 (defun insert-E-umlaut ()
249 (interactive "*")
250 (insert ?\Ë)
253 (defun insert-I-grave ()
254 (interactive "*")
255 (insert ?\Ì)
258 (defun insert-I-acute ()
259 (interactive "*")
260 (insert ?\Í)
263 (defun insert-I-circumflex ()
264 (interactive "*")
265 (insert ?\Î)
268 (defun insert-I-umlaut ()
269 (interactive "*")
270 (insert ?\Ï)
273 (defun insert-D-stroke ()
274 (interactive "*")
275 (insert ?\Ð)
278 (defun insert-N-tilde ()
279 (interactive "*")
280 (insert ?\Ñ)
283 (defun insert-O-grave ()
284 (interactive "*")
285 (insert ?\Ò)
288 (defun insert-O-acute ()
289 (interactive "*")
290 (insert ?\Ó)
293 (defun insert-O-circumflex ()
294 (interactive "*")
295 (insert ?\Ô)
298 (defun insert-O-tilde ()
299 (interactive "*")
300 (insert ?\Õ)
303 (defun insert-O-umlaut ()
304 (interactive "*")
305 (insert ?\Ö)
308 (defun insert-multiplication-sign ()
309 (interactive "*")
310 (insert ?\×)
313 (defun insert-O-slash ()
314 (interactive "*")
315 (insert ?\Ø)
318 (defun insert-U-grave ()
319 (interactive "*")
320 (insert ?\Ù)
323 (defun insert-U-acute ()
324 (interactive "*")
325 (insert ?\Ú)
328 (defun insert-U-circumflex ()
329 (interactive "*")
330 (insert ?\Û)
333 (defun insert-U-umlaut ()
334 (interactive "*")
335 (insert ?\Ü)
338 (defun insert-Y-acute ()
339 (interactive "*")
340 (insert ?\Ý)
343 (defun insert-THORN ()
344 (interactive "*")
345 (insert ?\Þ)
348 (defun insert-ss ()
349 (interactive "*")
350 (insert ?\ß)
353 (defun insert-a-grave ()
354 (interactive "*")
355 (insert ?\à)
358 (defun insert-a-acute ()
359 (interactive "*")
360 (insert ?\á)
363 (defun insert-a-circumflex ()
364 (interactive "*")
365 (insert ?\â)
368 (defun insert-a-tilde ()
369 (interactive "*")
370 (insert ?\ã)
373 (defun insert-a-umlaut ()
374 (interactive "*")
375 (insert ?\ä)
378 (defun insert-a-ring ()
379 (interactive "*")
380 (insert ?\å)
383 (defun insert-ae ()
384 (interactive "*")
385 (insert ?\æ)
388 (defun insert-c-cedilla ()
389 (interactive "*")
390 (insert ?\ç)
393 (defun insert-e-grave ()
394 (interactive "*")
395 (insert ?\è)
398 (defun insert-e-acute ()
399 (interactive "*")
400 (insert ?\é)
403 (defun insert-e-circumflex ()
404 (interactive "*")
405 (insert ?\ê)
408 (defun insert-e-umlaut ()
409 (interactive "*")
410 (insert ?\ë)
413 (defun insert-i-grave ()
414 (interactive "*")
415 (insert ?\ì)
418 (defun insert-i-acute ()
419 (interactive "*")
420 (insert ?\í)
423 (defun insert-i-circumflex ()
424 (interactive "*")
425 (insert ?\î)
428 (defun insert-i-umlaut ()
429 (interactive "*")
430 (insert ?\ï)
433 (defun insert-d-stroke ()
434 (interactive "*")
435 (insert ?\ð)
438 (defun insert-n-tilde ()
439 (interactive "*")
440 (insert ?\ñ)
443 (defun insert-o-grave ()
444 (interactive "*")
445 (insert ?\ò)
448 (defun insert-o-acute ()
449 (interactive "*")
450 (insert ?\ó)
453 (defun insert-o-circumflex ()
454 (interactive "*")
455 (insert ?\ô)
458 (defun insert-o-tilde ()
459 (interactive "*")
460 (insert ?\õ)
463 (defun insert-o-umlaut ()
464 (interactive "*")
465 (insert ?\ö)
468 (defun insert-division-sign ()
469 (interactive "*")
470 (insert ?\÷)
473 (defun insert-o-slash ()
474 (interactive "*")
475 (insert ?\ø)
478 (defun insert-u-grave ()
479 (interactive "*")
480 (insert ?\ù)
483 (defun insert-u-acute ()
484 (interactive "*")
485 (insert ?\ú)
488 (defun insert-u-circumflex ()
489 (interactive "*")
490 (insert ?\û)
493 (defun insert-u-umlaut ()
494 (interactive "*")
495 (insert ?\ü)
498 (defun insert-y-acute ()
499 (interactive "*")
500 (insert ?\ý)
503 (defun insert-thorn ()
504 (interactive "*")
505 (insert ?\þ)
508 (defun insert-y-umlaut ()
509 (interactive "*")
510 (insert ?\ÿ)
513 (defvar 8859-1-map nil "Keymap for ISO 8859/1 character insertion.")
514 (if 8859-1-map nil
515 (setq 8859-1-map (make-keymap))
516 (define-key 8859-1-map " " 'insert-no-break-space)
517 (define-key 8859-1-map "!" 'insert-inverted-exclamation-mark)
518 (define-key 8859-1-map "\"" (make-sparse-keymap))
519 (define-key 8859-1-map "\"\"" 'insert-diaeresis)
520 (define-key 8859-1-map "\"A" 'insert-A-umlaut)
521 (define-key 8859-1-map "\"E" 'insert-E-umlaut)
522 (define-key 8859-1-map "\"I" 'insert-I-umlaut)
523 (define-key 8859-1-map "\"O" 'insert-O-umlaut)
524 (define-key 8859-1-map "\"U" 'insert-U-umlaut)
525 (define-key 8859-1-map "\"a" 'insert-a-umlaut)
526 (define-key 8859-1-map "\"e" 'insert-e-umlaut)
527 (define-key 8859-1-map "\"i" 'insert-i-umlaut)
528 (define-key 8859-1-map "\"o" 'insert-o-umlaut)
529 (define-key 8859-1-map "\"u" 'insert-u-umlaut)
530 (define-key 8859-1-map "\"y" 'insert-y-umlaut)
531 (define-key 8859-1-map "'" (make-sparse-keymap))
532 (define-key 8859-1-map "''" 'insert-acute-accent)
533 (define-key 8859-1-map "'A" 'insert-A-acute)
534 (define-key 8859-1-map "'E" 'insert-E-acute)
535 (define-key 8859-1-map "'I" 'insert-I-acute)
536 (define-key 8859-1-map "'O" 'insert-O-acute)
537 (define-key 8859-1-map "'U" 'insert-U-acute)
538 (define-key 8859-1-map "'Y" 'insert-Y-acute)
539 (define-key 8859-1-map "'a" 'insert-a-acute)
540 (define-key 8859-1-map "'e" 'insert-e-acute)
541 (define-key 8859-1-map "'i" 'insert-i-acute)
542 (define-key 8859-1-map "'o" 'insert-o-acute)
543 (define-key 8859-1-map "'u" 'insert-u-acute)
544 (define-key 8859-1-map "'y" 'insert-y-acute)
545 (define-key 8859-1-map "$" 'insert-general-currency-sign)
546 (define-key 8859-1-map "+" 'insert-plus-or-minus-sign)
547 (define-key 8859-1-map "," (make-sparse-keymap))
548 (define-key 8859-1-map ",," 'insert-cedilla)
549 (define-key 8859-1-map ",C" 'insert-C-cedilla)
550 (define-key 8859-1-map ",c" 'insert-c-cedilla)
551 (define-key 8859-1-map "-" 'insert-soft-hyphen)
552 (define-key 8859-1-map "." 'insert-middle-dot)
553 (define-key 8859-1-map "/" (make-sparse-keymap))
554 (define-key 8859-1-map "//" 'insert-division-sign)
555 (define-key 8859-1-map "/O" 'insert-O-slash)
556 (define-key 8859-1-map "/o" 'insert-o-slash)
557 (define-key 8859-1-map "1" (make-sparse-keymap))
558 (define-key 8859-1-map "1/" (make-sparse-keymap))
559 (define-key 8859-1-map "1/2" 'insert-fraction-one-half)
560 (define-key 8859-1-map "1/4" 'insert-fraction-one-quarter)
561 (define-key 8859-1-map "3" (make-sparse-keymap))
562 (define-key 8859-1-map "3/" (make-sparse-keymap))
563 (define-key 8859-1-map "3/4" 'insert-fraction-three-quarters)
564 (define-key 8859-1-map "<" 'insert-angle-quotation-mark-left)
565 (define-key 8859-1-map "=" 'insert-macron)
566 (define-key 8859-1-map ">" 'insert-angle-quotation-mark-right)
567 (define-key 8859-1-map "?" 'insert-inverted-question-mark)
568 (define-key 8859-1-map "A" 'insert-A-ring)
569 (define-key 8859-1-map "E" 'insert-AE)
570 (define-key 8859-1-map "C" 'insert-copyright-sign)
571 (define-key 8859-1-map "D" 'insert-D-stroke)
572 (define-key 8859-1-map "L" 'insert-pound-sign)
573 (define-key 8859-1-map "P" 'insert-pilcrow)
574 (define-key 8859-1-map "R" 'insert-registered-sign)
575 (define-key 8859-1-map "S" 'insert-section-sign)
576 (define-key 8859-1-map "T" 'insert-THORN)
577 (define-key 8859-1-map "Y" 'insert-yen-sign)
578 (define-key 8859-1-map "^" (make-sparse-keymap))
579 (define-key 8859-1-map "^1" 'insert-superscript-one)
580 (define-key 8859-1-map "^2" 'insert-superscript-two)
581 (define-key 8859-1-map "^3" 'insert-superscript-three)
582 (define-key 8859-1-map "^A" 'insert-A-circumflex)
583 (define-key 8859-1-map "^E" 'insert-E-circumflex)
584 (define-key 8859-1-map "^I" 'insert-I-circumflex)
585 (define-key 8859-1-map "^O" 'insert-O-circumflex)
586 (define-key 8859-1-map "^U" 'insert-U-circumflex)
587 (define-key 8859-1-map "^a" 'insert-a-circumflex)
588 (define-key 8859-1-map "^e" 'insert-e-circumflex)
589 (define-key 8859-1-map "^i" 'insert-i-circumflex)
590 (define-key 8859-1-map "^o" 'insert-o-circumflex)
591 (define-key 8859-1-map "^u" 'insert-u-circumflex)
592 (define-key 8859-1-map "_" (make-sparse-keymap))
593 (define-key 8859-1-map "_a" 'insert-ordinal-indicator-feminine)
594 (define-key 8859-1-map "_o" 'insert-ordinal-indicator-masculine)
595 (define-key 8859-1-map "`" (make-sparse-keymap))
596 (define-key 8859-1-map "`A" 'insert-A-grave)
597 (define-key 8859-1-map "`E" 'insert-E-grave)
598 (define-key 8859-1-map "`I" 'insert-I-grave)
599 (define-key 8859-1-map "`O" 'insert-O-grave)
600 (define-key 8859-1-map "`U" 'insert-U-grave)
601 (define-key 8859-1-map "`a" 'insert-a-grave)
602 (define-key 8859-1-map "`e" 'insert-e-grave)
603 (define-key 8859-1-map "`i" 'insert-i-grave)
604 (define-key 8859-1-map "`o" 'insert-o-grave)
605 (define-key 8859-1-map "`u" 'insert-u-grave)
606 (define-key 8859-1-map "a" 'insert-a-ring)
607 (define-key 8859-1-map "e" 'insert-ae)
608 (define-key 8859-1-map "c" 'insert-cent-sign)
609 (define-key 8859-1-map "d" 'insert-d-stroke)
610 (define-key 8859-1-map "o" 'insert-degree-sign)
611 (define-key 8859-1-map "s" 'insert-ss)
612 (define-key 8859-1-map "t" 'insert-thorn)
613 (define-key 8859-1-map "u" 'insert-micro-sign)
614 (define-key 8859-1-map "x" 'insert-multiplication-sign)
615 (define-key 8859-1-map "|" 'insert-broken-vertical-line)
616 (define-key 8859-1-map "~" (make-sparse-keymap))
617 (define-key 8859-1-map "~A" 'insert-A-tilde)
618 (define-key 8859-1-map "~N" 'insert-N-tilde)
619 (define-key 8859-1-map "~O" 'insert-O-tilde)
620 (define-key 8859-1-map "~a" 'insert-a-tilde)
621 (define-key 8859-1-map "~n" 'insert-n-tilde)
622 (define-key 8859-1-map "~o" 'insert-o-tilde)
623 (define-key 8859-1-map "~~" 'insert-not-sign)
624 (if (not (lookup-key global-map "\C-x8"))
625 (define-key global-map "\C-x8" 8859-1-map))
627 (defalias '8859-1-map 8859-1-map)
629 (provide 'iso-insert)
631 ;;; arch-tag: eb5f97bd-a034-4851-92ff-ab1f1bf92814
632 ;;; iso-insert.el ends here