Mercurial > emacs
annotate lisp/international/iso-insert.el @ 845:213978acbc1e
entered into RCS
author | Eric S. Raymond <esr@snark.thyrsus.com> |
---|---|
date | Wed, 22 Jul 1992 04:22:30 +0000 |
parents | 4f28bd14272c |
children | 10e417efb12a |
rev | line source |
---|---|
660
08eb386dd0f3
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
583
diff
changeset
|
1 ;;; iso-insert.el --- insert functions for ISO 8859/1. |
08eb386dd0f3
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
583
diff
changeset
|
2 |
845 | 3 ;; Copyright (C) 1987 Free Software Foundation, Inc. |
4 | |
807
4f28bd14272c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
660
diff
changeset
|
5 ;; Author: Howard Gayle |
4f28bd14272c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
660
diff
changeset
|
6 ;; Maintainer: FSF |
845 | 7 ;; Keywords: i14n |
583 | 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 | |
807
4f28bd14272c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
660
diff
changeset
|
13 ;; the Free Software Foundation; either version 2, or (at your option) |
583 | 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 | |
807
4f28bd14272c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
660
diff
changeset
|
25 ;;; Code: |
583 | 26 |
27 ;; Written by Howard Gayle. See case-table.el for details. | |
28 | |
29 (defun insert-no-break-space () | |
30 (interactive "*") | |
31 (insert 160) | |
32 ) | |
33 | |
34 (defun insert-inverted-exclamation-mark () | |
35 (interactive "*") | |
36 (insert 161) | |
37 ) | |
38 | |
39 (defun insert-cent-sign () | |
40 (interactive "*") | |
41 (insert 162) | |
42 ) | |
43 | |
44 (defun insert-pound-sign () | |
45 (interactive "*") | |
46 (insert 163) | |
47 ) | |
48 | |
49 (defun insert-general-currency-sign () | |
50 (interactive "*") | |
51 (insert 164) | |
52 ) | |
53 | |
54 (defun insert-yen-sign () | |
55 (interactive "*") | |
56 (insert 165) | |
57 ) | |
58 | |
59 (defun insert-broken-vertical-line () | |
60 (interactive "*") | |
61 (insert 166) | |
62 ) | |
63 | |
64 (defun insert-section-sign () | |
65 (interactive "*") | |
66 (insert 167) | |
67 ) | |
68 | |
69 (defun insert-diaeresis () | |
70 (interactive "*") | |
71 (insert 168) | |
72 ) | |
73 | |
74 (defun insert-copyright-sign () | |
75 (interactive "*") | |
76 (insert 169) | |
77 ) | |
78 | |
79 (defun insert-ordinal-indicator-feminine () | |
80 (interactive "*") | |
81 (insert 170) | |
82 ) | |
83 | |
84 (defun insert-angle-quotation-mark-left () | |
85 (interactive "*") | |
86 (insert 171) | |
87 ) | |
88 | |
89 (defun insert-not-sign () | |
90 (interactive "*") | |
91 (insert 172) | |
92 ) | |
93 | |
94 (defun insert-soft-hyphen () | |
95 (interactive "*") | |
96 (insert 173) | |
97 ) | |
98 | |
99 (defun insert-registered-sign () | |
100 (interactive "*") | |
101 (insert 174) | |
102 ) | |
103 | |
104 (defun insert-macron () | |
105 (interactive "*") | |
106 (insert 175) | |
107 ) | |
108 | |
109 (defun insert-degree-sign () | |
110 (interactive "*") | |
111 (insert 176) | |
112 ) | |
113 | |
114 (defun insert-plus-or-minus-sign () | |
115 (interactive "*") | |
116 (insert 177) | |
117 ) | |
118 | |
119 (defun insert-superscript-two () | |
120 (interactive "*") | |
121 (insert 178) | |
122 ) | |
123 | |
124 (defun insert-superscript-three () | |
125 (interactive "*") | |
126 (insert 179) | |
127 ) | |
128 | |
129 (defun insert-acute-accent () | |
130 (interactive "*") | |
131 (insert 180) | |
132 ) | |
133 | |
134 (defun insert-micro-sign () | |
135 (interactive "*") | |
136 (insert 181) | |
137 ) | |
138 | |
139 (defun insert-pilcrow () | |
140 (interactive "*") | |
141 (insert 182) | |
142 ) | |
143 | |
144 (defun insert-middle-dot () | |
145 (interactive "*") | |
146 (insert 183) | |
147 ) | |
148 | |
149 (defun insert-cedilla () | |
150 (interactive "*") | |
151 (insert 184) | |
152 ) | |
153 | |
154 (defun insert-superscript-one () | |
155 (interactive "*") | |
156 (insert 185) | |
157 ) | |
158 | |
159 (defun insert-ordinal-indicator-masculine () | |
160 (interactive "*") | |
161 (insert 186) | |
162 ) | |
163 | |
164 (defun insert-angle-quotation-mark-right () | |
165 (interactive "*") | |
166 (insert 187) | |
167 ) | |
168 | |
169 (defun insert-fraction-one-quarter () | |
170 (interactive "*") | |
171 (insert 188) | |
172 ) | |
173 | |
174 (defun insert-fraction-one-half () | |
175 (interactive "*") | |
176 (insert 189) | |
177 ) | |
178 | |
179 (defun insert-fraction-three-quarters () | |
180 (interactive "*") | |
181 (insert 190) | |
182 ) | |
183 | |
184 (defun insert-inverted-question-mark () | |
185 (interactive "*") | |
186 (insert 191) | |
187 ) | |
188 | |
189 (defun insert-A-grave () | |
190 (interactive "*") | |
191 (insert 192) | |
192 ) | |
193 | |
194 (defun insert-A-acute () | |
195 (interactive "*") | |
196 (insert 193) | |
197 ) | |
198 | |
199 (defun insert-A-circumflex () | |
200 (interactive "*") | |
201 (insert 194) | |
202 ) | |
203 | |
204 (defun insert-A-tilde () | |
205 (interactive "*") | |
206 (insert 195) | |
207 ) | |
208 | |
209 (defun insert-A-umlaut () | |
210 (interactive "*") | |
211 (insert 196) | |
212 ) | |
213 | |
214 (defun insert-A-ring () | |
215 (interactive "*") | |
216 (insert 197) | |
217 ) | |
218 | |
219 (defun insert-AE () | |
220 (interactive "*") | |
221 (insert 198) | |
222 ) | |
223 | |
224 (defun insert-C-cedilla () | |
225 (interactive "*") | |
226 (insert 199) | |
227 ) | |
228 | |
229 (defun insert-E-grave () | |
230 (interactive "*") | |
231 (insert 200) | |
232 ) | |
233 | |
234 (defun insert-E-acute () | |
235 (interactive "*") | |
236 (insert 201) | |
237 ) | |
238 | |
239 (defun insert-E-circumflex () | |
240 (interactive "*") | |
241 (insert 202) | |
242 ) | |
243 | |
244 (defun insert-E-umlaut () | |
245 (interactive "*") | |
246 (insert 203) | |
247 ) | |
248 | |
249 (defun insert-I-grave () | |
250 (interactive "*") | |
251 (insert 204) | |
252 ) | |
253 | |
254 (defun insert-I-acute () | |
255 (interactive "*") | |
256 (insert 205) | |
257 ) | |
258 | |
259 (defun insert-I-circumflex () | |
260 (interactive "*") | |
261 (insert 206) | |
262 ) | |
263 | |
264 (defun insert-I-umlaut () | |
265 (interactive "*") | |
266 (insert 207) | |
267 ) | |
268 | |
269 (defun insert-D-stroke () | |
270 (interactive "*") | |
271 (insert 208) | |
272 ) | |
273 | |
274 (defun insert-N-tilde () | |
275 (interactive "*") | |
276 (insert 209) | |
277 ) | |
278 | |
279 (defun insert-O-grave () | |
280 (interactive "*") | |
281 (insert 210) | |
282 ) | |
283 | |
284 (defun insert-O-acute () | |
285 (interactive "*") | |
286 (insert 211) | |
287 ) | |
288 | |
289 (defun insert-O-circumflex () | |
290 (interactive "*") | |
291 (insert 212) | |
292 ) | |
293 | |
294 (defun insert-O-tilde () | |
295 (interactive "*") | |
296 (insert 213) | |
297 ) | |
298 | |
299 (defun insert-O-umlaut () | |
300 (interactive "*") | |
301 (insert 214) | |
302 ) | |
303 | |
304 (defun insert-multiplication-sign () | |
305 (interactive "*") | |
306 (insert 215) | |
307 ) | |
308 | |
309 (defun insert-O-slash () | |
310 (interactive "*") | |
311 (insert 216) | |
312 ) | |
313 | |
314 (defun insert-U-grave () | |
315 (interactive "*") | |
316 (insert 217) | |
317 ) | |
318 | |
319 (defun insert-U-acute () | |
320 (interactive "*") | |
321 (insert 218) | |
322 ) | |
323 | |
324 (defun insert-U-circumflex () | |
325 (interactive "*") | |
326 (insert 219) | |
327 ) | |
328 | |
329 (defun insert-U-umlaut () | |
330 (interactive "*") | |
331 (insert 220) | |
332 ) | |
333 | |
334 (defun insert-Y-acute () | |
335 (interactive "*") | |
336 (insert 221) | |
337 ) | |
338 | |
339 (defun insert-THORN () | |
340 (interactive "*") | |
341 (insert 222) | |
342 ) | |
343 | |
344 (defun insert-ss () | |
345 (interactive "*") | |
346 (insert 223) | |
347 ) | |
348 | |
349 (defun insert-a-grave () | |
350 (interactive "*") | |
351 (insert 224) | |
352 ) | |
353 | |
354 (defun insert-a-acute () | |
355 (interactive "*") | |
356 (insert 225) | |
357 ) | |
358 | |
359 (defun insert-a-circumflex () | |
360 (interactive "*") | |
361 (insert 226) | |
362 ) | |
363 | |
364 (defun insert-a-tilde () | |
365 (interactive "*") | |
366 (insert 227) | |
367 ) | |
368 | |
369 (defun insert-a-umlaut () | |
370 (interactive "*") | |
371 (insert 228) | |
372 ) | |
373 | |
374 (defun insert-a-ring () | |
375 (interactive "*") | |
376 (insert 229) | |
377 ) | |
378 | |
379 (defun insert-ae () | |
380 (interactive "*") | |
381 (insert 230) | |
382 ) | |
383 | |
384 (defun insert-c-cedilla () | |
385 (interactive "*") | |
386 (insert 231) | |
387 ) | |
388 | |
389 (defun insert-e-grave () | |
390 (interactive "*") | |
391 (insert 232) | |
392 ) | |
393 | |
394 (defun insert-e-acute () | |
395 (interactive "*") | |
396 (insert 233) | |
397 ) | |
398 | |
399 (defun insert-e-circumflex () | |
400 (interactive "*") | |
401 (insert 234) | |
402 ) | |
403 | |
404 (defun insert-e-umlaut () | |
405 (interactive "*") | |
406 (insert 235) | |
407 ) | |
408 | |
409 (defun insert-i-grave () | |
410 (interactive "*") | |
411 (insert 236) | |
412 ) | |
413 | |
414 (defun insert-i-acute () | |
415 (interactive "*") | |
416 (insert 237) | |
417 ) | |
418 | |
419 (defun insert-i-circumflex () | |
420 (interactive "*") | |
421 (insert 238) | |
422 ) | |
423 | |
424 (defun insert-i-umlaut () | |
425 (interactive "*") | |
426 (insert 239) | |
427 ) | |
428 | |
429 (defun insert-d-stroke () | |
430 (interactive "*") | |
431 (insert 240) | |
432 ) | |
433 | |
434 (defun insert-n-tilde () | |
435 (interactive "*") | |
436 (insert 241) | |
437 ) | |
438 | |
439 (defun insert-o-grave () | |
440 (interactive "*") | |
441 (insert 242) | |
442 ) | |
443 | |
444 (defun insert-o-acute () | |
445 (interactive "*") | |
446 (insert 243) | |
447 ) | |
448 | |
449 (defun insert-o-circumflex () | |
450 (interactive "*") | |
451 (insert 244) | |
452 ) | |
453 | |
454 (defun insert-o-tilde () | |
455 (interactive "*") | |
456 (insert 245) | |
457 ) | |
458 | |
459 (defun insert-o-umlaut () | |
460 (interactive "*") | |
461 (insert 246) | |
462 ) | |
463 | |
464 (defun insert-division-sign () | |
465 (interactive "*") | |
466 (insert 247) | |
467 ) | |
468 | |
469 (defun insert-o-slash () | |
470 (interactive "*") | |
471 (insert 248) | |
472 ) | |
473 | |
474 (defun insert-u-grave () | |
475 (interactive "*") | |
476 (insert 249) | |
477 ) | |
478 | |
479 (defun insert-u-acute () | |
480 (interactive "*") | |
481 (insert 250) | |
482 ) | |
483 | |
484 (defun insert-u-circumflex () | |
485 (interactive "*") | |
486 (insert 251) | |
487 ) | |
488 | |
489 (defun insert-u-umlaut () | |
490 (interactive "*") | |
491 (insert 252) | |
492 ) | |
493 | |
494 (defun insert-y-acute () | |
495 (interactive "*") | |
496 (insert 253) | |
497 ) | |
498 | |
499 (defun insert-thorn () | |
500 (interactive "*") | |
501 (insert 254) | |
502 ) | |
503 | |
504 (defun insert-y-umlaut () | |
505 (interactive "*") | |
506 (insert 255) | |
507 ) | |
508 | |
509 (defvar 8859-1-map nil "Keymap for ISO 8859/1 character insertion.") | |
510 (if 8859-1-map nil | |
511 (setq 8859-1-map (make-keymap)) | |
512 (define-key 8859-1-map " " 'insert-no-break-space) | |
513 (define-key 8859-1-map "!" 'insert-inverted-exclamation-mark) | |
514 (define-key 8859-1-map "\"" (make-sparse-keymap)) | |
515 (define-key 8859-1-map "\"\"" 'insert-diaeresis) | |
516 (define-key 8859-1-map "\"A" 'insert-A-umlaut) | |
517 (define-key 8859-1-map "\"E" 'insert-E-umlaut) | |
518 (define-key 8859-1-map "\"I" 'insert-I-umlaut) | |
519 (define-key 8859-1-map "\"O" 'insert-O-umlaut) | |
520 (define-key 8859-1-map "\"U" 'insert-U-umlaut) | |
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 "\"y" 'insert-y-umlaut) | |
527 (define-key 8859-1-map "'" (make-sparse-keymap)) | |
528 (define-key 8859-1-map "''" 'insert-acute-accent) | |
529 (define-key 8859-1-map "'A" 'insert-A-acute) | |
530 (define-key 8859-1-map "'E" 'insert-E-acute) | |
531 (define-key 8859-1-map "'I" 'insert-I-acute) | |
532 (define-key 8859-1-map "'O" 'insert-O-acute) | |
533 (define-key 8859-1-map "'U" 'insert-U-acute) | |
534 (define-key 8859-1-map "'Y" 'insert-Y-acute) | |
535 (define-key 8859-1-map "'a" 'insert-a-acute) | |
536 (define-key 8859-1-map "'e" 'insert-e-acute) | |
537 (define-key 8859-1-map "'i" 'insert-i-acute) | |
538 (define-key 8859-1-map "'o" 'insert-o-acute) | |
539 (define-key 8859-1-map "'u" 'insert-u-acute) | |
540 (define-key 8859-1-map "'y" 'insert-y-acute) | |
541 (define-key 8859-1-map "$" 'insert-general-currency-sign) | |
542 (define-key 8859-1-map "+" 'insert-plus-or-minus-sign) | |
543 (define-key 8859-1-map "," (make-sparse-keymap)) | |
544 (define-key 8859-1-map ",," 'insert-cedilla) | |
545 (define-key 8859-1-map ",C" 'insert-C-cedilla) | |
546 (define-key 8859-1-map ",c" 'insert-c-cedilla) | |
547 (define-key 8859-1-map "-" 'insert-soft-hyphen) | |
548 (define-key 8859-1-map "." 'insert-middle-dot) | |
549 (define-key 8859-1-map "/" (make-sparse-keymap)) | |
550 (define-key 8859-1-map "//" 'insert-division-sign) | |
551 (define-key 8859-1-map "/O" 'insert-O-slash) | |
552 (define-key 8859-1-map "/o" 'insert-o-slash) | |
553 (define-key 8859-1-map "1" (make-sparse-keymap)) | |
554 (define-key 8859-1-map "1/" (make-sparse-keymap)) | |
555 (define-key 8859-1-map "1/2" 'insert-fraction-one-half) | |
556 (define-key 8859-1-map "1/4" 'insert-fraction-one-quarter) | |
557 (define-key 8859-1-map "3" (make-sparse-keymap)) | |
558 (define-key 8859-1-map "3/" (make-sparse-keymap)) | |
559 (define-key 8859-1-map "3/4" 'insert-fraction-three-quarters) | |
560 (define-key 8859-1-map "<" 'insert-angle-quotation-mark-left) | |
561 (define-key 8859-1-map "=" 'insert-macron) | |
562 (define-key 8859-1-map ">" 'insert-angle-quotation-mark-right) | |
563 (define-key 8859-1-map "?" 'insert-inverted-question-mark) | |
564 (define-key 8859-1-map "A" (make-sparse-keymap)) | |
565 (define-key 8859-1-map "AA" 'insert-A-ring) | |
566 (define-key 8859-1-map "AE" 'insert-AE) | |
567 (define-key 8859-1-map "C" 'insert-copyright-sign) | |
568 (define-key 8859-1-map "D" 'insert-D-stroke) | |
569 (define-key 8859-1-map "L" 'insert-pound-sign) | |
570 (define-key 8859-1-map "P" 'insert-pilcrow) | |
571 (define-key 8859-1-map "R" 'insert-registered-sign) | |
572 (define-key 8859-1-map "S" 'insert-section-sign) | |
573 (define-key 8859-1-map "T" 'insert-THORN) | |
574 (define-key 8859-1-map "Y" 'insert-yen-sign) | |
575 (define-key 8859-1-map "^" (make-sparse-keymap)) | |
576 (define-key 8859-1-map "^1" 'insert-superscript-one) | |
577 (define-key 8859-1-map "^2" 'insert-superscript-two) | |
578 (define-key 8859-1-map "^3" 'insert-superscript-three) | |
579 (define-key 8859-1-map "^A" 'insert-A-circumflex) | |
580 (define-key 8859-1-map "^E" 'insert-E-circumflex) | |
581 (define-key 8859-1-map "^I" 'insert-I-circumflex) | |
582 (define-key 8859-1-map "^O" 'insert-O-circumflex) | |
583 (define-key 8859-1-map "^U" 'insert-U-circumflex) | |
584 (define-key 8859-1-map "^a" 'insert-a-circumflex) | |
585 (define-key 8859-1-map "^e" 'insert-e-circumflex) | |
586 (define-key 8859-1-map "^i" 'insert-i-circumflex) | |
587 (define-key 8859-1-map "^o" 'insert-o-circumflex) | |
588 (define-key 8859-1-map "^u" 'insert-u-circumflex) | |
589 (define-key 8859-1-map "_" (make-sparse-keymap)) | |
590 (define-key 8859-1-map "_a" 'insert-ordinal-indicator-feminine) | |
591 (define-key 8859-1-map "_o" 'insert-ordinal-indicator-masculine) | |
592 (define-key 8859-1-map "`" (make-sparse-keymap)) | |
593 (define-key 8859-1-map "`A" 'insert-A-grave) | |
594 (define-key 8859-1-map "`E" 'insert-E-grave) | |
595 (define-key 8859-1-map "`I" 'insert-I-grave) | |
596 (define-key 8859-1-map "`O" 'insert-O-grave) | |
597 (define-key 8859-1-map "`U" 'insert-U-grave) | |
598 (define-key 8859-1-map "`a" 'insert-a-grave) | |
599 (define-key 8859-1-map "`e" 'insert-e-grave) | |
600 (define-key 8859-1-map "`i" 'insert-i-grave) | |
601 (define-key 8859-1-map "`o" 'insert-o-grave) | |
602 (define-key 8859-1-map "`u" 'insert-u-grave) | |
603 (define-key 8859-1-map "a" (make-sparse-keymap)) | |
604 (define-key 8859-1-map "aa" 'insert-a-ring) | |
605 (define-key 8859-1-map "ae" 'insert-ae) | |
606 (define-key 8859-1-map "c" 'insert-cent-sign) | |
607 (define-key 8859-1-map "d" 'insert-d-stroke) | |
608 (define-key 8859-1-map "o" 'insert-degree-sign) | |
609 (define-key 8859-1-map "s" 'insert-ss) | |
610 (define-key 8859-1-map "t" 'insert-thorn) | |
611 (define-key 8859-1-map "u" 'insert-micro-sign) | |
612 (define-key 8859-1-map "x" 'insert-multiplication-sign) | |
613 (define-key 8859-1-map "|" 'insert-broken-vertical-line) | |
614 (define-key 8859-1-map "~" (make-sparse-keymap)) | |
615 (define-key 8859-1-map "~A" 'insert-A-tilde) | |
616 (define-key 8859-1-map "~N" 'insert-N-tilde) | |
617 (define-key 8859-1-map "~O" 'insert-O-tilde) | |
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 "~~" 'insert-not-sign) | |
622 (if (not (lookup-key global-map "\C-x8")) | |
623 (define-key global-map "\C-x8" 8859-1-map)) | |
624 ) | |
625 | |
626 (provide 'iso8859-1-insert) | |
660
08eb386dd0f3
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
583
diff
changeset
|
627 |
08eb386dd0f3
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
583
diff
changeset
|
628 ;;; iso-insert.el ends here |