Mercurial > emacs
annotate lisp/language/china-util.el @ 18845:a64fd9cec691
(c-initialize-builtin-style): Use copy-sequence
instead of c-copy-tree.
(c-copy-tree): Function deleted.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 18 Jul 1997 02:12:00 +0000 |
parents | f98c1cb6b807 |
children | 6835f9c00ff5 |
rev | line source |
---|---|
17315
a3ca5e15c82a
Fix the format of the first line.
Kenichi Handa <handa@m17n.org>
parents:
17098
diff
changeset
|
1 ;;; china-util.el --- utilities for Chinese |
17052 | 2 |
3 ;; Copyright (C) 1995 Electrotechnical Laboratory, JAPAN. | |
18377
8b4a66c66dd6
Change copyright notice.
Richard M. Stallman <rms@gnu.org>
parents:
18309
diff
changeset
|
4 ;; Licensed to the Free Software Foundation. |
17052 | 5 |
6 ;; Keywords: mule, multilingual, Chinese | |
7 | |
8 ;; This file is part of GNU Emacs. | |
9 | |
10 ;; GNU Emacs is free software; you can redistribute it and/or modify | |
11 ;; it under the terms of the GNU General Public License as published by | |
12 ;; the Free Software Foundation; either version 2, or (at your option) | |
13 ;; any later version. | |
14 | |
15 ;; GNU Emacs is distributed in the hope that it will be useful, | |
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18 ;; GNU General Public License for more details. | |
19 | |
20 ;; You should have received a copy of the GNU General Public License | |
17071 | 21 ;; along with GNU Emacs; see the file COPYING. If not, write to the |
22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
23 ;; Boston, MA 02111-1307, USA. | |
17052 | 24 |
25 ;;; Code: | |
26 | |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17315
diff
changeset
|
27 ;;;###autoload |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17315
diff
changeset
|
28 (defun setup-chinese-gb-environment () |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17315
diff
changeset
|
29 "Setup multilingual environment (MULE) for Chinese GB2312 users." |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17315
diff
changeset
|
30 (interactive) |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17315
diff
changeset
|
31 (setup-english-environment) |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17315
diff
changeset
|
32 |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17315
diff
changeset
|
33 (setq primary-language "Chinese-GB") |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17315
diff
changeset
|
34 |
18553
62e17ab4e33e
Use true coding system names instead of
Kenichi Handa <handa@m17n.org>
parents:
18377
diff
changeset
|
35 (setq coding-category-iso-8-2 'chinese-iso-8bit) |
18793
f98c1cb6b807
(setup-chinese-gb-environment): Adjusted for the change of coding
Kenichi Handa <handa@m17n.org>
parents:
18553
diff
changeset
|
36 (setq coding-category-iso-7-else 'chinese-iso-7bit) |
18553
62e17ab4e33e
Use true coding system names instead of
Kenichi Handa <handa@m17n.org>
parents:
18377
diff
changeset
|
37 (setq coding-category-big5 'chinese-big5) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17315
diff
changeset
|
38 |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17315
diff
changeset
|
39 (set-coding-priority |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17315
diff
changeset
|
40 '(coding-category-iso-7 |
18793
f98c1cb6b807
(setup-chinese-gb-environment): Adjusted for the change of coding
Kenichi Handa <handa@m17n.org>
parents:
18553
diff
changeset
|
41 coding-category-iso-7-else |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17315
diff
changeset
|
42 coding-category-iso-8-2 |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17315
diff
changeset
|
43 coding-category-big5 |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17315
diff
changeset
|
44 coding-category-iso-8-1 |
18793
f98c1cb6b807
(setup-chinese-gb-environment): Adjusted for the change of coding
Kenichi Handa <handa@m17n.org>
parents:
18553
diff
changeset
|
45 coding-category-emacs-mule |
f98c1cb6b807
(setup-chinese-gb-environment): Adjusted for the change of coding
Kenichi Handa <handa@m17n.org>
parents:
18553
diff
changeset
|
46 coding-category-iso-8-else)) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17315
diff
changeset
|
47 |
18553
62e17ab4e33e
Use true coding system names instead of
Kenichi Handa <handa@m17n.org>
parents:
18377
diff
changeset
|
48 (setq-default buffer-file-coding-system 'chinese-iso-8bit) |
62e17ab4e33e
Use true coding system names instead of
Kenichi Handa <handa@m17n.org>
parents:
18377
diff
changeset
|
49 (set-terminal-coding-system-internal 'chinese-iso-8bit) |
62e17ab4e33e
Use true coding system names instead of
Kenichi Handa <handa@m17n.org>
parents:
18377
diff
changeset
|
50 (set-keyboard-coding-system-internal 'chinese-iso-8bit) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17315
diff
changeset
|
51 (setq sendmail-coding-system nil |
18553
62e17ab4e33e
Use true coding system names instead of
Kenichi Handa <handa@m17n.org>
parents:
18377
diff
changeset
|
52 rmail-file-coding-system 'chinese-iso-7bit) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17315
diff
changeset
|
53 |
18793
f98c1cb6b807
(setup-chinese-gb-environment): Adjusted for the change of coding
Kenichi Handa <handa@m17n.org>
parents:
18553
diff
changeset
|
54 (setq default-input-method "chinese-py-punct")) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17315
diff
changeset
|
55 |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17315
diff
changeset
|
56 ;;;###autoload |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17315
diff
changeset
|
57 (defun setup-chinese-big5-environment () |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17315
diff
changeset
|
58 "Setup multilingual environment (MULE) for Chinese Big5 users." |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17315
diff
changeset
|
59 (interactive) |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17315
diff
changeset
|
60 (setup-english-environment) |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17315
diff
changeset
|
61 |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17315
diff
changeset
|
62 (setq primary-language "Chinese-BIG5") |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17315
diff
changeset
|
63 |
18553
62e17ab4e33e
Use true coding system names instead of
Kenichi Handa <handa@m17n.org>
parents:
18377
diff
changeset
|
64 (setq coding-category-iso-8-2 'chinese-big5) |
18793
f98c1cb6b807
(setup-chinese-gb-environment): Adjusted for the change of coding
Kenichi Handa <handa@m17n.org>
parents:
18553
diff
changeset
|
65 (setq coding-category-iso-7-else 'chinese-iso-7bit) |
18553
62e17ab4e33e
Use true coding system names instead of
Kenichi Handa <handa@m17n.org>
parents:
18377
diff
changeset
|
66 (setq coding-category-big5 'chinese-big5) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17315
diff
changeset
|
67 |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17315
diff
changeset
|
68 (set-coding-priority |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17315
diff
changeset
|
69 '(coding-category-iso-7 |
18793
f98c1cb6b807
(setup-chinese-gb-environment): Adjusted for the change of coding
Kenichi Handa <handa@m17n.org>
parents:
18553
diff
changeset
|
70 coding-category-iso-7-else |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17315
diff
changeset
|
71 coding-category-big5 |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17315
diff
changeset
|
72 coding-category-iso-8-2 |
18793
f98c1cb6b807
(setup-chinese-gb-environment): Adjusted for the change of coding
Kenichi Handa <handa@m17n.org>
parents:
18553
diff
changeset
|
73 coding-category-emacs-mule |
f98c1cb6b807
(setup-chinese-gb-environment): Adjusted for the change of coding
Kenichi Handa <handa@m17n.org>
parents:
18553
diff
changeset
|
74 coding-category-iso-8-else)) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17315
diff
changeset
|
75 |
18553
62e17ab4e33e
Use true coding system names instead of
Kenichi Handa <handa@m17n.org>
parents:
18377
diff
changeset
|
76 (setq-default buffer-file-coding-system 'chinese-big5) |
62e17ab4e33e
Use true coding system names instead of
Kenichi Handa <handa@m17n.org>
parents:
18377
diff
changeset
|
77 (set-terminal-coding-system-internal 'chinese-big5) |
62e17ab4e33e
Use true coding system names instead of
Kenichi Handa <handa@m17n.org>
parents:
18377
diff
changeset
|
78 (set-keyboard-coding-system-internal 'chinese-big5) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17315
diff
changeset
|
79 (setq sendmail-coding-system nil |
18553
62e17ab4e33e
Use true coding system names instead of
Kenichi Handa <handa@m17n.org>
parents:
18377
diff
changeset
|
80 rmail-file-coding-system 'chienese-iso-7bit) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17315
diff
changeset
|
81 |
18793
f98c1cb6b807
(setup-chinese-gb-environment): Adjusted for the change of coding
Kenichi Handa <handa@m17n.org>
parents:
18553
diff
changeset
|
82 (setq default-input-method "chinese-py-punct-b5")) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17315
diff
changeset
|
83 |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17315
diff
changeset
|
84 ;;;###autoload |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17315
diff
changeset
|
85 (defun setup-chinese-cns-environment () |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17315
diff
changeset
|
86 "Setup multilingual environment (MULE) for Chinese CNS11643 family users." |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17315
diff
changeset
|
87 (interactive) |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17315
diff
changeset
|
88 (setup-english-environment) |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17315
diff
changeset
|
89 |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17315
diff
changeset
|
90 (setq primary-language "Chinese-CNS") |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17315
diff
changeset
|
91 |
18793
f98c1cb6b807
(setup-chinese-gb-environment): Adjusted for the change of coding
Kenichi Handa <handa@m17n.org>
parents:
18553
diff
changeset
|
92 (setq coding-category-iso-7-else 'chinese-iso-7bit) |
18553
62e17ab4e33e
Use true coding system names instead of
Kenichi Handa <handa@m17n.org>
parents:
18377
diff
changeset
|
93 (setq coding-category-big5 'chinese-big5) |
62e17ab4e33e
Use true coding system names instead of
Kenichi Handa <handa@m17n.org>
parents:
18377
diff
changeset
|
94 (setq coding-category-iso-8-2 'chinese-big5) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17315
diff
changeset
|
95 |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17315
diff
changeset
|
96 (set-coding-priority |
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17315
diff
changeset
|
97 '(coding-category-iso-7 |
18793
f98c1cb6b807
(setup-chinese-gb-environment): Adjusted for the change of coding
Kenichi Handa <handa@m17n.org>
parents:
18553
diff
changeset
|
98 coding-category-iso-7-else |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17315
diff
changeset
|
99 coding-category-iso-8-2 |
18793
f98c1cb6b807
(setup-chinese-gb-environment): Adjusted for the change of coding
Kenichi Handa <handa@m17n.org>
parents:
18553
diff
changeset
|
100 coding-category-big5 |
f98c1cb6b807
(setup-chinese-gb-environment): Adjusted for the change of coding
Kenichi Handa <handa@m17n.org>
parents:
18553
diff
changeset
|
101 coding-category-iso-7-else)) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17315
diff
changeset
|
102 |
18553
62e17ab4e33e
Use true coding system names instead of
Kenichi Handa <handa@m17n.org>
parents:
18377
diff
changeset
|
103 (setq-default buffer-file-coding-system 'chinese-iso-7bit) |
62e17ab4e33e
Use true coding system names instead of
Kenichi Handa <handa@m17n.org>
parents:
18377
diff
changeset
|
104 (set-terminal-coding-system-internal 'chinese-iso-7bit) |
62e17ab4e33e
Use true coding system names instead of
Kenichi Handa <handa@m17n.org>
parents:
18377
diff
changeset
|
105 (set-keyboard-coding-system-internal 'chinese-iso-7bit) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17315
diff
changeset
|
106 (setq sendmail-coding-system nil |
18553
62e17ab4e33e
Use true coding system names instead of
Kenichi Handa <handa@m17n.org>
parents:
18377
diff
changeset
|
107 rmail-file-coding-system 'chinese-iso-7bit) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17315
diff
changeset
|
108 |
18793
f98c1cb6b807
(setup-chinese-gb-environment): Adjusted for the change of coding
Kenichi Handa <handa@m17n.org>
parents:
18553
diff
changeset
|
109 (setq default-input-method "quail-quick-cns")) |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17315
diff
changeset
|
110 |
17052 | 111 ;; Hz/ZW encoding stuffs |
112 | |
113 ;; HZ is an encoding method for Chinese character set GB2312 used | |
114 ;; widely in Internet. It is very similar to 7-bit environment of | |
115 ;; ISO-2022. The difference is that HZ uses the sequence "~{" and | |
116 ;; "~}" for designating GB2312 and ASCII respectively, hence, it | |
117 ;; doesn't uses ESC (0x1B) code. | |
118 | |
119 ;; ZW is another encoding method for Chinese character set GB2312. It | |
120 ;; encodes Chinese characters line by line by starting each line with | |
121 ;; the sequence "zW". It also uses only 7-bit as HZ. | |
122 | |
123 ;; ISO-2022 escape sequence to designate GB2312. | |
124 (defvar iso2022-gb-designation "\e$A") | |
125 ;; HZ escape sequence to designate GB2312. | |
126 (defvar hz-gb-designnation "~{") | |
127 ;; ISO-2022 escape sequence to designate ASCII. | |
128 (defvar iso2022-ascii-designation "\e(B") | |
129 ;; HZ escape sequence to designate ASCII. | |
130 (defvar hz-ascii-designnation "~}") | |
131 ;; Regexp of ZW sequence to start GB2312. | |
132 (defvar zw-start-gb "^zW") | |
133 ;; Regexp for start of GB2312 in an encoding mixture of HZ and ZW. | |
134 (defvar hz/zw-start-gb (concat hz-gb-designnation "\\|" zw-start-gb)) | |
135 | |
136 (defvar decode-hz-line-continuation nil | |
137 "Flag to tell if we should care line continuation convention of Hz.") | |
138 | |
139 ;;;###autoload | |
140 (defun decode-hz-region (beg end) | |
141 "Decode HZ/ZW encoded text in the current region. | |
142 Return the length of resulting text." | |
143 (interactive "r") | |
144 (save-excursion | |
145 (save-restriction | |
146 (narrow-to-region beg end) | |
147 | |
18553
62e17ab4e33e
Use true coding system names instead of
Kenichi Handa <handa@m17n.org>
parents:
18377
diff
changeset
|
148 ;; We, at first, convert HZ/ZW to `iso-2022-7bit', |
17052 | 149 ;; then decode it. |
150 | |
151 ;; "~\n" -> "\n" | |
152 (goto-char (point-min)) | |
153 (while (search-forward "~" nil t) | |
154 (if (= (following-char) ?\n) (delete-char -1)) | |
155 (if (not (eobp)) (forward-char 1))) | |
156 | |
157 ;; "^zW...\n" -> Chinese GB2312 | |
158 ;; "~{...~}" -> Chinese GB2312 | |
159 (goto-char (point-min)) | |
160 (let ((chinese-found nil)) | |
161 (while (re-search-forward hz/zw-start-gb nil t) | |
162 (if (= (char-after (match-beginning 0)) ?z) | |
18553
62e17ab4e33e
Use true coding system names instead of
Kenichi Handa <handa@m17n.org>
parents:
18377
diff
changeset
|
163 ;; ZW -> iso-2022-7bit |
17052 | 164 (progn |
165 (delete-char -2) | |
166 (insert iso2022-gb-designation) | |
167 (end-of-line) | |
168 (insert iso2022-ascii-designation)) | |
18553
62e17ab4e33e
Use true coding system names instead of
Kenichi Handa <handa@m17n.org>
parents:
18377
diff
changeset
|
169 ;; HZ -> iso-2022-7bit |
17052 | 170 (delete-char -2) |
171 (insert iso2022-gb-designation) | |
172 (let ((pos (save-excursion (end-of-line) (point)))) | |
173 (if (search-forward hz-ascii-designnation pos t) | |
174 (replace-match iso2022-ascii-designation) | |
175 (if (not decode-hz-line-continuation) | |
176 (insert iso2022-ascii-designation))))) | |
177 (setq chinese-found t)) | |
178 (if (or chinese-found | |
179 (let ((enable-multibyte-characters nil)) | |
180 ;; Here we check if the text contains EUC (China) codes. | |
181 ;; If any, we had better decode them also. | |
182 (goto-char (point-min)) | |
183 (re-search-forward "[\240-\377]" nil t))) | |
17098
8917133b7e82
Remove prefix "coding-system-" from coding system symbol names.
Kenichi Handa <handa@m17n.org>
parents:
17071
diff
changeset
|
184 (decode-coding-region (point-min) (point-max) 'euc-china))) |
17052 | 185 |
186 ;; "~~" -> "~" | |
187 (goto-char (point-min)) | |
188 (while (search-forward "~~" nil t) (delete-char -1)) | |
189 (- (point-max) (point-min))))) | |
190 | |
191 ;;;###autoload | |
192 (defun decode-hz-buffer () | |
193 "Decode HZ/ZW encoded text in the current buffer." | |
194 (interactive) | |
195 (decode-hz-region (point-min) (point-max))) | |
196 | |
197 ;;;###autoload | |
198 (defun encode-hz-region (beg end) | |
199 "Encode the text in the current region to HZ. | |
200 Return the length of resulting text." | |
201 (interactive "r") | |
202 (save-excursion | |
203 (save-restriction | |
204 (narrow-to-region beg end) | |
205 | |
206 ;; "~" -> "~~" | |
207 (goto-char (point-min)) | |
208 (while (search-forward "~" nil t) (insert ?~)) | |
209 | |
210 ;; Chinese GB2312 -> "~{...~}" | |
211 (goto-char (point-min)) | |
212 (if (re-search-forward "\\cc" nil t) | |
213 (let ((enable-multibyte-characters nil) | |
214 pos) | |
215 (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
|
216 (encode-coding-region pos (point-max) 'iso-2022-7bit) |
17052 | 217 (goto-char pos) |
218 (while (search-forward iso2022-gb-designation nil t) | |
219 (delete-char -3) | |
220 (insert hz-gb-designnation)) | |
221 (goto-char pos) | |
222 (while (search-forward iso2022-ascii-designation nil t) | |
223 (delete-char -3) | |
224 (insert hz-ascii-designnation)))) | |
225 (- (point-max) (point-min))))) | |
226 | |
227 ;;;###autoload | |
228 (defun encode-hz-buffer () | |
229 "Encode the text in the current buffer to HZ." | |
230 (interactive) | |
231 (encode-hz-region (point-min) (point-max))) | |
232 | |
233 ;; | |
18309
bd8b521f5218
Provide XXX-util instead of
Kenichi Handa <handa@m17n.org>
parents:
17993
diff
changeset
|
234 (provide 'china-util) |
17052 | 235 |
236 ;;; china-util.el ends here |