annotate lisp/mule/european-hooks.el @ 70:131b0175ea99 r20-0b30

Import from CVS: tag r20-0b30
author cvs
date Mon, 13 Aug 2007 09:02:59 +0200
parents
children 54cc21c15cbb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
1 ;;; european-hooks.el --- pre-loaded support for European languages.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
2
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
3 ;; Copyright (C) 1992,93,94,95 Free Software Foundation, Inc.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
4 ;; Copyright (C) 1995 Amdahl Corporation.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
5 ;; Copyright (C) 1995 Sun Microsystems.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
6
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
7 ;; This file is part of XEmacs.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
8
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
9 ;; XEmacs is free software; you can redistribute it and/or modify it
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
10 ;; under the terms of the GNU General Public License as published by
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
11 ;; the Free Software Foundation; either version 2, or (at your option)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
12 ;; any later version.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
13
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
14 ;; XEmacs is distributed in the hope that it will be useful, but
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
15 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
16 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
17 ;; General Public License for more details.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
18
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
19 ;; You should have received a copy of the GNU General Public License
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
20 ;; along with XEmacs; see the file COPYING. If not, write to the
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
21 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
22 ;; Boston, MA 02111-1307, USA.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
23
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
24 ;;; Synched up with: Mule 2.3.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
25
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
26 ;; For syntax of Latin-1 characters.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
27 (loop for c from 64 to 127 ; from ',A@(B' to ',A(B'
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
28 do (modify-syntax-entry (make-char 'latin-1 c) "w"))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
29
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
30 (modify-syntax-entry (make-char 'latin-1 32) "w") ; no-break space
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
31 (modify-syntax-entry ?,AW(B "_")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
32 (modify-syntax-entry ?,Aw(B "_")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
33
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
34 ;; For syntax of Latin-2
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
35 (loop for c in '(?,B!(B ?,B#(B ?,B%(B ?,B&(B ?,B)(B ?,B*(B ?,B+(B ?,B,(B ?,B.(B ?,B/(B ?,B1(B ?,B3(B ?,B5(B ?,B6(B ?,B9(B ?,B:(B ?,B;(B ?,B<(B)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
36 do (modify-syntax-entry c "w"))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
37
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
38 (loop for c from 62 to 126
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
39 do (modify-syntax-entry (make-char 'latin-2 c) "w"))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
40
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
41 (modify-syntax-entry (make-char 'latin-2 32) "w") ; no-break space
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
42 (modify-syntax-entry ?,BW(B ".")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
43 (modify-syntax-entry ?,Bw(B ".")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
44
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
45 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
46 ;;; EUROPEANS
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
47 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
48
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
49 (make-coding-system
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
50 'iso-8859-2 'iso2022 "MIME ISO-8859-2"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
51 '(charset-g0 ascii
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
52 charset-g1 latin-2
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
53 charset-g2 t
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
54 charset-g3 t
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
55 mnemonic "MIME/Ltn-2"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
56 ))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
57
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
58 (make-coding-system
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
59 'iso-8859-3 'iso2022 "MIME ISO-8859-3"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
60 '(charset-g0 ascii
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
61 charset-g1 latin-3
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
62 charset-g2 t
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
63 charset-g3 t
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
64 mnemonic "MIME/Ltn-3"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
65 ))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
66
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
67 (make-coding-system
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
68 'iso-8859-4 'iso2022 "MIME ISO-8859-4"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
69 '(charset-g0 ascii
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
70 charset-g1 latin-4
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
71 charset-g2 t
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
72 charset-g3 t
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
73 mnemonic "MIME/Ltn-4"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
74 ))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
75
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
76 (make-coding-system
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
77 'iso-8859-9 'iso2022 "MIME ISO-8859-9"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
78 '(charset-g0 ascii
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
79 charset-g1 latin-5
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
80 charset-g2 t
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
81 charset-g3 t
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
82 mnemonic "MIME/Ltn-5"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
83 ))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
84
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
85 (add-hook 'quail-package-alist '("latin-1" "quail/latin"))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
86 (add-hook 'quail-package-alist '("latin-2" "quail/latin"))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
87 (add-hook 'quail-package-alist '("latin-3" "quail/latin"))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
88 (add-hook 'quail-package-alist '("latin-4" "quail/latin"))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
89 (add-hook 'quail-package-alist '("latin-5" "quail/latin"))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
90
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
91 (define-language-environment 'european
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
92 "European (for Latin-1 through Latin-5)"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
93 (lambda ()
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
94 ;(set-coding-category-system 'iso-8-designate 'iso-8859-1)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
95 ;(set-coding-priority-list '(iso-8-designate iso-8-1))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
96 (set-default-file-coding-system 'binary) ; iso-8859-1
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
97 (setq locale-coding-system 'binary) ; iso-8859-1
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
98 (setq process-input-coding-system 'binary) ; iso-8859-1
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
99 (setq process-output-coding-system 'binary) ; iso-8859-1
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
100 (set-default-file-coding-system 'binary) ; iso-8859-1
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
101 (set-file-coding-system-for-read 'binary) ; iso-8859-1
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
102 ;(setq display-coding-system 'iso-8859-1)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
103 ;(setq keyboard-coding-system 'iso-8859-1)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
104 (setq-default quail-current-package
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
105 (assoc "latin-1" quail-package-alist))))