annotate lisp/language/china-util.el @ 83652:5b644ae74c91

Merge from emacs--devo--0 Patches applied: * emacs--devo--0 (patch 846-851) - Update from CVS - Merge from emacs--rel--22 * emacs--rel--22 (patch 88-92) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 242-244) - Update from CVS Revision: emacs@sv.gnu.org/emacs--multi-tty--0--patch-31
author Miles Bader <miles@gnu.org>
date Mon, 13 Aug 2007 13:51:08 +0000
parents 0938de05f510
children b5d3fc1c4afe f55f9811f5d7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
42153
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
1 ;;; china-util.el --- utilities for Chinese -*- coding: iso-2022-7bit -*-
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
2
75347
e3694f1cb928 Add 2007 to copyright years.
Glenn Morris <rgm@gnu.org>
parents: 74605
diff changeset
3 ;; Copyright (C) 1995, 2001, 2002, 2003, 2004, 2005, 2006, 2007
62396
197607499a29 Fix copyrights.
Kenichi Handa <handa@m17n.org>
parents: 52401
diff changeset
4 ;; Free Software Foundation, Inc.
74605
6ee41fdd69ff Update AIST copyright years.
Kenichi Handa <handa@m17n.org>
parents: 74544
diff changeset
5 ;; Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
75347
e3694f1cb928 Add 2007 to copyright years.
Glenn Morris <rgm@gnu.org>
parents: 74605
diff changeset
6 ;; 2005, 2006, 2007
62396
197607499a29 Fix copyrights.
Kenichi Handa <handa@m17n.org>
parents: 52401
diff changeset
7 ;; National Institute of Advanced Industrial Science and Technology (AIST)
197607499a29 Fix copyrights.
Kenichi Handa <handa@m17n.org>
parents: 52401
diff changeset
8 ;; Registration Number H14PRO021
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
9
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
10 ;; Keywords: mule, multilingual, Chinese
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
11
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
12 ;; This file is part of GNU Emacs.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
13
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
14 ;; GNU Emacs is free software; you can redistribute it and/or modify
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
15 ;; it under the terms of the GNU General Public License as published by
78309
0938de05f510 Restore comma mistakenly removed in last change.
Glenn Morris <rgm@gnu.org>
parents: 78300
diff changeset
16 ;; the Free Software Foundation; either version 3, or (at your option)
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
17 ;; any later version.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
18
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
19 ;; GNU Emacs is distributed in the hope that it will be useful,
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
20 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
21 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
22 ;; GNU General Public License for more details.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
23
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
24 ;; You should have received a copy of the GNU General Public License
17071
70194012fb3a Fix FSF address in comment.
Karl Heuer <kwzh@gnu.org>
parents: 17052
diff changeset
25 ;; along with GNU Emacs; see the file COPYING. If not, write to the
64085
18a818a2ee7c Update FSF's address.
Lute Kamstra <lute@gnu.org>
parents: 62396
diff changeset
26 ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18a818a2ee7c Update FSF's address.
Lute Kamstra <lute@gnu.org>
parents: 62396
diff changeset
27 ;; Boston, MA 02110-1301, USA.
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
28
38414
67b464da13ec Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents: 28906
diff changeset
29 ;;; Commentary:
67b464da13ec Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents: 28906
diff changeset
30
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
31 ;;; Code:
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
32
42153
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
33 ;; Hz/ZW/EUC-TW encoding stuff
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
34
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
35 ;; HZ is an encoding method for Chinese character set GB2312 used
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
36 ;; widely in Internet. It is very similar to 7-bit environment of
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
37 ;; ISO-2022. The difference is that HZ uses the sequence "~{" and
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
38 ;; "~}" for designating GB2312 and ASCII respectively, hence, it
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
39 ;; doesn't uses ESC (0x1B) code.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
40
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
41 ;; ZW is another encoding method for Chinese character set GB2312. It
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
42 ;; encodes Chinese characters line by line by starting each line with
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
43 ;; the sequence "zW". It also uses only 7-bit as HZ.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
44
42153
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
45 ;; EUC-TW is similar to EUC-KS or EUC-JP. Its main character set is
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
46 ;; plane 1 of CNS 11643; characters of planes 2 to 7 are accessed with
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
47 ;; a single shift escape followed by three bytes: the first gives the
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
48 ;; plane, the second and third the character code. Note that characters
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
49 ;; of plane 1 are (redundantly) accessible with a single shift escape
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
50 ;; also.
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
51
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
52 ;; ISO-2022 escape sequence to designate GB2312.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
53 (defvar iso2022-gb-designation "\e$A")
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
54 ;; HZ escape sequence to designate GB2312.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
55 (defvar hz-gb-designnation "~{")
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
56 ;; ISO-2022 escape sequence to designate ASCII.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
57 (defvar iso2022-ascii-designation "\e(B")
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
58 ;; HZ escape sequence to designate ASCII.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
59 (defvar hz-ascii-designnation "~}")
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
60 ;; Regexp of ZW sequence to start GB2312.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
61 (defvar zw-start-gb "^zW")
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
62 ;; Regexp for start of GB2312 in an encoding mixture of HZ and ZW.
20738
f510736ce3d1 In setup-LANGUAGE-environment functions,
Kenichi Handa <handa@m17n.org>
parents: 19428
diff changeset
63 (defvar hz/zw-start-gb
f510736ce3d1 In setup-LANGUAGE-environment functions,
Kenichi Handa <handa@m17n.org>
parents: 19428
diff changeset
64 (concat hz-gb-designnation "\\|" zw-start-gb "\\|[^\0-\177]"))
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
65
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
66 (defvar decode-hz-line-continuation nil
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
67 "Flag to tell if we should care line continuation convention of Hz.")
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
68
20738
f510736ce3d1 In setup-LANGUAGE-environment functions,
Kenichi Handa <handa@m17n.org>
parents: 19428
diff changeset
69 (defconst hz-set-msb-table
51079
bd6dedbdc53f (hz-set-msb-table): Build when compiling.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 42153
diff changeset
70 (eval-when-compile
bd6dedbdc53f (hz-set-msb-table): Build when compiling.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 42153
diff changeset
71 (let ((chars nil)
bd6dedbdc53f (hz-set-msb-table): Build when compiling.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 42153
diff changeset
72 (i 0))
bd6dedbdc53f (hz-set-msb-table): Build when compiling.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 42153
diff changeset
73 (while (< i 33)
bd6dedbdc53f (hz-set-msb-table): Build when compiling.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 42153
diff changeset
74 (push i chars)
bd6dedbdc53f (hz-set-msb-table): Build when compiling.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 42153
diff changeset
75 (setq i (1+ i)))
bd6dedbdc53f (hz-set-msb-table): Build when compiling.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 42153
diff changeset
76 (while (< i 127)
bd6dedbdc53f (hz-set-msb-table): Build when compiling.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 42153
diff changeset
77 (push (+ i 128) chars)
bd6dedbdc53f (hz-set-msb-table): Build when compiling.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 42153
diff changeset
78 (setq i (1+ i)))
bd6dedbdc53f (hz-set-msb-table): Build when compiling.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 42153
diff changeset
79 (apply 'string (nreverse chars)))))
20738
f510736ce3d1 In setup-LANGUAGE-environment functions,
Kenichi Handa <handa@m17n.org>
parents: 19428
diff changeset
80
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
81 ;;;###autoload
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
82 (defun decode-hz-region (beg end)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
83 "Decode HZ/ZW encoded text in the current region.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
84 Return the length of resulting text."
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
85 (interactive "r")
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
86 (save-excursion
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
87 (save-restriction
20738
f510736ce3d1 In setup-LANGUAGE-environment functions,
Kenichi Handa <handa@m17n.org>
parents: 19428
diff changeset
88 (let (pos ch)
f510736ce3d1 In setup-LANGUAGE-environment functions,
Kenichi Handa <handa@m17n.org>
parents: 19428
diff changeset
89 (narrow-to-region beg end)
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
90
20738
f510736ce3d1 In setup-LANGUAGE-environment functions,
Kenichi Handa <handa@m17n.org>
parents: 19428
diff changeset
91 ;; We, at first, convert HZ/ZW to `euc-china',
f510736ce3d1 In setup-LANGUAGE-environment functions,
Kenichi Handa <handa@m17n.org>
parents: 19428
diff changeset
92 ;; then decode it.
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
93
20738
f510736ce3d1 In setup-LANGUAGE-environment functions,
Kenichi Handa <handa@m17n.org>
parents: 19428
diff changeset
94 ;; "~\n" -> "\n", "~~" -> "~"
f510736ce3d1 In setup-LANGUAGE-environment functions,
Kenichi Handa <handa@m17n.org>
parents: 19428
diff changeset
95 (goto-char (point-min))
f510736ce3d1 In setup-LANGUAGE-environment functions,
Kenichi Handa <handa@m17n.org>
parents: 19428
diff changeset
96 (while (search-forward "~" nil t)
f510736ce3d1 In setup-LANGUAGE-environment functions,
Kenichi Handa <handa@m17n.org>
parents: 19428
diff changeset
97 (setq ch (following-char))
f510736ce3d1 In setup-LANGUAGE-environment functions,
Kenichi Handa <handa@m17n.org>
parents: 19428
diff changeset
98 (if (or (= ch ?\n) (= ch ?~)) (delete-char -1)))
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
99
20738
f510736ce3d1 In setup-LANGUAGE-environment functions,
Kenichi Handa <handa@m17n.org>
parents: 19428
diff changeset
100 ;; "^zW...\n" -> Chinese GB2312
f510736ce3d1 In setup-LANGUAGE-environment functions,
Kenichi Handa <handa@m17n.org>
parents: 19428
diff changeset
101 ;; "~{...~}" -> Chinese GB2312
f510736ce3d1 In setup-LANGUAGE-environment functions,
Kenichi Handa <handa@m17n.org>
parents: 19428
diff changeset
102 (goto-char (point-min))
f510736ce3d1 In setup-LANGUAGE-environment functions,
Kenichi Handa <handa@m17n.org>
parents: 19428
diff changeset
103 (setq beg nil)
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
104 (while (re-search-forward hz/zw-start-gb nil t)
20738
f510736ce3d1 In setup-LANGUAGE-environment functions,
Kenichi Handa <handa@m17n.org>
parents: 19428
diff changeset
105 (setq pos (match-beginning 0)
f510736ce3d1 In setup-LANGUAGE-environment functions,
Kenichi Handa <handa@m17n.org>
parents: 19428
diff changeset
106 ch (char-after pos))
f510736ce3d1 In setup-LANGUAGE-environment functions,
Kenichi Handa <handa@m17n.org>
parents: 19428
diff changeset
107 ;; Record the first position to start conversion.
f510736ce3d1 In setup-LANGUAGE-environment functions,
Kenichi Handa <handa@m17n.org>
parents: 19428
diff changeset
108 (or beg (setq beg pos))
f510736ce3d1 In setup-LANGUAGE-environment functions,
Kenichi Handa <handa@m17n.org>
parents: 19428
diff changeset
109 (end-of-line)
f510736ce3d1 In setup-LANGUAGE-environment functions,
Kenichi Handa <handa@m17n.org>
parents: 19428
diff changeset
110 (setq end (point))
f510736ce3d1 In setup-LANGUAGE-environment functions,
Kenichi Handa <handa@m17n.org>
parents: 19428
diff changeset
111 (if (>= ch 128) ; 8bit GB2312
f510736ce3d1 In setup-LANGUAGE-environment functions,
Kenichi Handa <handa@m17n.org>
parents: 19428
diff changeset
112 nil
f510736ce3d1 In setup-LANGUAGE-environment functions,
Kenichi Handa <handa@m17n.org>
parents: 19428
diff changeset
113 (goto-char pos)
f510736ce3d1 In setup-LANGUAGE-environment functions,
Kenichi Handa <handa@m17n.org>
parents: 19428
diff changeset
114 (delete-char 2)
f510736ce3d1 In setup-LANGUAGE-environment functions,
Kenichi Handa <handa@m17n.org>
parents: 19428
diff changeset
115 (setq end (- end 2))
f510736ce3d1 In setup-LANGUAGE-environment functions,
Kenichi Handa <handa@m17n.org>
parents: 19428
diff changeset
116 (if (= ch ?z) ; ZW -> euc-china
f510736ce3d1 In setup-LANGUAGE-environment functions,
Kenichi Handa <handa@m17n.org>
parents: 19428
diff changeset
117 (progn
f510736ce3d1 In setup-LANGUAGE-environment functions,
Kenichi Handa <handa@m17n.org>
parents: 19428
diff changeset
118 (translate-region (point) end hz-set-msb-table)
f510736ce3d1 In setup-LANGUAGE-environment functions,
Kenichi Handa <handa@m17n.org>
parents: 19428
diff changeset
119 (goto-char end))
f510736ce3d1 In setup-LANGUAGE-environment functions,
Kenichi Handa <handa@m17n.org>
parents: 19428
diff changeset
120 (if (search-forward hz-ascii-designnation
f510736ce3d1 In setup-LANGUAGE-environment functions,
Kenichi Handa <handa@m17n.org>
parents: 19428
diff changeset
121 (if decode-hz-line-continuation nil end)
f510736ce3d1 In setup-LANGUAGE-environment functions,
Kenichi Handa <handa@m17n.org>
parents: 19428
diff changeset
122 t)
f510736ce3d1 In setup-LANGUAGE-environment functions,
Kenichi Handa <handa@m17n.org>
parents: 19428
diff changeset
123 (delete-char -2))
f510736ce3d1 In setup-LANGUAGE-environment functions,
Kenichi Handa <handa@m17n.org>
parents: 19428
diff changeset
124 (setq end (point))
f510736ce3d1 In setup-LANGUAGE-environment functions,
Kenichi Handa <handa@m17n.org>
parents: 19428
diff changeset
125 (translate-region pos (point) hz-set-msb-table))))
f510736ce3d1 In setup-LANGUAGE-environment functions,
Kenichi Handa <handa@m17n.org>
parents: 19428
diff changeset
126 (if beg
f510736ce3d1 In setup-LANGUAGE-environment functions,
Kenichi Handa <handa@m17n.org>
parents: 19428
diff changeset
127 (decode-coding-region beg end 'euc-china)))
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
128 (- (point-max) (point-min)))))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
129
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
130 ;;;###autoload
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
131 (defun decode-hz-buffer ()
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
132 "Decode HZ/ZW encoded text in the current buffer."
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
133 (interactive)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
134 (decode-hz-region (point-min) (point-max)))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
135
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
136 ;;;###autoload
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
137 (defun encode-hz-region (beg end)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
138 "Encode the text in the current region to HZ.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
139 Return the length of resulting text."
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
140 (interactive "r")
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
141 (save-excursion
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
142 (save-restriction
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
143 (narrow-to-region beg end)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
144
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
145 ;; "~" -> "~~"
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
146 (goto-char (point-min))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
147 (while (search-forward "~" nil t) (insert ?~))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
148
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
149 ;; Chinese GB2312 -> "~{...~}"
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
150 (goto-char (point-min))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
151 (if (re-search-forward "\\cc" nil t)
20838
3d67d591c066 (encode-hz-region): Do not bind
Kenichi Handa <handa@m17n.org>
parents: 20738
diff changeset
152 (let (pos)
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
153 (goto-char (setq pos (match-beginning 0)))
18553
62e17ab4e33e Use true coding system names instead of
Kenichi Handa <handa@m17n.org>
parents: 18377
diff changeset
154 (encode-coding-region pos (point-max) 'iso-2022-7bit)
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
155 (goto-char pos)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
156 (while (search-forward iso2022-gb-designation nil t)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
157 (delete-char -3)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
158 (insert hz-gb-designnation))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
159 (goto-char pos)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
160 (while (search-forward iso2022-ascii-designation nil t)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
161 (delete-char -3)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
162 (insert hz-ascii-designnation))))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
163 (- (point-max) (point-min)))))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
164
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
165 ;;;###autoload
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
166 (defun encode-hz-buffer ()
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
167 "Encode the text in the current buffer to HZ."
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
168 (interactive)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
169 (encode-hz-region (point-min) (point-max)))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
170
42153
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
171 ;; The following sets up a translation table (big5-to-cns) from Big 5
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
172 ;; to CNS encoding, using some auxiliary functions to make the code
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
173 ;; more readable.
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
174
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
175 ;; Many kudos to Himi! The used code has been adapted from his
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
176 ;; mule-ucs package.
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
177
51079
bd6dedbdc53f (hz-set-msb-table): Build when compiling.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 42153
diff changeset
178 (eval-when-compile
42153
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
179 (defun big5-to-flat-code (num)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
180 "Convert NUM in Big 5 encoding to a `flat code'.
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
181 0xA140 will be mapped to position 0, 0xA141 to position 1, etc.
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
182 There are no gaps in the flat code."
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
183
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
184 (let ((hi (/ num 256))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
185 (lo (% num 256)))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
186 (+ (* 157 (- hi #xa1))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
187 (- lo (if (>= lo #xa1) 98 64)))))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
188
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
189 (defun flat-code-to-big5 (num)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
190 "Convert NUM from a `flat code' to Big 5 encoding.
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
191 This is the inverse function of `big5-to-flat-code'."
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
192
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
193 (let ((hi (/ num 157))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
194 (lo (% num 157)))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
195 (+ (* 256 (+ hi #xa1))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
196 (+ lo (if (< lo 63) 64 98)))))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
197
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
198 (defun euc-to-flat-code (num)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
199 "Convert NUM in EUC encoding (in GL representation) to a `flat code'.
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
200 0x2121 will be mapped to position 0, 0x2122 to position 1, etc.
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
201 There are no gaps in the flat code."
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
202
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
203 (let ((hi (/ num 256))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
204 (lo (% num 256)))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
205 (+ (* 94 (- hi #x21))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
206 (- lo #x21))))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
207
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
208 (defun flat-code-to-euc (num)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
209 "Convert NUM from a `flat code' to EUC encoding (in GL representation).
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
210 The inverse function of `euc-to-flat-code'. The high and low bytes are
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
211 returned in a list."
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
212
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
213 (let ((hi (/ num 94))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
214 (lo (% num 94)))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
215 (list (+ hi #x21) (+ lo #x21))))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
216
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
217 (defun expand-euc-big5-alist (alist)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
218 "Create a translation table and fills it with data given in ALIST.
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
219 Elements of ALIST can be either given as
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
220
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
221 ((euc-charset . startchar) . (big5-range-begin . big5-range-end))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
222
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
223 or as
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
224
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
225 (euc-character . big5-charcode)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
226
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
227 The former maps a range of glyphs in an EUC charset (where STARTCHAR
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
228 is in GL representation) to a certain range of Big 5 encoded
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
229 characters, the latter maps a single glyph. Glyphs which can't be
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
230 mapped will be represented with the byte 0xFF.
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
231
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
232 The return value is the filled translation table."
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
233
51079
bd6dedbdc53f (hz-set-msb-table): Build when compiling.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 42153
diff changeset
234 (let ((chartable (make-char-table 'translation-table #xFF))
42153
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
235 char
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
236 big5
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
237 i
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
238 end
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
239 codepoint
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
240 charset)
51079
bd6dedbdc53f (hz-set-msb-table): Build when compiling.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 42153
diff changeset
241 (dolist (elem alist)
bd6dedbdc53f (hz-set-msb-table): Build when compiling.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 42153
diff changeset
242 (setq char (car elem)
bd6dedbdc53f (hz-set-msb-table): Build when compiling.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 42153
diff changeset
243 big5 (cdr elem))
42153
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
244 (cond ((and (consp char)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
245 (consp big5))
51079
bd6dedbdc53f (hz-set-msb-table): Build when compiling.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 42153
diff changeset
246 (setq i (big5-to-flat-code (car big5))
bd6dedbdc53f (hz-set-msb-table): Build when compiling.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 42153
diff changeset
247 end (big5-to-flat-code (cdr big5))
bd6dedbdc53f (hz-set-msb-table): Build when compiling.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 42153
diff changeset
248 codepoint (euc-to-flat-code (cdr char))
bd6dedbdc53f (hz-set-msb-table): Build when compiling.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 42153
diff changeset
249 charset (car char))
bd6dedbdc53f (hz-set-msb-table): Build when compiling.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 42153
diff changeset
250 (while (>= end i)
bd6dedbdc53f (hz-set-msb-table): Build when compiling.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 42153
diff changeset
251 (aset chartable
bd6dedbdc53f (hz-set-msb-table): Build when compiling.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 42153
diff changeset
252 (decode-big5-char (flat-code-to-big5 i))
bd6dedbdc53f (hz-set-msb-table): Build when compiling.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 42153
diff changeset
253 (apply (function make-char)
bd6dedbdc53f (hz-set-msb-table): Build when compiling.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 42153
diff changeset
254 charset
bd6dedbdc53f (hz-set-msb-table): Build when compiling.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 42153
diff changeset
255 (flat-code-to-euc codepoint)))
bd6dedbdc53f (hz-set-msb-table): Build when compiling.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 42153
diff changeset
256 (setq i (1+ i)
bd6dedbdc53f (hz-set-msb-table): Build when compiling.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 42153
diff changeset
257 codepoint (1+ codepoint))))
42153
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
258 ((and (char-valid-p char)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
259 (numberp big5))
51079
bd6dedbdc53f (hz-set-msb-table): Build when compiling.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 42153
diff changeset
260 (setq i (decode-big5-char big5))
bd6dedbdc53f (hz-set-msb-table): Build when compiling.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 42153
diff changeset
261 (aset chartable i char))
42153
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
262 (t
51079
bd6dedbdc53f (hz-set-msb-table): Build when compiling.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 42153
diff changeset
263 (error "Unknown slot type: %S" elem))))
42153
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
264 ;; the return value
51079
bd6dedbdc53f (hz-set-msb-table): Build when compiling.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 42153
diff changeset
265 chartable)))
42153
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
266
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
267 ;; All non-CNS encodings are commented out.
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
268
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
269 (define-translation-table 'big5-to-cns
51079
bd6dedbdc53f (hz-set-msb-table): Build when compiling.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 42153
diff changeset
270 (eval-when-compile
42153
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
271 (expand-euc-big5-alist
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
272 '(
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
273 ;; Symbols
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
274 ((chinese-cns11643-1 . #x2121) . (#xA140 . #xA1F5))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
275 (?$(G"X(B . #xA1F6)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
276 (?$(G"W(B . #xA1F7)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
277 ((chinese-cns11643-1 . #x2259) . (#xA1F8 . #xA2AE))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
278 ((chinese-cns11643-1 . #x2421) . (#xA2AF . #xA3BF))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
279 ;; Control codes (vendor dependent)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
280 ((chinese-cns11643-1 . #x4221) . (#xA3C0 . #xA3E0))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
281 ;; Level 1 Ideographs
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
282 ((chinese-cns11643-1 . #x4421) . (#xA440 . #xACFD))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
283 (?$(GWS(B . #xACFE)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
284 ((chinese-cns11643-1 . #x5323) . (#xAD40 . #xAFCF))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
285 ((chinese-cns11643-1 . #x5754) . (#xAFD0 . #xBBC7))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
286 ((chinese-cns11643-1 . #x6B51) . (#xBBC8 . #xBE51))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
287 (?$(GkP(B . #xBE52)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
288 ((chinese-cns11643-1 . #x6F5C) . (#xBE53 . #xC1AA))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
289 ((chinese-cns11643-1 . #x7536) . (#xC1AB . #xC2CA))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
290 (?$(Gu5(B . #xC2CB)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
291 ((chinese-cns11643-1 . #x7737) . (#xC2CC . #xC360))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
292 ((chinese-cns11643-1 . #x782E) . (#xC361 . #xC3B8))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
293 (?$(Gxe(B . #xC3B9)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
294 (?$(Gxd(B . #xC3BA)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
295 ((chinese-cns11643-1 . #x7866) . (#xC3BB . #xC455))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
296 (?$(Gx-(B . #xC456)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
297 ((chinese-cns11643-1 . #x7962) . (#xC457 . #xC67E))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
298 ;; Symbols
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
299 ((chinese-cns11643-1 . #x2621) . (#xC6A1 . #xC6BE))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
300 ;; Radicals
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
301 (?$(G'#(B . #xC6BF)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
302 (?$(G'$(B . #xC6C0)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
303 (?$(G'&(B . #xC6C1)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
304 (?$(G'((B . #xC6C2)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
305 (?$(G'-(B . #xC6C3)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
306 (?$(G'.(B . #xC6C4)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
307 (?$(G'/(B . #xC6C5)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
308 (?$(G'4(B . #xC6C6)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
309 (?$(G'7(B . #xC6C7)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
310 (?$(G':(B . #xC6C8)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
311 (?$(G'<(B . #xC6C9)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
312 (?$(G'B(B . #xC6CA)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
313 (?$(G'G(B . #xC6CB)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
314 (?$(G'N(B . #xC6CC)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
315 (?$(G'S(B . #xC6CD)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
316 (?$(G'T(B . #xC6CE)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
317 (?$(G'U(B . #xC6CF)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
318 (?$(G'Y(B . #xC6D0)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
319 (?$(G'Z(B . #xC6D1)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
320 (?$(G'a(B . #xC6D2)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
321 (?$(G'f(B . #xC6D3)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
322 (?$(G()(B . #xC6D4)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
323 (?$(G(*(B . #xC6D5)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
324 (?$(G(c(B . #xC6D6)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
325 (?$(G(l(B . #xC6D7)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
326 ;; Diacritical Marks
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
327 ; ((japanese-jisx0208 . #x212F) . (#xC6D8 . #xC6D9))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
328 ;; Japanese Kana Supplement
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
329 ; ((japanese-jisx0208 . #x2133) . (#xC6DA . #xC6E3))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
330 ;; Japanese Hiragana
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
331 ; ((japanese-jisx0208 . #x2421) . (#xC6E7 . #xC77A))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
332 ;; Japanese Katakana
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
333 ; ((japanese-jisx0208 . #x2521) . (#xC77B . #xC7F2))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
334 ;; Cyrillic Characters
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
335 ; ((japanese-jisx0208 . #x2721) . (#xC7F3 . #xC854))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
336 ; ((japanese-jisx0208 . #x2751) . (#xC855 . #xC875))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
337 ;; Special Chinese Characters
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
338 (?$(J!#(B . #xC879)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
339 (?$(J!$(B . #xC87B)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
340 (?$(J!*(B . #xC87D)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
341 (?$(J!R(B . #xC8A2)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
342
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
343 ;; JIS X 0208 NOT SIGN (cf. U+00AC)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
344 ; (?$B"L(B . #xC8CD)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
345 ;; JIS X 0212 BROKEN BAR (cf. U+00A6)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
346 ; (?$(D"C(B . #xC8CE)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
347
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
348 ;; GB 2312 characters
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
349 ; (?$A!d(B . #xC8CF)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
350 ; (?$A!e(B . #xC8D0)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
351 ;;;;; C8D1 - Japanese `($B3t(B)'
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
352 ; (?$A!m(B . #xC8D2)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
353 ;;;;; C8D2 - Tel.
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
354
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
355 ;; Level 2 Ideographs
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
356 ((chinese-cns11643-2 . #x2121) . (#xC940 . #xC949))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
357 (?$(GDB(B . #xC94A);; a duplicate of #xA461
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
358 ((chinese-cns11643-2 . #x212B) . (#xC94B . #xC96B))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
359 ((chinese-cns11643-2 . #x214D) . (#xC96C . #xC9BD))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
360 (?$(H!L(B . #xC9BE)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
361 ((chinese-cns11643-2 . #x217D) . (#xC9BF . #xC9EC))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
362 ((chinese-cns11643-2 . #x224E) . (#xC9ED . #xCAF6))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
363 (?$(H"M(B . #xCAF7)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
364 ((chinese-cns11643-2 . #x2439) . (#xCAF8 . #xD6CB))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
365 (?$(H>c(B . #xD6CC)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
366 ((chinese-cns11643-2 . #x3770) . (#xD6CD . #xD779))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
367 (?$(H?j(B . #xD77A)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
368 ((chinese-cns11643-2 . #x387E) . (#xD77B . #xDADE))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
369 (?$(H7o(B . #xDADF)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
370 ((chinese-cns11643-2 . #x3E64) . (#xDAE0 . #xDBA6))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
371 ((chinese-cns11643-2 . #x3F6B) . (#xDBA7 . #xDDFB))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
372 (?$(HAv(B . #xDDFC);; a duplicate of #xDCD1
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
373 ((chinese-cns11643-2 . #x4424) . (#xDDFD . #xE8A2))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
374 ((chinese-cns11643-2 . #x554C) . (#xE8A3 . #xE975))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
375 ((chinese-cns11643-2 . #x5723) . (#xE976 . #xEB5A))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
376 ((chinese-cns11643-2 . #x5A29) . (#xEB5B . #xEBF0))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
377 (?$(HUK(B . #xEBF1)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
378 ((chinese-cns11643-2 . #x5B3F) . (#xEBF2 . #xECDD))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
379 (?$(HW"(B . #xECDE)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
380 ((chinese-cns11643-2 . #x5C6A) . (#xECDF . #xEDA9))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
381 ((chinese-cns11643-2 . #x5D75) . (#xEDAA . #xEEEA))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
382 (?$(Hd/(B . #xEEEB)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
383 ((chinese-cns11643-2 . #x6039) . (#xEEEC . #xF055))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
384 (?$(H]t(B . #xF056)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
385 ((chinese-cns11643-2 . #x6243) . (#xF057 . #xF0CA))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
386 (?$(HZ((B . #xF0CB)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
387 ((chinese-cns11643-2 . #x6337) . (#xF0CC . #xF162))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
388 ((chinese-cns11643-2 . #x6430) . (#xF163 . #xF16A))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
389 (?$(Hga(B . #xF16B)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
390 ((chinese-cns11643-2 . #x6438) . (#xF16C . #xF267))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
391 (?$(Hi4(B . #xF268)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
392 ((chinese-cns11643-2 . #x6573) . (#xF269 . #xF2C2))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
393 ((chinese-cns11643-2 . #x664E) . (#xF2C3 . #xF374))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
394 ((chinese-cns11643-2 . #x6762) . (#xF375 . #xF465))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
395 ((chinese-cns11643-2 . #x6935) . (#xF466 . #xF4B4))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
396 (?$(HfM(B . #xF4B5)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
397 ((chinese-cns11643-2 . #x6962) . (#xF4B6 . #xF4FC))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
398 ((chinese-cns11643-2 . #x6A4C) . (#xF4FD . #xF662))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
399 (?$(HjK(B . #xF663)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
400 ((chinese-cns11643-2 . #x6C52) . (#xF664 . #xF976))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
401 ((chinese-cns11643-2 . #x7167) . (#xF977 . #xF9C3))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
402 (?$(Hqf(B . #xF9C4)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
403 (?$(Hr4(B . #xF9C5)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
404 (?$(Hr@(B . #xF9C6)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
405 ((chinese-cns11643-2 . #x7235) . (#xF9C7 . #xF9D1))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
406 ((chinese-cns11643-2 . #x7241) . (#xF9D2 . #xF9D5))
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
407
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
408 ;; Additional Ideographs
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
409 (?$(IC7(B . #xF9D6)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
410 (?$(IOP(B . #xF9D7)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
411 (?$(IDN(B . #xF9D8)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
412 (?$(IPJ(B . #xF9D9)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
413 (?$(I,](B . #xF9DA)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
414 (?$(I=~(B . #xF9DB)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
415 (?$(IK\(B . #xF9DC)
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
416 )
51079
bd6dedbdc53f (hz-set-msb-table): Build when compiling.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 42153
diff changeset
417 ))
42153
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
418 )
ca6dbe4635da Implementing euc-tw encoding.
Werner LEMBERG <wl@gnu.org>
parents: 38414
diff changeset
419
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
420 ;;
18309
bd8b521f5218 Provide XXX-util instead of
Kenichi Handa <handa@m17n.org>
parents: 17993
diff changeset
421 (provide 'china-util)
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
422
52401
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 51079
diff changeset
423 ;;; arch-tag: 5a47b084-b9ac-420e-8191-70c5b3a14836
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
424 ;;; china-util.el ends here