1 ;;; iso-insert.el --- insert functions for ISO 8859/1 -*- coding: iso-8859-1;-*-
3 ;; Copyright (C) 1987, 1994, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
4 ;; 2008, 2009 Free Software Foundation, Inc.
6 ;; Author: Howard Gayle
10 ;; This file is part of GNU Emacs.
12 ;; GNU Emacs is free software: you can redistribute it and/or modify
13 ;; it under the terms of the GNU General Public License as published by
14 ;; the Free Software Foundation, either version 3 of the License, or
15 ;; (at your option) any later version.
17 ;; GNU Emacs is distributed in the hope that it will be useful,
18 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 ;; GNU General Public License for more details.
22 ;; You should have received a copy of the GNU General Public License
23 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
27 ;; This file has been obsolete since Emacs 22.1.
29 ;; Provides keys for inserting ISO Latin-1 characters. They use the
30 ;; prefix key C-x 8. Type C-x 8 C-h for a list.
34 (defun insert-no-break-space ()
39 (defun insert-inverted-exclamation-mark ()
44 (defun insert-cent-sign ()
49 (defun insert-pound-sign ()
54 (defun insert-general-currency-sign ()
59 (defun insert-yen-sign ()
64 (defun insert-broken-vertical-line ()
69 (defun insert-section-sign ()
74 (defun insert-diaeresis ()
79 (defun insert-copyright-sign ()
84 (defun insert-ordinal-indicator-feminine ()
89 (defun insert-angle-quotation-mark-left ()
94 (defun insert-not-sign ()
99 (defun insert-soft-hyphen ()
104 (defun insert-registered-sign ()
109 (defun insert-macron ()
114 (defun insert-degree-sign ()
119 (defun insert-plus-or-minus-sign ()
124 (defun insert-superscript-two ()
129 (defun insert-superscript-three ()
134 (defun insert-acute-accent ()
139 (defun insert-micro-sign ()
144 (defun insert-pilcrow ()
149 (defun insert-middle-dot ()
154 (defun insert-cedilla ()
159 (defun insert-superscript-one ()
164 (defun insert-ordinal-indicator-masculine ()
169 (defun insert-angle-quotation-mark-right ()
174 (defun insert-fraction-one-quarter ()
179 (defun insert-fraction-one-half ()
184 (defun insert-fraction-three-quarters ()
189 (defun insert-inverted-question-mark ()
194 (defun insert-A-grave ()
199 (defun insert-A-acute ()
204 (defun insert-A-circumflex ()
209 (defun insert-A-tilde ()
214 (defun insert-A-umlaut ()
219 (defun insert-A-ring ()
229 (defun insert-C-cedilla ()
234 (defun insert-E-grave ()
239 (defun insert-E-acute ()
244 (defun insert-E-circumflex ()
249 (defun insert-E-umlaut ()
254 (defun insert-I-grave ()
259 (defun insert-I-acute ()
264 (defun insert-I-circumflex ()
269 (defun insert-I-umlaut ()
274 (defun insert-D-stroke ()
279 (defun insert-N-tilde ()
284 (defun insert-O-grave ()
289 (defun insert-O-acute ()
294 (defun insert-O-circumflex ()
299 (defun insert-O-tilde ()
304 (defun insert-O-umlaut ()
309 (defun insert-multiplication-sign ()
314 (defun insert-O-slash ()
319 (defun insert-U-grave ()
324 (defun insert-U-acute ()
329 (defun insert-U-circumflex ()
334 (defun insert-U-umlaut ()
339 (defun insert-Y-acute ()
344 (defun insert-THORN ()
354 (defun insert-a-grave ()
359 (defun insert-a-acute ()
364 (defun insert-a-circumflex ()
369 (defun insert-a-tilde ()
374 (defun insert-a-umlaut ()
379 (defun insert-a-ring ()
389 (defun insert-c-cedilla ()
394 (defun insert-e-grave ()
399 (defun insert-e-acute ()
404 (defun insert-e-circumflex ()
409 (defun insert-e-umlaut ()
414 (defun insert-i-grave ()
419 (defun insert-i-acute ()
424 (defun insert-i-circumflex ()
429 (defun insert-i-umlaut ()
434 (defun insert-d-stroke ()
439 (defun insert-n-tilde ()
444 (defun insert-o-grave ()
449 (defun insert-o-acute ()
454 (defun insert-o-circumflex ()
459 (defun insert-o-tilde ()
464 (defun insert-o-umlaut ()
469 (defun insert-division-sign ()
474 (defun insert-o-slash ()
479 (defun insert-u-grave ()
484 (defun insert-u-acute ()
489 (defun insert-u-circumflex ()
494 (defun insert-u-umlaut ()
499 (defun insert-y-acute ()
504 (defun insert-thorn ()
509 (defun insert-y-umlaut ()
514 (defvar 8859-
1-map nil
"Keymap for ISO 8859/1 character insertion.")
516 (setq 8859-
1-map
(make-keymap))
517 (define-key 8859-
1-map
" " 'insert-no-break-space
)
518 (define-key 8859-
1-map
"!" 'insert-inverted-exclamation-mark
)
519 (define-key 8859-
1-map
"\"" (make-sparse-keymap))
520 (define-key 8859-
1-map
"\"\"" 'insert-diaeresis
)
521 (define-key 8859-
1-map
"\"A" 'insert-A-umlaut
)
522 (define-key 8859-
1-map
"\"E" 'insert-E-umlaut
)
523 (define-key 8859-
1-map
"\"I" 'insert-I-umlaut
)
524 (define-key 8859-
1-map
"\"O" 'insert-O-umlaut
)
525 (define-key 8859-
1-map
"\"U" 'insert-U-umlaut
)
526 (define-key 8859-
1-map
"\"a" 'insert-a-umlaut
)
527 (define-key 8859-
1-map
"\"e" 'insert-e-umlaut
)
528 (define-key 8859-
1-map
"\"i" 'insert-i-umlaut
)
529 (define-key 8859-
1-map
"\"o" 'insert-o-umlaut
)
530 (define-key 8859-
1-map
"\"u" 'insert-u-umlaut
)
531 (define-key 8859-
1-map
"\"y" 'insert-y-umlaut
)
532 (define-key 8859-
1-map
"'" (make-sparse-keymap))
533 (define-key 8859-
1-map
"''" 'insert-acute-accent
)
534 (define-key 8859-
1-map
"'A" 'insert-A-acute
)
535 (define-key 8859-
1-map
"'E" 'insert-E-acute
)
536 (define-key 8859-
1-map
"'I" 'insert-I-acute
)
537 (define-key 8859-
1-map
"'O" 'insert-O-acute
)
538 (define-key 8859-
1-map
"'U" 'insert-U-acute
)
539 (define-key 8859-
1-map
"'Y" 'insert-Y-acute
)
540 (define-key 8859-
1-map
"'a" 'insert-a-acute
)
541 (define-key 8859-
1-map
"'e" 'insert-e-acute
)
542 (define-key 8859-
1-map
"'i" 'insert-i-acute
)
543 (define-key 8859-
1-map
"'o" 'insert-o-acute
)
544 (define-key 8859-
1-map
"'u" 'insert-u-acute
)
545 (define-key 8859-
1-map
"'y" 'insert-y-acute
)
546 (define-key 8859-
1-map
"$" 'insert-general-currency-sign
)
547 (define-key 8859-
1-map
"+" 'insert-plus-or-minus-sign
)
548 (define-key 8859-
1-map
"," (make-sparse-keymap))
549 (define-key 8859-
1-map
",," 'insert-cedilla
)
550 (define-key 8859-
1-map
",C" 'insert-C-cedilla
)
551 (define-key 8859-
1-map
",c" 'insert-c-cedilla
)
552 (define-key 8859-
1-map
"-" 'insert-soft-hyphen
)
553 (define-key 8859-
1-map
"." 'insert-middle-dot
)
554 (define-key 8859-
1-map
"/" (make-sparse-keymap))
555 (define-key 8859-
1-map
"//" 'insert-division-sign
)
556 (define-key 8859-
1-map
"/O" 'insert-O-slash
)
557 (define-key 8859-
1-map
"/o" 'insert-o-slash
)
558 (define-key 8859-
1-map
"1" (make-sparse-keymap))
559 (define-key 8859-
1-map
"1/" (make-sparse-keymap))
560 (define-key 8859-
1-map
"1/2" 'insert-fraction-one-half
)
561 (define-key 8859-
1-map
"1/4" 'insert-fraction-one-quarter
)
562 (define-key 8859-
1-map
"3" (make-sparse-keymap))
563 (define-key 8859-
1-map
"3/" (make-sparse-keymap))
564 (define-key 8859-
1-map
"3/4" 'insert-fraction-three-quarters
)
565 (define-key 8859-
1-map
"<" 'insert-angle-quotation-mark-left
)
566 (define-key 8859-
1-map
"=" 'insert-macron
)
567 (define-key 8859-
1-map
">" 'insert-angle-quotation-mark-right
)
568 (define-key 8859-
1-map
"?" 'insert-inverted-question-mark
)
569 (define-key 8859-
1-map
"A" 'insert-A-ring
)
570 (define-key 8859-
1-map
"E" 'insert-AE
)
571 (define-key 8859-
1-map
"C" 'insert-copyright-sign
)
572 (define-key 8859-
1-map
"D" 'insert-D-stroke
)
573 (define-key 8859-
1-map
"L" 'insert-pound-sign
)
574 (define-key 8859-
1-map
"P" 'insert-pilcrow
)
575 (define-key 8859-
1-map
"R" 'insert-registered-sign
)
576 (define-key 8859-
1-map
"S" 'insert-section-sign
)
577 (define-key 8859-
1-map
"T" 'insert-THORN
)
578 (define-key 8859-
1-map
"Y" 'insert-yen-sign
)
579 (define-key 8859-
1-map
"^" (make-sparse-keymap))
580 (define-key 8859-
1-map
"^1" 'insert-superscript-one
)
581 (define-key 8859-
1-map
"^2" 'insert-superscript-two
)
582 (define-key 8859-
1-map
"^3" 'insert-superscript-three
)
583 (define-key 8859-
1-map
"^A" 'insert-A-circumflex
)
584 (define-key 8859-
1-map
"^E" 'insert-E-circumflex
)
585 (define-key 8859-
1-map
"^I" 'insert-I-circumflex
)
586 (define-key 8859-
1-map
"^O" 'insert-O-circumflex
)
587 (define-key 8859-
1-map
"^U" 'insert-U-circumflex
)
588 (define-key 8859-
1-map
"^a" 'insert-a-circumflex
)
589 (define-key 8859-
1-map
"^e" 'insert-e-circumflex
)
590 (define-key 8859-
1-map
"^i" 'insert-i-circumflex
)
591 (define-key 8859-
1-map
"^o" 'insert-o-circumflex
)
592 (define-key 8859-
1-map
"^u" 'insert-u-circumflex
)
593 (define-key 8859-
1-map
"_" (make-sparse-keymap))
594 (define-key 8859-
1-map
"_a" 'insert-ordinal-indicator-feminine
)
595 (define-key 8859-
1-map
"_o" 'insert-ordinal-indicator-masculine
)
596 (define-key 8859-
1-map
"`" (make-sparse-keymap))
597 (define-key 8859-
1-map
"`A" 'insert-A-grave
)
598 (define-key 8859-
1-map
"`E" 'insert-E-grave
)
599 (define-key 8859-
1-map
"`I" 'insert-I-grave
)
600 (define-key 8859-
1-map
"`O" 'insert-O-grave
)
601 (define-key 8859-
1-map
"`U" 'insert-U-grave
)
602 (define-key 8859-
1-map
"`a" 'insert-a-grave
)
603 (define-key 8859-
1-map
"`e" 'insert-e-grave
)
604 (define-key 8859-
1-map
"`i" 'insert-i-grave
)
605 (define-key 8859-
1-map
"`o" 'insert-o-grave
)
606 (define-key 8859-
1-map
"`u" 'insert-u-grave
)
607 (define-key 8859-
1-map
"a" 'insert-a-ring
)
608 (define-key 8859-
1-map
"e" 'insert-ae
)
609 (define-key 8859-
1-map
"c" 'insert-cent-sign
)
610 (define-key 8859-
1-map
"d" 'insert-d-stroke
)
611 (define-key 8859-
1-map
"o" 'insert-degree-sign
)
612 (define-key 8859-
1-map
"s" 'insert-ss
)
613 (define-key 8859-
1-map
"t" 'insert-thorn
)
614 (define-key 8859-
1-map
"u" 'insert-micro-sign
)
615 (define-key 8859-
1-map
"x" 'insert-multiplication-sign
)
616 (define-key 8859-
1-map
"|" 'insert-broken-vertical-line
)
617 (define-key 8859-
1-map
"~" (make-sparse-keymap))
618 (define-key 8859-
1-map
"~A" 'insert-A-tilde
)
619 (define-key 8859-
1-map
"~N" 'insert-N-tilde
)
620 (define-key 8859-
1-map
"~O" 'insert-O-tilde
)
621 (define-key 8859-
1-map
"~a" 'insert-a-tilde
)
622 (define-key 8859-
1-map
"~n" 'insert-n-tilde
)
623 (define-key 8859-
1-map
"~o" 'insert-o-tilde
)
624 (define-key 8859-
1-map
"~~" 'insert-not-sign
)
625 (if (not (lookup-key global-map
"\C-x8"))
626 (define-key global-map
"\C-x8" 8859-
1-map
))
628 (defalias '8859-
1-map
8859-
1-map
)
630 (provide 'iso-insert
)
632 ;; arch-tag: eb5f97bd-a034-4851-92ff-ab1f1bf92814
633 ;;; iso-insert.el ends here