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
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)
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., 59 Temple Place - Suite 330,
24 ;; Boston, MA 02111-1307, USA.
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.
33 (defun insert-no-break-space ()
38 (defun insert-inverted-exclamation-mark ()
43 (defun insert-cent-sign ()
48 (defun insert-pound-sign ()
53 (defun insert-general-currency-sign ()
58 (defun insert-yen-sign ()
63 (defun insert-broken-vertical-line ()
68 (defun insert-section-sign ()
73 (defun insert-diaeresis ()
78 (defun insert-copyright-sign ()
83 (defun insert-ordinal-indicator-feminine ()
88 (defun insert-angle-quotation-mark-left ()
93 (defun insert-not-sign ()
98 (defun insert-soft-hyphen ()
103 (defun insert-registered-sign ()
108 (defun insert-macron ()
113 (defun insert-degree-sign ()
118 (defun insert-plus-or-minus-sign ()
123 (defun insert-superscript-two ()
128 (defun insert-superscript-three ()
133 (defun insert-acute-accent ()
138 (defun insert-micro-sign ()
143 (defun insert-pilcrow ()
148 (defun insert-middle-dot ()
153 (defun insert-cedilla ()
158 (defun insert-superscript-one ()
163 (defun insert-ordinal-indicator-masculine ()
168 (defun insert-angle-quotation-mark-right ()
173 (defun insert-fraction-one-quarter ()
178 (defun insert-fraction-one-half ()
183 (defun insert-fraction-three-quarters ()
188 (defun insert-inverted-question-mark ()
193 (defun insert-A-grave ()
198 (defun insert-A-acute ()
203 (defun insert-A-circumflex ()
208 (defun insert-A-tilde ()
213 (defun insert-A-umlaut ()
218 (defun insert-A-ring ()
228 (defun insert-C-cedilla ()
233 (defun insert-E-grave ()
238 (defun insert-E-acute ()
243 (defun insert-E-circumflex ()
248 (defun insert-E-umlaut ()
253 (defun insert-I-grave ()
258 (defun insert-I-acute ()
263 (defun insert-I-circumflex ()
268 (defun insert-I-umlaut ()
273 (defun insert-D-stroke ()
278 (defun insert-N-tilde ()
283 (defun insert-O-grave ()
288 (defun insert-O-acute ()
293 (defun insert-O-circumflex ()
298 (defun insert-O-tilde ()
303 (defun insert-O-umlaut ()
308 (defun insert-multiplication-sign ()
313 (defun insert-O-slash ()
318 (defun insert-U-grave ()
323 (defun insert-U-acute ()
328 (defun insert-U-circumflex ()
333 (defun insert-U-umlaut ()
338 (defun insert-Y-acute ()
343 (defun insert-THORN ()
353 (defun insert-a-grave ()
358 (defun insert-a-acute ()
363 (defun insert-a-circumflex ()
368 (defun insert-a-tilde ()
373 (defun insert-a-umlaut ()
378 (defun insert-a-ring ()
388 (defun insert-c-cedilla ()
393 (defun insert-e-grave ()
398 (defun insert-e-acute ()
403 (defun insert-e-circumflex ()
408 (defun insert-e-umlaut ()
413 (defun insert-i-grave ()
418 (defun insert-i-acute ()
423 (defun insert-i-circumflex ()
428 (defun insert-i-umlaut ()
433 (defun insert-d-stroke ()
438 (defun insert-n-tilde ()
443 (defun insert-o-grave ()
448 (defun insert-o-acute ()
453 (defun insert-o-circumflex ()
458 (defun insert-o-tilde ()
463 (defun insert-o-umlaut ()
468 (defun insert-division-sign ()
473 (defun insert-o-slash ()
478 (defun insert-u-grave ()
483 (defun insert-u-acute ()
488 (defun insert-u-circumflex ()
493 (defun insert-u-umlaut ()
498 (defun insert-y-acute ()
503 (defun insert-thorn ()
508 (defun insert-y-umlaut ()
513 (defvar 8859-
1-map nil
"Keymap for ISO 8859/1 character insertion.")
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