Mercurial > hg > xemacs-beta
comparison lisp/language/european.el @ 207:e45d5e7c476e r20-4b2
Import from CVS: tag r20-4b2
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:03:52 +0200 |
parents | acd284d43ca1 |
children | 41ff10fd062f |
comparison
equal
deleted
inserted
replaced
206:d3e9274cbc4e | 207:e45d5e7c476e |
---|---|
65 ;; Setup for LANGAUGE which uses one-byte 8-bit CHARSET, one-byte | 65 ;; Setup for LANGAUGE which uses one-byte 8-bit CHARSET, one-byte |
66 ;; 8-bit CODING-SYSTEM, and INPUT-METHOD. | 66 ;; 8-bit CODING-SYSTEM, and INPUT-METHOD. |
67 (defun setup-8-bit-environment (language charset coding-system input-method) | 67 (defun setup-8-bit-environment (language charset coding-system input-method) |
68 (setup-english-environment) | 68 (setup-english-environment) |
69 (set-default-coding-systems coding-system) | 69 (set-default-coding-systems coding-system) |
70 (setq coding-category-iso-8-1 coding-system | 70 ;; (setq coding-category-iso-8-1 coding-system |
71 coding-category-iso-8-2 coding-system) | 71 ;; coding-category-iso-8-2 coding-system) |
72 | 72 (set-coding-category-system 'iso-8-1 coding-system) |
73 (if charset | 73 (set-coding-category-system 'iso-8-2 coding-system) |
74 (let ((nonascii-offset (- (make-char charset) 128))) | 74 |
75 ;; Set up for insertion of characters in this character set | 75 ;; (if charset |
76 ;; when codes 0200 - 0377 are typed in. | 76 ;; (let ((nonascii-offset (- (make-char charset) 128))) |
77 (setq nonascii-insert-offset nonascii-offset))) | 77 ;; ;; Set up for insertion of characters in this character set |
78 ;; ;; when codes 0200 - 0377 are typed in. | |
79 ;; (setq nonascii-insert-offset nonascii-offset))) | |
78 | 80 |
79 (if input-method | 81 (if input-method |
80 (setq default-input-method input-method)) | 82 (setq default-input-method input-method)) |
81 | 83 |
82 ;; If this is a Latin-N character set, set up syntax for it in | 84 ;; If this is a Latin-N character set, set up syntax for it in |
83 ;; single-byte mode. We can't use require because the file | 85 ;; single-byte mode. We can't use require because the file |
84 ;; must be eval'd each time in case we change from one Latin-N to another. | 86 ;; must be eval'd each time in case we change from one Latin-N to another. |
85 (if (string-match "^Latin-\\([1-9]\\)$" language) | 87 ;; (if (string-match "^Latin-\\([1-9]\\)$" language) |
86 (load (downcase language) nil t))) | 88 ;; (load (downcase language) nil t)) |
87 | 89 ) |
88 ;; (define-language-environment 'european | |
89 ;; "European (for Latin-1 through Latin-5)" | |
90 ;; (lambda () | |
91 ;; (set-coding-category-system 'iso-8-designate 'iso-8859-1) | |
92 ;; (set-coding-priority-list '(iso-8-designate iso-8-1)) | |
93 ;; ;;(setq locale-coding-system 'no-conversion) ; iso-8859-1 | |
94 ;; (set-default-buffer-file-coding-system 'no-conversion) ; iso-8859-1 | |
95 ;; ;;(set-buffer-file-coding-system-for-read 'no-conversion) ; iso-8859-1 | |
96 ;; ;;(setq display-coding-system 'iso-8859-1) | |
97 ;; ;;(setq keyboard-coding-system 'iso-8859-1) | |
98 ;; ;; (setq-default quail-current-package | |
99 ;; ;; (assoc "latin-1" quail-package-alist)) | |
100 ;; )) | |
101 | 90 |
102 ;; Latin-1 (ISO-8859-1) | 91 ;; Latin-1 (ISO-8859-1) |
103 | 92 |
104 ;; (make-coding-system | 93 ;; (make-coding-system |
105 ;; 'iso-latin-1 2 ?1 | 94 ;; 'iso-latin-1 2 ?1 |
120 (set-language-info-alist | 109 (set-language-info-alist |
121 "Latin-1" '((setup-function . (setup-latin1-environment | 110 "Latin-1" '((setup-function . (setup-latin1-environment |
122 . setup-european-environment-map)) | 111 . setup-european-environment-map)) |
123 (charset . (ascii latin-iso8859-1)) | 112 (charset . (ascii latin-iso8859-1)) |
124 (coding-system . (iso-8859-1)) | 113 (coding-system . (iso-8859-1)) |
114 (sample-text | |
115 . "Hello, Hej, Tere, Hei, Bonjour, Gr,A|_(B Gott, Ciao, ,A!(BHola!") | |
116 (documentation . ("\ | |
117 These languages are supported with the Latin-1 (ISO-8859-1) character set: | |
118 Danish, Dutch, English, Faeroese, Finnish, French, German, Icelandic, | |
119 Irish, Italian, Norwegian, Portuguese, Spanish, and Swedish. | |
120 " . describe-european-environment-map)) | |
121 )) | |
122 | |
123 (set-language-info-alist | |
124 "German" '((setup-function . (setup-latin1-environment | |
125 . setup-european-environment-map)) | |
126 (charset . (ascii latin-iso8859-1)) | |
127 (coding-system . (iso-8859-1)) | |
128 (tutorial . "TUTORIAL.de") | |
129 (sample-text | |
130 . "Hello, Hej, Tere, Hei, Bonjour, Gr,A|_(B Gott, Ciao, ,A!(BHola!") | |
131 (documentation . ("\ | |
132 These languages are supported with the Latin-1 (ISO-8859-1) character set: | |
133 Danish, Dutch, English, Faeroese, Finnish, French, German, Icelandic, | |
134 Irish, Italian, Norwegian, Portuguese, Spanish, and Swedish. | |
135 " . describe-european-environment-map)) | |
136 )) | |
137 | |
138 (set-language-info-alist | |
139 "French" '((setup-function . (setup-latin1-environment | |
140 . setup-european-environment-map)) | |
141 (charset . (ascii latin-iso8859-1)) | |
142 (coding-system . (iso-8859-1)) | |
143 (tutorial . "TUTORIAL.fr") | |
144 (sample-text | |
145 . "Hello, Hej, Tere, Hei, Bonjour, Gr,A|_(B Gott, Ciao, ,A!(BHola!") | |
146 (documentation . ("\ | |
147 These languages are supported with the Latin-1 (ISO-8859-1) character set: | |
148 Danish, Dutch, English, Faeroese, Finnish, French, German, Icelandic, | |
149 Irish, Italian, Norwegian, Portuguese, Spanish, and Swedish. | |
150 " . describe-european-environment-map)) | |
151 )) | |
152 | |
153 (set-language-info-alist | |
154 "Norwegian" '((setup-function . (setup-latin1-environment | |
155 . setup-european-environment-map)) | |
156 (charset . (ascii latin-iso8859-1)) | |
157 (coding-system . (iso-8859-1)) | |
158 (tutorial . "TUTORIAL.no") | |
125 (sample-text | 159 (sample-text |
126 . "Hello, Hej, Tere, Hei, Bonjour, Gr,A|_(B Gott, Ciao, ,A!(BHola!") | 160 . "Hello, Hej, Tere, Hei, Bonjour, Gr,A|_(B Gott, Ciao, ,A!(BHola!") |
127 (documentation . ("\ | 161 (documentation . ("\ |
128 These languages are supported with the Latin-1 (ISO-8859-1) character set: | 162 These languages are supported with the Latin-1 (ISO-8859-1) character set: |
129 Danish, Dutch, English, Faeroese, Finnish, French, German, Icelandic, | 163 Danish, Dutch, English, Faeroese, Finnish, French, German, Icelandic, |
163 (charset . (ascii latin-iso8859-2)) | 197 (charset . (ascii latin-iso8859-2)) |
164 (coding-system . (iso-8859-2)) | 198 (coding-system . (iso-8859-2)) |
165 (documentation . ("\ | 199 (documentation . ("\ |
166 These languages are supported with the Latin-2 (ISO-8859-2) character set: | 200 These languages are supported with the Latin-2 (ISO-8859-2) character set: |
167 Albanian, Czech, English, German, Hungarian, Polish, Romanian, | 201 Albanian, Czech, English, German, Hungarian, Polish, Romanian, |
168 Serbo-Croatian or Croatian, Slovak, Slovene, and Swedish. | 202 Serbian or Croatian, Slovak, Slovene, and Swedish. |
169 " . describe-european-environment-map)) | 203 " . describe-european-environment-map)) |
170 )) | 204 )) |
205 | |
206 (set-language-info-alist | |
207 "Croatian" '((setup-function . (setup-latin2-environment | |
208 . setup-european-environment-map)) | |
209 (charset . (ascii latin-iso8859-2)) | |
210 (tutorial . "TUTORIAL.hr") | |
211 (coding-system . (iso-8859-2)) | |
212 (documentation . ("\ | |
213 These languages are supported with the Latin-2 (ISO-8859-2) character set: | |
214 Albanian, Czech, English, German, Hungarian, Polish, Romanian, | |
215 Serbian or Croatian, Slovak, Slovene, and Swedish. | |
216 " . describe-european-environment-map)) | |
217 )) | |
171 | 218 |
172 ;; Latin-3 (ISO-8859-3) | 219 ;; Latin-3 (ISO-8859-3) |
173 | 220 |
174 ;; (make-coding-system | 221 ;; (make-coding-system |
175 ;; 'iso-latin-3 2 ?3 | 222 ;; 'iso-latin-3 2 ?3 |