3540
|
1 ;;; iso8859-1.el --- Set syntax table for Latin 1
|
428
|
2
|
3540
|
3 ;; Copyright (C) 1992, 1997, 2006 Free Software Foundation, Inc.
|
428
|
4
|
|
5 ;; Author: Jamie Zawinski <jwz@jwz.org>
|
|
6 ;; Created: 19-aug-92
|
|
7 ;; Maintainer: XEmacs Development Team
|
|
8 ;; Keywords: internal, dumped
|
|
9
|
|
10 ;; This file is part of XEmacs.
|
|
11
|
|
12 ;; XEmacs is free software; you can redistribute it and/or modify it
|
|
13 ;; under the terms of the GNU General Public License as published by
|
|
14 ;; the Free Software Foundation; either version 2, or (at your option)
|
|
15 ;; any later version.
|
|
16
|
|
17 ;; XEmacs is distributed in the hope that it will be useful, but
|
|
18 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
20 ;; General Public License for more details.
|
|
21
|
|
22 ;; You should have received a copy of the GNU General Public License
|
|
23 ;; along with XEmacs; see the file COPYING. If not, write to the Free
|
|
24 ;; Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
|
25 ;; 02111-1307, USA.
|
|
26
|
3540
|
27 ;;; Synched up with: Not in FSF.
|
428
|
28
|
|
29 ;;; Commentary:
|
|
30
|
|
31 ;; created by jwz, 19-aug-92.
|
3540
|
32 ;; Sets the case table for the ISO-8859/1 character set.
|
|
33 ;; Used to set the syntax table.
|
428
|
34
|
|
35 ;;; Code:
|
|
36
|
|
37 (defconst iso8859/1-case-table nil
|
|
38 "The case table for ISO-8859/1 characters.")
|
|
39
|
|
40 ;;; This macro expands into
|
|
41 ;;; (setq iso8859/1-case-table (purecopy '("..." nil nil nil)))
|
|
42 ;;; doing the computation of the case table at compile-time.
|
|
43
|
|
44 ((macro
|
|
45 . (lambda (&rest pairs)
|
|
46 (let ((downcase (make-string 256 0))
|
|
47 (i 0))
|
|
48 (while (< i 256)
|
|
49 (aset downcase i (if (and (>= i ?A) (<= i ?Z)) (+ i 32) i))
|
|
50 (setq i (1+ i)))
|
|
51 (while pairs
|
|
52 (aset downcase (car (car pairs)) (car (cdr (car pairs))))
|
|
53 (setq pairs (cdr pairs)))
|
|
54 (cons 'setq
|
|
55 (cons 'iso8859/1-case-table
|
444
|
56 (list
|
|
57 (list 'quote
|
|
58 (list downcase nil nil nil))))))))
|
428
|
59
|
|
60 (?\300 ?\340) ; Agrave
|
|
61 (?\301 ?\341) ; Aacute
|
|
62 (?\302 ?\342) ; Acircumflex
|
|
63 (?\303 ?\343) ; Atilde
|
|
64 (?\304 ?\344) ; Adiaeresis
|
|
65 (?\305 ?\345) ; Aring
|
|
66 (?\306 ?\346) ; AE
|
|
67 (?\307 ?\347) ; Ccedilla
|
|
68 (?\310 ?\350) ; Egrave
|
|
69 (?\311 ?\351) ; Eacute
|
|
70 (?\312 ?\352) ; Ecircumflex
|
|
71 (?\313 ?\353) ; Ediaeresis
|
|
72 (?\314 ?\354) ; Igrave
|
|
73 (?\315 ?\355) ; Iacute
|
|
74 (?\316 ?\356) ; Icircumflex
|
|
75 (?\317 ?\357) ; Idiaeresis
|
|
76 (?\320 ?\360) ; ETH
|
|
77 (?\321 ?\361) ; Ntilde
|
|
78 (?\322 ?\362) ; Ograve
|
|
79 (?\323 ?\363) ; Oacute
|
|
80 (?\324 ?\364) ; Ocircumflex
|
|
81 (?\325 ?\365) ; Otilde
|
|
82 (?\326 ?\366) ; Odiaeresis
|
|
83 (?\330 ?\370) ; Ooblique
|
|
84 (?\331 ?\371) ; Ugrave
|
|
85 (?\332 ?\372) ; Uacute
|
|
86 (?\333 ?\373) ; Ucircumflex
|
|
87 (?\334 ?\374) ; Udiaeresis
|
|
88 (?\335 ?\375) ; Yacute
|
|
89 (?\336 ?\376) ; THORN
|
|
90 )
|
|
91
|
|
92 (set-standard-case-table (mapcar 'copy-sequence iso8859/1-case-table))
|
|
93
|
|
94 (setq-default ctl-arrow 'iso-8859/1)
|
|
95
|
|
96 (provide 'iso8859-1)
|
|
97
|
|
98 ;;; iso8859-1.el ends here
|