annotate lisp/mule/korean-hooks.el @ 88:821dec489c24 r20-0

Import from CVS: tag r20-0
author cvs
date Mon, 13 Aug 2007 09:09:59 +0200
parents 131b0175ea99
children 0d2f883870bc
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 ;;; korean-hooks.el --- pre-loaded support for Korean.
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
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
27 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
28 ;;; KOREAN
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
29 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
30
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
31 ;; Syntax of Korean characters.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
32 (loop for row from 33 to 34 do (modify-syntax-entry `[korean-ksc5601 ,row] "."))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
33 (loop for row from 35 to 37 do (modify-syntax-entry `[korean-ksc5601 ,row] "w"))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
34 (loop for row from 38 to 41 do (modify-syntax-entry `[korean-ksc5601 ,row] "."))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
35 (loop for row from 42 to 126 do (modify-syntax-entry `[korean-ksc5601 ,row] "w"))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
36
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
37 ;; EGG specific setup
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
38 ;(if (featurep 'egg)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
39 ; (progn
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
40 ; (load "its-hangul")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
41 ; (setq its:*standard-modes*
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
42 ; (cons (its:get-mode-map "hangul") its:*standard-modes*))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
43 ; (setq-default its:*current-map* (its:get-mode-map "hangul"))))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
44
88
821dec489c24 Import from CVS: tag r20-0
cvs
parents: 70
diff changeset
45 ;(add-hook 'quail-package-alist '("hangul" "quail/hangul"))
821dec489c24 Import from CVS: tag r20-0
cvs
parents: 70
diff changeset
46 ;(add-hook 'quail-package-alist '("hangul3" "quail/hangul3"))
821dec489c24 Import from CVS: tag r20-0
cvs
parents: 70
diff changeset
47 ;(add-hook 'quail-package-alist '("hanja-jis" "quail/hanja-jis"))
821dec489c24 Import from CVS: tag r20-0
cvs
parents: 70
diff changeset
48 ;(add-hook 'quail-package-alist '("hanja-ksc" "quail/hanja-ksc"))
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
49
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
50 (make-coding-system
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
51 'euc-korea 'iso2022
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
52 "Coding-system of Korean EUC (Extended Unix Code)."
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
53 '(charset-g0 ascii
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
54 charset-g1 korean-ksc5601
88
821dec489c24 Import from CVS: tag r20-0
cvs
parents: 70
diff changeset
55 mnemonic "EUC/Ko"
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
56 eol-type lf
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
57 ))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
58
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
59 (copy-coding-system 'euc-korea 'euc-kr)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
60
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
61 (make-coding-system
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
62 'iso-2022-kr 'iso2022
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
63 "Coding-System used for communication with mail in Korea."
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
64 '(charset-g0 ascii
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
65 charset-g1 korean-ksc5601
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
66 force-g1-on-output t
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
67 seven t
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
68 lock-shift t
88
821dec489c24 Import from CVS: tag r20-0
cvs
parents: 70
diff changeset
69 mnemonic "Mail/Ko"
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
70 eol-type lf
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
71 ))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
72
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
73 (copy-coding-system 'iso-2022-kr 'korean-mail)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
74
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
75 (make-coding-system
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
76 'iso-2022-int-1 'iso2022
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
77 "ISO-2022-INT-1"
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 korean-ksc5601
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
80 short t
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
81 seven t
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
82 lock-shift t
88
821dec489c24 Import from CVS: tag r20-0
cvs
parents: 70
diff changeset
83 mnemonic "ISO7/Ko"
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
84 ))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
85
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
86 (define-language-environment 'korean
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
87 "Korean"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
88 (lambda ()
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
89 (set-coding-category-system 'iso-8-2 'euc-korea)
88
821dec489c24 Import from CVS: tag r20-0
cvs
parents: 70
diff changeset
90 (set-coding-priority-list '(iso-8-2 iso-7 iso-8-designate))
821dec489c24 Import from CVS: tag r20-0
cvs
parents: 70
diff changeset
91 (set-pathname-coding-system 'euc-korea)
821dec489c24 Import from CVS: tag r20-0
cvs
parents: 70
diff changeset
92 (add-hook 'comint-exec-hook
821dec489c24 Import from CVS: tag r20-0
cvs
parents: 70
diff changeset
93 (lambda ()
821dec489c24 Import from CVS: tag r20-0
cvs
parents: 70
diff changeset
94 (let ((proc (get-buffer-process (current-buffer))))
821dec489c24 Import from CVS: tag r20-0
cvs
parents: 70
diff changeset
95 (set-process-input-coding-system proc 'euc-korea)
821dec489c24 Import from CVS: tag r20-0
cvs
parents: 70
diff changeset
96 (set-process-output-coding-system proc 'euc-korea))))
821dec489c24 Import from CVS: tag r20-0
cvs
parents: 70
diff changeset
97 (set-file-coding-system-for-read 'autodetect)
821dec489c24 Import from CVS: tag r20-0
cvs
parents: 70
diff changeset
98 (set-default-file-coding-system 'euc-korea)
821dec489c24 Import from CVS: tag r20-0
cvs
parents: 70
diff changeset
99 (setq keyboard-coding-system 'euc-korea)
821dec489c24 Import from CVS: tag r20-0
cvs
parents: 70
diff changeset
100 (setq terminal-coding-system 'euc-korea)
821dec489c24 Import from CVS: tag r20-0
cvs
parents: 70
diff changeset
101 (set-charset-registry 'ascii "ksc5636")))
821dec489c24 Import from CVS: tag r20-0
cvs
parents: 70
diff changeset
102 ; (setq-default quail-current-package
821dec489c24 Import from CVS: tag r20-0
cvs
parents: 70
diff changeset
103 ; (assoc "hangul" quail-package-alist))))