(latexenc-find-file-coding-system): Don't inherit the EOL part of the
[emacs.git] / lisp / language / japan-util.el
blob81a40a9c4501d64465d2943a11e2414cd7ca0691
1 ;;; japan-util.el --- utilities for Japanese -*- coding: iso-2022-7bit; -*-
3 ;; Copyright (C) 2001 Free Software Foundation, Inc.
4 ;; Copyright (C) 1995, 1998, 2000, 2003
5 ;; National Institute of Advanced Industrial Science and Technology (AIST)
6 ;; Registration Number H14PRO021
8 ;; Keywords: mule, multilingual, Japanese
10 ;; This file is part of GNU Emacs.
12 ;; GNU Emacs is free software; you can redistribute it and/or modify
13 ;; it under the terms of the GNU General Public License as published by
14 ;; the Free Software Foundation; either version 2, or (at your option)
15 ;; any later version.
17 ;; GNU Emacs is distributed in the hope that it will be useful,
18 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 ;; GNU General Public License for more details.
22 ;; You should have received a copy of the GNU General Public License
23 ;; along with GNU Emacs; see the file COPYING. If not, write to the
24 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
25 ;; Boston, MA 02111-1307, USA.
27 ;;; Commentary:
29 ;;; Code:
31 ;;;###autoload
32 (defun setup-japanese-environment-internal ()
33 ;; By default, we use 'japanese-iso-8bit for file names. But, the
34 ;; following prefer-coding-system will override it.
35 (if (memq system-type '(windows-nt ms-dos cygwin))
36 (prefer-coding-system 'japanese-shift-jis)
37 (prefer-coding-system 'japanese-iso-8bit)))
39 (defconst japanese-kana-table
40 '((?\e$B$"\e(B ?\e$B%"\e(B ?\e(I1\e(B) (?\e$B$$\e(B ?\e$B%$\e(B ?\e(I2\e(B) (?\e$B$&\e(B ?\e$B%&\e(B ?\e(I3\e(B) (?\e$B$(\e(B ?\e$B%(\e(B ?\e(I4\e(B) (?\e$B$*\e(B ?\e$B%*\e(B ?\e(I5\e(B)
41 (?\e$B$+\e(B ?\e$B%+\e(B ?\e(I6\e(B) (?\e$B$-\e(B ?\e$B%-\e(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I\e(B "\e(ID^\e(B")
54 (?\e$B$P\e(B ?\e$B%P\e(B "\e(IJ^\e(B") (?\e$B$S\e(B ?\e$B%S\e(B "\e(IK^\e(B") (?\e$B$V\e(B ?\e$B%V\e(B "\e(IL^\e(B") (?\e$B$Y\e(B ?\e$B%Y\e(B "\e(IM^\e(B") (?\e$B$\\e(B ?\e$B%\\e(B "\e(IN^\e(B")
55 (?\e$B$Q\e(B ?\e$B%Q\e(B "\e(IJ_\e(B") (?\e$B$T\e(B ?\e$B%T\e(B "\e(IK_\e(B") (?\e$B$W\e(B ?\e$B%W\e(B "\e(IL_\e(B") (?\e$B$Z\e(B ?\e$B%Z\e(B "\e(IM_\e(B") (?\e$B$]\e(B ?\e$B%]\e(B "\e(IN_\e(B")
56 (?\e$B$!\e(B ?\e$B%!\e(B ?\e(I'\e(B) (?\e$B$#\e(B ?\e$B%#\e(B ?\e(I(\e(B) (?\e$B$%\e(B ?\e$B%%\e(B ?\e(I)\e(B) (?\e$B$'\e(B ?\e$B%'\e(B ?\e(I*\e(B) (?\e$B$)\e(B ?\e$B%)\e(B ?\e(I+\e(B)
57 (?\e$B$C\e(B ?\e$B%C\e(B ?\e(I/\e(B)
58 (?\e$B$c\e(B ?\e$B%c\e(B ?\e(I,\e(B) (?\e$B$e\e(B ?\e$B%e\e(B ?\e(I-\e(B) (?\e$B$g\e(B ?\e$B%g\e(B ?\e(I.\e(B)
59 (?\e$B$n\e(B ?\e$B%n\e(B "\e(I\\e(B")
60 ("\e$B$&!+\e(B" ?\e$B%t\e(B "\e(I3^\e(B") (nil ?\e$B%u\e(B "\e(I6\e(B") (nil ?\e$B%v\e(B "\e(I9\e(B"))
61 "Japanese JISX0208 Kana character table.
62 Each element is of the form (HIRAGANA KATAKANA HANKAKU-KATAKANA), where
63 HIRAGANA and KATAKANA belong to `japanese-jisx0208',
64 HANKAKU-KATAKANA belongs to `japanese-jisx0201-kana'.")
66 ;; Put properties 'katakana, 'hiragana, and 'jix0201 to each Japanese
67 ;; kana characters for conversion among them.
68 (let ((l japanese-kana-table)
69 slot hiragana katakana jisx0201)
70 (while l
71 (setq slot (car l)
72 hiragana (car slot) katakana (nth 1 slot) jisx0201 (nth 2 slot)
73 l (cdr l))
74 (if hiragana
75 (if (stringp hiragana)
76 (if (> (length hiragana) 1)
77 (let ((hira (aref hiragana 0)))
78 (put-char-code-property
79 hira 'kana-composition
80 (cons (cons (aref hiragana 1) katakana)
81 (get-char-code-property hira 'kana-composition)))))
82 (put-char-code-property hiragana 'katakana katakana)
83 (put-char-code-property hiragana 'jisx0201 jisx0201)))
84 (when (integerp katakana)
85 (put-char-code-property katakana 'hiragana hiragana)
86 (put-char-code-property katakana 'jisx0201 jisx0201))
87 (if jisx0201
88 (if (stringp jisx0201)
89 (if (> (length jisx0201) 1)
90 (let ((kana (aref jisx0201 0)))
91 (put-char-code-property
92 kana 'kana-composition
93 (cons (cons (aref jisx0201 1) katakana)
94 (get-char-code-property kana 'kana-composition)))))
95 (put-char-code-property jisx0201 'hiragana hiragana)
96 (put-char-code-property jisx0201 'katakana katakana)
97 (put-char-code-property jisx0201 'jisx0208 katakana)))))
99 (defconst japanese-symbol-table
100 '((?\\e$B!!\e(B ?\ ) (?\e$B!$\e(B ?, ?\e(I$\e(B) (?\e$B!%\e(B ?. ?\e(I!\e(B) (?\e$B!"\e(B ?, ?\e(I$\e(B) (?\e$B!#\e(B ?. ?\e(I!\e(B) (?\e$B!&\e(B nil ?\e(I%\e(B)
101 (?\e$B!'\e(B ?:) (?\e$B!(\e(B ?\;) (?\e$B!)\e(B ??) (?\e$B!*\e(B ?!) (?\e$B!+\e(B nil ?\e(I^\e(B) (?\e$B!,\e(B nil ?\e(I_\e(B)
102 (?\e$B!-\e(B ?') (?\e$B!.\e(B ?`) (?\e$B!0\e(B ?^) (?\e$B!2\e(B ?_) (?\e$B!<\e(B ?- ?\e(I0\e(B) (?\e$B!=\e(B ?-) (?\e$B!>\e(B ?-)
103 (?\e$B!?\e(B ?/) (?\e$B!@\e(B ?\\) (?\e$B!A\e(B ?~) (?\e$B!C\e(B ?|) (?\e$B!F\e(B ?`) (?\e$B!G\e(B ?') (?\e$B!H\e(B ?\") (?\e$B!I\e(B ?\")
104 (?\\e$B!J\e(B ?\() (?\\e$B!K\e(B ?\)) (?\\e$B!N\e(B ?[) (?\\e$B!O\e(B ?]) (?\\e$B!P\e(B ?{) (?\\e$B!Q\e(B ?})
105 (?\e$B!R\e(B ?<) (?\e$B!S\e(B ?>) (?\\e$B!V\e(B nil ?\\e(I"\e(B) (?\\e$B!W\e(B nil ?\\e(I#\e(B)
106 (?\e$B!\\e(B ?+) (?\e$B!]\e(B ?-) (?\e$B!a\e(B ?=) (?\e$B!c\e(B ?<) (?\e$B!d\e(B ?>)
107 (?\e$B!l\e(B ?') (?\e$B!m\e(B ?\") (?\e$B!o\e(B ?\\) (?\e$B!p\e(B ?$) (?\e$B!s\e(B ?%) (?\e$B!t\e(B ?#) (?\e$B!u\e(B ?&) (?\e$B!v\e(B ?*)
108 (?\e$B!w\e(B ?@))
109 "Japanese JISX0208 symbol character table.
110 Each element is of the form (SYMBOL ASCII HANKAKU), where SYMBOL
111 belongs to `japanese-jisx0208', ASCII belongs to `ascii', and HANKAKU
112 belongs to `japanese-jisx0201-kana'.")
114 ;; Put properties 'jisx0208, 'jisx0201, and 'ascii to each Japanese
115 ;; symbol and ASCII characters for conversion among them.
116 (let ((l japanese-symbol-table)
117 slot jisx0208 ascii jisx0201)
118 (while l
119 (setq slot (car l)
120 jisx0208 (car slot) ascii (nth 1 slot) jisx0201 (nth 2 slot)
121 l (cdr l))
122 (if ascii
123 (progn
124 (put-char-code-property jisx0208 'ascii ascii)
125 (put-char-code-property ascii 'jisx0208 jisx0208)))
126 (if jisx0201
127 (progn
128 (put-char-code-property jisx0208 'jisx0201 jisx0201)
129 (put-char-code-property jisx0201 'jisx0208 jisx0208)))))
131 (defconst japanese-alpha-numeric-table
132 '((?\e$B#0\e(B . ?0) (?\e$B#1\e(B . ?1) (?\e$B#2\e(B . ?2) (?\e$B#3\e(B . ?3) (?\e$B#4\e(B . ?4)
133 (?\e$B#5\e(B . ?5) (?\e$B#6\e(B . ?6) (?\e$B#7\e(B . ?7) (?\e$B#8\e(B . ?8) (?\e$B#9\e(B . ?9)
134 (?\e$B#A\e(B . ?A) (?\e$B#B\e(B . ?B) (?\e$B#C\e(B . ?C) (?\e$B#D\e(B . ?D) (?\e$B#E\e(B . ?E)
135 (?\e$B#F\e(B . ?F) (?\e$B#G\e(B . ?G) (?\e$B#H\e(B . ?H) (?\e$B#I\e(B . ?I) (?\e$B#J\e(B . ?J)
136 (?\e$B#K\e(B . ?K) (?\e$B#L\e(B . ?L) (?\e$B#M\e(B . ?M) (?\e$B#N\e(B . ?N) (?\e$B#O\e(B . ?O)
137 (?\e$B#P\e(B . ?P) (?\e$B#Q\e(B . ?Q) (?\e$B#R\e(B . ?R) (?\e$B#S\e(B . ?S) (?\e$B#T\e(B . ?T)
138 (?\e$B#U\e(B . ?U) (?\e$B#V\e(B . ?V) (?\e$B#W\e(B . ?W) (?\e$B#X\e(B . ?X) (?\e$B#Y\e(B . ?Y) (?\e$B#Z\e(B . ?Z)
139 (?\e$B#a\e(B . ?a) (?\e$B#b\e(B . ?b) (?\e$B#c\e(B . ?c) (?\e$B#d\e(B . ?d) (?\e$B#e\e(B . ?e)
140 (?\e$B#f\e(B . ?f) (?\e$B#g\e(B . ?g) (?\e$B#h\e(B . ?h) (?\e$B#i\e(B . ?i) (?\e$B#j\e(B . ?j)
141 (?\e$B#k\e(B . ?k) (?\e$B#l\e(B . ?l) (?\e$B#m\e(B . ?m) (?\e$B#n\e(B . ?n) (?\e$B#o\e(B . ?o)
142 (?\e$B#p\e(B . ?p) (?\e$B#q\e(B . ?q) (?\e$B#r\e(B . ?r) (?\e$B#s\e(B . ?s) (?\e$B#t\e(B . ?t)
143 (?\e$B#u\e(B . ?u) (?\e$B#v\e(B . ?v) (?\e$B#w\e(B . ?w) (?\e$B#x\e(B . ?x) (?\e$B#y\e(B . ?y) (?\e$B#z\e(B . ?z))
144 "Japanese JISX0208 alpha numeric character table.
145 Each element is of the form (ALPHA-NUMERIC ASCII), where ALPHA-NUMERIC
146 belongs to `japanese-jisx0208', ASCII belongs to `ascii'.")
148 ;; Put properties 'jisx0208 and 'ascii to each Japanese alpha numeric
149 ;; and ASCII characters for conversion between them.
150 (let ((l japanese-alpha-numeric-table)
151 slot jisx0208 ascii)
152 (while l
153 (setq slot (car l)
154 jisx0208 (car slot) ascii (cdr slot)
155 l (cdr l))
156 (put-char-code-property jisx0208 'ascii ascii)
157 (put-char-code-property ascii 'jisx0208 jisx0208)))
159 ;; Convert string STR by FUNC and return a resulting string.
160 (defun japanese-string-conversion (str func &rest args)
161 (let ((buf (get-buffer-create " *Japanese work*")))
162 (save-excursion
163 (set-buffer buf)
164 (erase-buffer)
165 (insert str)
166 (apply func 1 (point) args)
167 (buffer-string))))
169 ;;;###autoload
170 (defun japanese-katakana (obj &optional hankaku)
171 "Convert argument to Katakana and return that.
172 The argument may be a character or string. The result has the same type.
173 The argument object is not altered--the value is a copy.
174 Optional argument HANKAKU t means to convert to `hankaku' Katakana
175 \(`japanese-jisx0201-kana'), in which case return value
176 may be a string even if OBJ is a character if two Katakanas are
177 necessary to represent OBJ."
178 (if (stringp obj)
179 (japanese-string-conversion obj 'japanese-katakana-region hankaku)
180 (or (get-char-code-property obj (if hankaku 'jisx0201 'katakana))
181 obj)))
183 ;;;###autoload
184 (defun japanese-hiragana (obj)
185 "Convert argument to Hiragana and return that.
186 The argument may be a character or string. The result has the same type.
187 The argument object is not altered--the value is a copy."
188 (if (stringp obj)
189 (japanese-string-conversion obj 'japanese-hiragana-region)
190 (or (get-char-code-property obj 'hiragana)
191 obj)))
193 ;;;###autoload
194 (defun japanese-hankaku (obj &optional ascii-only)
195 "Convert argument to `hankaku' and return that.
196 The argument may be a character or string. The result has the same type.
197 The argument object is not altered--the value is a copy.
198 Optional argument ASCII-ONLY non-nil means to return only ASCII character."
199 (if (stringp obj)
200 (japanese-string-conversion obj 'japanese-hankaku-region ascii-only)
201 (or (and (not ascii-only)
202 (get-char-code-property obj 'jisx0201))
203 (get-char-code-property obj 'ascii)
204 obj)))
206 ;;;###autoload
207 (defun japanese-zenkaku (obj)
208 "Convert argument to `zenkaku' and return that.
209 The argument may be a character or string. The result has the same type.
210 The argument object is not altered--the value is a copy."
211 (if (stringp obj)
212 (japanese-string-conversion obj 'japanese-zenkaku-region)
213 (or (get-char-code-property obj 'jisx0208)
214 obj)))
216 (defun japanese-replace-region (from to string)
217 "Replace the region specified by FROM and TO to STRING."
218 (goto-char from)
219 (insert string)
220 (delete-char (- to from)))
222 ;;;###autoload
223 (defun japanese-katakana-region (from to &optional hankaku)
224 "Convert Japanese `hiragana' chars in the region to `katakana' chars.
225 Optional argument HANKAKU t means to convert to `hankaku katakana' character
226 of which charset is `japanese-jisx0201-kana'."
227 (interactive "r\nP")
228 (save-restriction
229 (narrow-to-region from to)
230 (save-excursion
231 (goto-char (point-min))
232 (while (re-search-forward "\\cH\\|\\cK" nil t)
233 (let* ((kana (preceding-char))
234 (composition
235 (and (not hankaku)
236 (get-char-code-property kana 'kana-composition)))
237 next slot)
238 (if (and composition (setq slot (assq (following-char) composition)))
239 (japanese-replace-region (match-beginning 0) (1+ (point))
240 (cdr slot))
241 (let ((kata (get-char-code-property
242 kana (if hankaku 'jisx0201 'katakana))))
243 (if kata
244 (japanese-replace-region (match-beginning 0) (point)
245 kata)))))))))
248 ;;;###autoload
249 (defun japanese-hiragana-region (from to)
250 "Convert Japanese `katakana' chars in the region to `hiragana' chars."
251 (interactive "r")
252 (save-restriction
253 (narrow-to-region from to)
254 (save-excursion
255 (goto-char (point-min))
256 (while (re-search-forward "\\cK\\|\\ck" nil t)
257 (let* ((kata (preceding-char))
258 (composition (get-char-code-property kata 'kana-composition))
259 next slot)
260 (if (and composition (setq slot (assq (following-char) composition)))
261 (japanese-replace-region (match-beginning 0) (1+ (point))
262 (get-char-code-property
263 (cdr slot) 'hiragana))
264 (let ((hira (get-char-code-property kata 'hiragana)))
265 (if hira
266 (japanese-replace-region (match-beginning 0) (point)
267 hira)))))))))
269 ;;;###autoload
270 (defun japanese-hankaku-region (from to &optional ascii-only)
271 "Convert Japanese `zenkaku' chars in the region to `hankaku' chars.
272 `Zenkaku' chars belong to `japanese-jisx0208'
273 `Hankaku' chars belong to `ascii' or `japanese-jisx0201-kana'.
274 Optional argument ASCII-ONLY non-nil means to convert only to ASCII char."
275 (interactive "r\nP")
276 (save-restriction
277 (narrow-to-region from to)
278 (save-excursion
279 (goto-char (point-min))
280 (while (re-search-forward "\\cj" nil t)
281 (let* ((zenkaku (preceding-char))
282 (hankaku (or (and (not ascii-only)
283 (get-char-code-property zenkaku 'jisx0201))
284 (get-char-code-property zenkaku 'ascii))))
285 (if hankaku
286 (japanese-replace-region (match-beginning 0) (match-end 0)
287 hankaku)))))))
289 ;;;###autoload
290 (defun japanese-zenkaku-region (from to &optional katakana-only)
291 "Convert hankaku' chars in the region to Japanese `zenkaku' chars.
292 `Zenkaku' chars belong to `japanese-jisx0208'
293 `Hankaku' chars belong to `ascii' or `japanese-jisx0201-kana'.
294 Optional argument KATAKANA-ONLY non-nil means to convert only KATAKANA char."
295 (interactive "r\nP")
296 (save-restriction
297 (narrow-to-region from to)
298 (save-excursion
299 (goto-char (point-min))
300 (while (or (and katakana-only
301 (re-search-forward "\\ck" nil t))
302 (and (not katakana-only)
303 (re-search-forward "\\ca\\|\\ck" nil t)))
304 (let* ((hankaku (preceding-char))
305 (composition (get-char-code-property hankaku 'kana-composition))
306 next slot)
307 (if (and composition (setq slot (assq (following-char) composition)))
308 (japanese-replace-region (match-beginning 0) (1+ (point))
309 (cdr slot))
310 (let ((zenkaku (japanese-zenkaku hankaku)))
311 (if zenkaku
312 (japanese-replace-region (match-beginning 0) (match-end 0)
313 zenkaku)))))))))
315 ;;;###autoload
316 (defun read-hiragana-string (prompt &optional initial-input)
317 "Read a Hiragana string from the minibuffer, prompting with string PROMPT.
318 If non-nil, second arg INITIAL-INPUT is a string to insert before reading."
319 (read-multilingual-string prompt initial-input "japanese-hiragana"))
322 (provide 'japan-util)
324 ;;; arch-tag: b579595c-c9ad-4b57-9314-98cd8b214f89
325 ;;; japan-util.el ends here