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