]>
Commit | Line | Data |
---|---|---|
3946ec63 AM |
1 | ;;; iso02-syn.el --- set up case-conversion and syntax tables for ISO 8859-2 |
2 | ;;; (ISO latin2, i.e. East Block character set) | |
3 | ;; Copyright (C) 1995 Free Software Foundation, Inc. | |
4 | ||
5 | ;; Author: Michael Gschwind (mike@vlsivie.tuwien.ac.at) | |
6 | ;; Keywords: i18n | |
7 | ||
8 | ;; This file is part of GNU Emacs. | |
9 | ||
10 | ;; GNU Emacs is free software; you can redistribute it and/or modify | |
11 | ;; it under the terms of the GNU General Public License as published by | |
12 | ;; the Free Software Foundation; either version 2, or (at your option) | |
13 | ;; any later version. | |
14 | ||
15 | ;; GNU Emacs is distributed in the hope that it will be useful, | |
16 | ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 | ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18 | ;; GNU General Public License for more details. | |
19 | ||
20 | ;; You should have received a copy of the GNU General Public License | |
21 | ;; along with GNU Emacs; see the file COPYING. If not, write to the | |
22 | ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
23 | ;; Boston, MA 02111-1307, USA. | |
24 | ||
25 | ;;; Commentary: | |
26 | ||
27 | ;; Written by Michael Gschwind. See case-table.el for details. | |
28 | ||
29 | ;;; Code: | |
30 | ||
31 | (require 'case-table) | |
32 | ||
33 | (define-key global-map 'Aogonek | |
34 | (function (lambda() (interactive "*") (insert 161)))) | |
35 | (define-key global-map 'aogonek | |
36 | (function (lambda() (interactive "*") (insert 177)))) | |
37 | (define-key global-map 'Cacute | |
38 | (function (lambda() (interactive "*") (insert 198)))) | |
39 | (define-key global-map 'cacute | |
40 | (function (lambda() (interactive "*") (insert 230)))) | |
41 | (define-key global-map 'Eogonek | |
42 | (function (lambda() (interactive "*") (insert 202)))) | |
43 | (define-key global-map 'eogonek | |
44 | (function (lambda() (interactive "*") (insert 234)))) | |
45 | (define-key global-map 'Lstroke | |
46 | (function (lambda() (interactive "*") (insert 163)))) | |
47 | (define-key global-map 'lstroke | |
48 | (function (lambda() (interactive "*") (insert 179)))) | |
49 | (define-key global-map 'Nacute | |
50 | (function (lambda() (interactive "*") (insert 209)))) | |
51 | (define-key global-map 'nacute | |
52 | (function (lambda() (interactive "*") (insert 241)))) | |
53 | (define-key global-map 'Sacute | |
54 | (function (lambda() (interactive "*") (insert 166)))) | |
55 | (define-key global-map 'sacute | |
56 | (function (lambda() (interactive "*") (insert 182)))) | |
57 | (define-key global-map 'Zacute | |
58 | (function (lambda() (interactive "*") (insert 172)))) | |
59 | (define-key global-map 'zacute | |
60 | (function (lambda() (interactive "*") (insert 188)))) | |
61 | (define-key global-map 'Zabovedot | |
62 | (function (lambda() (interactive "*") (insert 175)))) | |
63 | ||
64 | (define-key global-map 'zabovedot | |
65 | (function (lambda() (interactive "*") (insert 191)))) | |
66 | ||
67 | (define-key global-map 'unknown-keysym-0x1F3 | |
68 | (function (lambda() (interactive "*") (insert 243)))) | |
69 | ||
70 | (define-key global-map 'unknown-keysym-0x1D3 | |
71 | (function (lambda() (interactive "*") (insert 211)))) | |
72 | ||
73 | (define-key global-map 'ISO_Left_Tab [(shift tab)]) | |
74 | ||
75 | ||
76 | (let ((downcase (standard-case-table))) | |
77 | (set-case-syntax 160 " " downcase) ; NBSP (no-break space) | |
78 | (set-case-syntax-pair 161 177 downcase) ; A with hook | |
79 | (set-case-syntax 162 "w" downcase) ; u accent | |
80 | (set-case-syntax-pair 163 179 downcase) ; L with slash | |
81 | (set-case-syntax 164 "w" downcase) ; general currency sign | |
82 | (set-case-syntax-pair 165 181 downcase) ; L with v | |
83 | (set-case-syntax-pair 166 182 downcase) ; S with acute accent | |
84 | (set-case-syntax 167 "w" downcase) ; section sign | |
85 | (set-case-syntax 168 "w" downcase) ; diaeresis | |
86 | (set-case-syntax-pair 169 185 downcase) ; S with v | |
87 | (set-case-syntax-pair 170 186 downcase) ; S with cedilla | |
88 | (set-case-syntax-pair 171 187 downcase) ; T with v | |
89 | (set-case-syntax-pair 172 188 downcase) ; Z with acute accent | |
90 | (set-case-syntax 173 "_" downcase) ; soft hyphen | |
91 | (set-case-syntax-pair 174 190 downcase) ; Z with v | |
92 | (set-case-syntax-pair 175 191 downcase) ; Z with dot | |
93 | (set-case-syntax 176 "_" downcase) ; degree sign | |
94 | (set-case-syntax 178 "w" downcase) ; hook accent | |
95 | (set-case-syntax 180 "w" downcase) ; acute accent | |
96 | (set-case-syntax 183 "_" downcase) ; v accent | |
97 | (set-case-syntax 184 "w" downcase) ; cedilla | |
98 | (set-case-syntax 189 "w" downcase) ; Hungarian '' accent | |
99 | (set-case-syntax-pair 192 224 downcase) ; R with acute accent | |
100 | (set-case-syntax-pair 193 225 downcase) ; A with acute accent | |
101 | (set-case-syntax-pair 194 226 downcase) ; A with circumflex accent | |
102 | (set-case-syntax-pair 195 227 downcase) ; A with u accent | |
103 | (set-case-syntax-pair 196 228 downcase) ; A with diaeresis or umlaut mark | |
104 | (set-case-syntax-pair 197 229 downcase) ; L with acute accent | |
105 | (set-case-syntax-pair 198 230 downcase) ; C with acute accent | |
106 | (set-case-syntax-pair 199 231 downcase) ; C with cedilla | |
107 | (set-case-syntax-pair 200 232 downcase) ; C with v accent | |
108 | (set-case-syntax-pair 201 233 downcase) ; E with acute accent | |
109 | (set-case-syntax-pair 202 234 downcase) ; E with hook | |
110 | (set-case-syntax-pair 203 235 downcase) ; E with diaeresis | |
111 | (set-case-syntax-pair 204 236 downcase) ; E with v accent | |
112 | (set-case-syntax-pair 205 237 downcase) ; I with acute accent | |
113 | (set-case-syntax-pair 206 238 downcase) ; I with circumflex accent | |
114 | (set-case-syntax-pair 207 239 downcase) ; D with v accent | |
115 | (set-case-syntax-pair 208 240 downcase) ; D with stroke | |
116 | (set-case-syntax-pair 209 241 downcase) ; N with acute accent | |
117 | (set-case-syntax-pair 210 242 downcase) ; N with v accent | |
118 | (set-case-syntax-pair 211 243 downcase) ; O with acute accent | |
119 | (set-case-syntax-pair 212 244 downcase) ; O with circumflex accent | |
120 | (set-case-syntax-pair 213 245 downcase) ; O with Hungarian accent | |
121 | (set-case-syntax-pair 214 246 downcase) ; O with diaeresis or umlaut mark | |
122 | (set-case-syntax 215 "_" downcase) ; multiplication sign | |
123 | (set-case-syntax-pair 216 248 downcase) ; R with v accent | |
124 | (set-case-syntax-pair 217 249 downcase) ; U with ring | |
125 | (set-case-syntax-pair 218 250 downcase) ; U with acute accent | |
126 | (set-case-syntax-pair 219 251 downcase) ; U with Hungaraian accent | |
127 | (set-case-syntax-pair 220 252 downcase) ; U with diaeresis or umlaut mark | |
128 | (set-case-syntax-pair 221 253 downcase) ; Y with acute accent | |
129 | (set-case-syntax-pair 222 254 downcase) ; T with hook | |
130 | (set-case-syntax 223 "w" downcase) ; small sharp s, German | |
131 | (set-case-syntax 247 "_" downcase) ; division sign | |
132 | (set-case-syntax 255 "w" downcase) ; dot accent | |
133 | ) | |
134 | ||
135 | (provide 'iso02-syn) | |
136 | ||
137 | ;;; iso-syntax.el ends here |