1 ;;; iso-insert.el --- insert functions for ISO 8859/1
3 ;; Copyright (C) 1987, 1994 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 ;; Written by Howard Gayle. See case-table.el for details.
32 (defun insert-no-break-space ()
37 (defun insert-inverted-exclamation-mark ()
42 (defun insert-cent-sign ()
47 (defun insert-pound-sign ()
52 (defun insert-general-currency-sign ()
57 (defun insert-yen-sign ()
62 (defun insert-broken-vertical-line ()
67 (defun insert-section-sign ()
72 (defun insert-diaeresis ()
77 (defun insert-copyright-sign ()
82 (defun insert-ordinal-indicator-feminine ()
87 (defun insert-angle-quotation-mark-left ()
92 (defun insert-not-sign ()
97 (defun insert-soft-hyphen ()
102 (defun insert-registered-sign ()
104 (insert (string 174))
107 (defun insert-macron ()
109 (insert (string 175))
112 (defun insert-degree-sign ()
114 (insert (string 176))
117 (defun insert-plus-or-minus-sign ()
119 (insert (string 177))
122 (defun insert-superscript-two ()
124 (insert (string 178))
127 (defun insert-superscript-three ()
129 (insert (string 179))
132 (defun insert-acute-accent ()
134 (insert (string 180))
137 (defun insert-micro-sign ()
139 (insert (string 181))
142 (defun insert-pilcrow ()
144 (insert (string 182))
147 (defun insert-middle-dot ()
149 (insert (string 183))
152 (defun insert-cedilla ()
154 (insert (string 184))
157 (defun insert-superscript-one ()
159 (insert (string 185))
162 (defun insert-ordinal-indicator-masculine ()
164 (insert (string 186))
167 (defun insert-angle-quotation-mark-right ()
169 (insert (string 187))
172 (defun insert-fraction-one-quarter ()
174 (insert (string 188))
177 (defun insert-fraction-one-half ()
179 (insert (string 189))
182 (defun insert-fraction-three-quarters ()
184 (insert (string 190))
187 (defun insert-inverted-question-mark ()
189 (insert (string 191))
192 (defun insert-A-grave ()
194 (insert (string 192))
197 (defun insert-A-acute ()
199 (insert (string 193))
202 (defun insert-A-circumflex ()
204 (insert (string 194))
207 (defun insert-A-tilde ()
209 (insert (string 195))
212 (defun insert-A-umlaut ()
214 (insert (string 196))
217 (defun insert-A-ring ()
219 (insert (string 197))
224 (insert (string 198))
227 (defun insert-C-cedilla ()
229 (insert (string 199))
232 (defun insert-E-grave ()
234 (insert (string 200))
237 (defun insert-E-acute ()
239 (insert (string 201))
242 (defun insert-E-circumflex ()
244 (insert (string 202))
247 (defun insert-E-umlaut ()
249 (insert (string 203))
252 (defun insert-I-grave ()
254 (insert (string 204))
257 (defun insert-I-acute ()
259 (insert (string 205))
262 (defun insert-I-circumflex ()
264 (insert (string 206))
267 (defun insert-I-umlaut ()
269 (insert (string 207))
272 (defun insert-D-stroke ()
274 (insert (string 208))
277 (defun insert-N-tilde ()
279 (insert (string 209))
282 (defun insert-O-grave ()
284 (insert (string 210))
287 (defun insert-O-acute ()
289 (insert (string 211))
292 (defun insert-O-circumflex ()
294 (insert (string 212))
297 (defun insert-O-tilde ()
299 (insert (string 213))
302 (defun insert-O-umlaut ()
304 (insert (string 214))
307 (defun insert-multiplication-sign ()
309 (insert (string 215))
312 (defun insert-O-slash ()
314 (insert (string 216))
317 (defun insert-U-grave ()
319 (insert (string 217))
322 (defun insert-U-acute ()
324 (insert (string 218))
327 (defun insert-U-circumflex ()
329 (insert (string 219))
332 (defun insert-U-umlaut ()
334 (insert (string 220))
337 (defun insert-Y-acute ()
339 (insert (string 221))
342 (defun insert-THORN ()
344 (insert (string 222))
349 (insert (string 223))
352 (defun insert-a-grave ()
354 (insert (string 224))
357 (defun insert-a-acute ()
359 (insert (string 225))
362 (defun insert-a-circumflex ()
364 (insert (string 226))
367 (defun insert-a-tilde ()
369 (insert (string 227))
372 (defun insert-a-umlaut ()
374 (insert (string 228))
377 (defun insert-a-ring ()
379 (insert (string 229))
384 (insert (string 230))
387 (defun insert-c-cedilla ()
389 (insert (string 231))
392 (defun insert-e-grave ()
394 (insert (string 232))
397 (defun insert-e-acute ()
399 (insert (string 233))
402 (defun insert-e-circumflex ()
404 (insert (string 234))
407 (defun insert-e-umlaut ()
409 (insert (string 235))
412 (defun insert-i-grave ()
414 (insert (string 236))
417 (defun insert-i-acute ()
419 (insert (string 237))
422 (defun insert-i-circumflex ()
424 (insert (string 238))
427 (defun insert-i-umlaut ()
429 (insert (string 239))
432 (defun insert-d-stroke ()
434 (insert (string 240))
437 (defun insert-n-tilde ()
439 (insert (string 241))
442 (defun insert-o-grave ()
444 (insert (string 242))
447 (defun insert-o-acute ()
449 (insert (string 243))
452 (defun insert-o-circumflex ()
454 (insert (string 244))
457 (defun insert-o-tilde ()
459 (insert (string 245))
462 (defun insert-o-umlaut ()
464 (insert (string 246))
467 (defun insert-division-sign ()
469 (insert (string 247))
472 (defun insert-o-slash ()
474 (insert (string 248))
477 (defun insert-u-grave ()
479 (insert (string 249))
482 (defun insert-u-acute ()
484 (insert (string 250))
487 (defun insert-u-circumflex ()
489 (insert (string 251))
492 (defun insert-u-umlaut ()
494 (insert (string 252))
497 (defun insert-y-acute ()
499 (insert (string 253))
502 (defun insert-thorn ()
504 (insert (string 254))
507 (defun insert-y-umlaut ()
509 (insert (string 255))
512 (defvar 8859-
1-map nil
"Keymap for ISO 8859/1 character insertion.")
514 (setq 8859-
1-map
(make-keymap))
515 (define-key 8859-
1-map
" " 'insert-no-break-space
)
516 (define-key 8859-
1-map
"!" 'insert-inverted-exclamation-mark
)
517 (define-key 8859-
1-map
"\"" (make-sparse-keymap))
518 (define-key 8859-
1-map
"\"\"" 'insert-diaeresis
)
519 (define-key 8859-
1-map
"\"A" 'insert-A-umlaut
)
520 (define-key 8859-
1-map
"\"E" 'insert-E-umlaut
)
521 (define-key 8859-
1-map
"\"I" 'insert-I-umlaut
)
522 (define-key 8859-
1-map
"\"O" 'insert-O-umlaut
)
523 (define-key 8859-
1-map
"\"U" 'insert-U-umlaut
)
524 (define-key 8859-
1-map
"\"a" 'insert-a-umlaut
)
525 (define-key 8859-
1-map
"\"e" 'insert-e-umlaut
)
526 (define-key 8859-
1-map
"\"i" 'insert-i-umlaut
)
527 (define-key 8859-
1-map
"\"o" 'insert-o-umlaut
)
528 (define-key 8859-
1-map
"\"u" 'insert-u-umlaut
)
529 (define-key 8859-
1-map
"\"y" 'insert-y-umlaut
)
530 (define-key 8859-
1-map
"'" (make-sparse-keymap))
531 (define-key 8859-
1-map
"''" 'insert-acute-accent
)
532 (define-key 8859-
1-map
"'A" 'insert-A-acute
)
533 (define-key 8859-
1-map
"'E" 'insert-E-acute
)
534 (define-key 8859-
1-map
"'I" 'insert-I-acute
)
535 (define-key 8859-
1-map
"'O" 'insert-O-acute
)
536 (define-key 8859-
1-map
"'U" 'insert-U-acute
)
537 (define-key 8859-
1-map
"'Y" 'insert-Y-acute
)
538 (define-key 8859-
1-map
"'a" 'insert-a-acute
)
539 (define-key 8859-
1-map
"'e" 'insert-e-acute
)
540 (define-key 8859-
1-map
"'i" 'insert-i-acute
)
541 (define-key 8859-
1-map
"'o" 'insert-o-acute
)
542 (define-key 8859-
1-map
"'u" 'insert-u-acute
)
543 (define-key 8859-
1-map
"'y" 'insert-y-acute
)
544 (define-key 8859-
1-map
"$" 'insert-general-currency-sign
)
545 (define-key 8859-
1-map
"+" 'insert-plus-or-minus-sign
)
546 (define-key 8859-
1-map
"," (make-sparse-keymap))
547 (define-key 8859-
1-map
",," 'insert-cedilla
)
548 (define-key 8859-
1-map
",C" 'insert-C-cedilla
)
549 (define-key 8859-
1-map
",c" 'insert-c-cedilla
)
550 (define-key 8859-
1-map
"-" 'insert-soft-hyphen
)
551 (define-key 8859-
1-map
"." 'insert-middle-dot
)
552 (define-key 8859-
1-map
"/" (make-sparse-keymap))
553 (define-key 8859-
1-map
"//" 'insert-division-sign
)
554 (define-key 8859-
1-map
"/O" 'insert-O-slash
)
555 (define-key 8859-
1-map
"/o" 'insert-o-slash
)
556 (define-key 8859-
1-map
"1" (make-sparse-keymap))
557 (define-key 8859-
1-map
"1/" (make-sparse-keymap))
558 (define-key 8859-
1-map
"1/2" 'insert-fraction-one-half
)
559 (define-key 8859-
1-map
"1/4" 'insert-fraction-one-quarter
)
560 (define-key 8859-
1-map
"3" (make-sparse-keymap))
561 (define-key 8859-
1-map
"3/" (make-sparse-keymap))
562 (define-key 8859-
1-map
"3/4" 'insert-fraction-three-quarters
)
563 (define-key 8859-
1-map
"<" 'insert-angle-quotation-mark-left
)
564 (define-key 8859-
1-map
"=" 'insert-macron
)
565 (define-key 8859-
1-map
">" 'insert-angle-quotation-mark-right
)
566 (define-key 8859-
1-map
"?" 'insert-inverted-question-mark
)
567 (define-key 8859-
1-map
"A" 'insert-A-ring
)
568 (define-key 8859-
1-map
"E" 'insert-AE
)
569 (define-key 8859-
1-map
"C" 'insert-copyright-sign
)
570 (define-key 8859-
1-map
"D" 'insert-D-stroke
)
571 (define-key 8859-
1-map
"L" 'insert-pound-sign
)
572 (define-key 8859-
1-map
"P" 'insert-pilcrow
)
573 (define-key 8859-
1-map
"R" 'insert-registered-sign
)
574 (define-key 8859-
1-map
"S" 'insert-section-sign
)
575 (define-key 8859-
1-map
"T" 'insert-THORN
)
576 (define-key 8859-
1-map
"Y" 'insert-yen-sign
)
577 (define-key 8859-
1-map
"^" (make-sparse-keymap))
578 (define-key 8859-
1-map
"^1" 'insert-superscript-one
)
579 (define-key 8859-
1-map
"^2" 'insert-superscript-two
)
580 (define-key 8859-
1-map
"^3" 'insert-superscript-three
)
581 (define-key 8859-
1-map
"^A" 'insert-A-circumflex
)
582 (define-key 8859-
1-map
"^E" 'insert-E-circumflex
)
583 (define-key 8859-
1-map
"^I" 'insert-I-circumflex
)
584 (define-key 8859-
1-map
"^O" 'insert-O-circumflex
)
585 (define-key 8859-
1-map
"^U" 'insert-U-circumflex
)
586 (define-key 8859-
1-map
"^a" 'insert-a-circumflex
)
587 (define-key 8859-
1-map
"^e" 'insert-e-circumflex
)
588 (define-key 8859-
1-map
"^i" 'insert-i-circumflex
)
589 (define-key 8859-
1-map
"^o" 'insert-o-circumflex
)
590 (define-key 8859-
1-map
"^u" 'insert-u-circumflex
)
591 (define-key 8859-
1-map
"_" (make-sparse-keymap))
592 (define-key 8859-
1-map
"_a" 'insert-ordinal-indicator-feminine
)
593 (define-key 8859-
1-map
"_o" 'insert-ordinal-indicator-masculine
)
594 (define-key 8859-
1-map
"`" (make-sparse-keymap))
595 (define-key 8859-
1-map
"`A" 'insert-A-grave
)
596 (define-key 8859-
1-map
"`E" 'insert-E-grave
)
597 (define-key 8859-
1-map
"`I" 'insert-I-grave
)
598 (define-key 8859-
1-map
"`O" 'insert-O-grave
)
599 (define-key 8859-
1-map
"`U" 'insert-U-grave
)
600 (define-key 8859-
1-map
"`a" 'insert-a-grave
)
601 (define-key 8859-
1-map
"`e" 'insert-e-grave
)
602 (define-key 8859-
1-map
"`i" 'insert-i-grave
)
603 (define-key 8859-
1-map
"`o" 'insert-o-grave
)
604 (define-key 8859-
1-map
"`u" 'insert-u-grave
)
605 (define-key 8859-
1-map
"a" 'insert-a-ring
)
606 (define-key 8859-
1-map
"e" 'insert-ae
)
607 (define-key 8859-
1-map
"c" 'insert-cent-sign
)
608 (define-key 8859-
1-map
"d" 'insert-d-stroke
)
609 (define-key 8859-
1-map
"o" 'insert-degree-sign
)
610 (define-key 8859-
1-map
"s" 'insert-ss
)
611 (define-key 8859-
1-map
"t" 'insert-thorn
)
612 (define-key 8859-
1-map
"u" 'insert-micro-sign
)
613 (define-key 8859-
1-map
"x" 'insert-multiplication-sign
)
614 (define-key 8859-
1-map
"|" 'insert-broken-vertical-line
)
615 (define-key 8859-
1-map
"~" (make-sparse-keymap))
616 (define-key 8859-
1-map
"~A" 'insert-A-tilde
)
617 (define-key 8859-
1-map
"~N" 'insert-N-tilde
)
618 (define-key 8859-
1-map
"~O" 'insert-O-tilde
)
619 (define-key 8859-
1-map
"~a" 'insert-a-tilde
)
620 (define-key 8859-
1-map
"~n" 'insert-n-tilde
)
621 (define-key 8859-
1-map
"~o" 'insert-o-tilde
)
622 (define-key 8859-
1-map
"~~" 'insert-not-sign
)
623 (if (not (lookup-key global-map
"\C-x8"))
624 (define-key global-map
"\C-x8" 8859-
1-map
))
626 (defalias '8859-
1-map
8859-
1-map
)
628 (provide 'iso-insert
)
630 ;;; iso-insert.el ends here