Commit | Line | Data |
---|---|---|
d7136fd3 | 1 | ;;; subst-ksc.el --- Unicode/KSC-5601 translation -*-coding: euc-kr;-*- |
9e24a165 | 2 | ;; Copyright (C) 2002, 2004 Free Software Foundation, Inc. |
d7136fd3 DL |
3 | |
4 | ;; Author: Dave Love <fx@gnu.org> | |
5 | ;; Keywords: i18n | |
6 | ||
7 | ;; This file is free software; you can redistribute it and/or modify | |
8 | ;; it under the terms of the GNU General Public License as published by | |
9 | ;; the Free Software Foundation; either version 2, or (at your option) | |
10 | ;; any later version. | |
11 | ||
12 | ;; This file is distributed in the hope that it will be useful, | |
13 | ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | ;; GNU General Public License for more details. | |
16 | ||
17 | ;; You should have received a copy of the GNU General Public License | |
18 | ;; along with GNU Emacs; see the file COPYING. If not, write to | |
19 | ;; the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
20 | ;; Boston, MA 02111-1307, USA. | |
21 | ||
22 | ;;; Commentary: | |
23 | ||
24 | ;; Provides translation tables between Unicode and korean-ksc5601 for | |
9e24a165 | 25 | ;; use by the `utf-translate-cjk-mode' option. See subst-jis.el for the |
d7136fd3 DL |
26 | ;; method used. |
27 | ||
28 | ;;; Code: | |
29 | ||
30 | (mapc | |
31 | (lambda (pair) | |
32 | (let ((unicode (car pair)) | |
33 | (char (cadr pair))) | |
e41ef4d4 KH |
34 | ;; exclude non-supporting components from decode table |
35 | (if (utf-translate-cjk-substitutable-p unicode) | |
36 | (puthash unicode char ucs-unicode-to-mule-cjk)) | |
d7136fd3 DL |
37 | (puthash char unicode ucs-mule-cjk-to-unicode))) |
38 |