(utf-translate-cjk-charsets): New
commitc71c26e9295573509ceaa468ea973299a8b311e1
authorKenichi Handa <handa@m17n.org>
Sat, 12 Jun 2004 02:10:37 +0000 (12 02:10 +0000)
committerKenichi Handa <handa@m17n.org>
Sat, 12 Jun 2004 02:10:37 +0000 (12 02:10 +0000)
treebea8ba45657f2c84350359f97f0eeeec84d7d38d
parent7805cdbd4f39ef8904b68f687be8715306910769
(utf-translate-cjk-charsets): New
variable.
(utf-translate-cjk-unicode-range): New variable.
(utf-translate-cjk-load-tables): New function.
(utf-lookup-subst-table-for-decode): New function.
(utf-lookup-subst-table-for-encode): New function.
(utf-translate-cjk-mode): Init-value changed to t.  Don't load
tables here.  Update safe-charsets of utf-* coding systems.
(ccl-mule-utf-untrans): New CCL.
(ccl-decode-mule-utf-8): Call ccl-mule-utf-untrans.  Use `repeat'
at end of each branch.
(ccl-mule-utf-8-encode-untrans): New CCL.
(ccl-encode-mule-utf-8): Call ccl-mule-utf-8-encode-untrans.
(ccl-untranslated-to-ucs): Handle 2-byte encoding.  Set r1 to the
length of encoding.  Don't return r0.
(utf-8-compose): New arg hash-table.  Handle 2-byte encoding.
(utf-8-post-read-conversion): Narrow to region properly.  If
utf-translate-cjk-mode is on, load tables if necessary.  Call
utf-8-compose with hash-table arg if necessary.  Call
XXX-compose-region instead of XXX-post-read-convesion.
(utf-8-pre-write-conversion): New function.
(mule-utf-8): Include CJK charsets in safe-charsets if
utf-translate-cjk-mode is on.  Add pre-write-conversion.
lisp/international/utf-8.el