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