1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-23 07:19:15 +00:00
Commit Graph

53 Commits

Author SHA1 Message Date
Glenn Morris
d7a0267c8d Add 2007 to copyright years. 2007-01-21 03:53:13 +00:00
Glenn Morris
d4877ac161 Update copyright years. 2006-12-10 00:31:06 +00:00
Chong Yidong
d81608e084 * international/utf-8.el (utf-translate-cjk-load-tables): Avoid
clobbering last-coding-system-used during load.
2006-10-13 01:41:11 +00:00
Kenichi Handa
6e3b8c5dd5 (utf-8-compose): Display an invalid UTF-8 byte with `escape-glyph'
face.
2005-10-13 05:39:31 +00:00
Lute Kamstra
3a35cf56e7 Update FSF's address. 2005-07-04 17:55:18 +00:00
Kenichi Handa
2fd125a339 Fix copyrights. 2005-05-13 06:03:46 +00:00
Kim F. Storm
bf247b6ed0 Change release version from 21.4 to 22.1 throughout.
Change development version from 21.3.50 to 22.0.50.
2005-02-09 15:50:47 +00:00
Kenichi Handa
e314a6e4fe (utf-translate-cjk-load-tables): Bind
coding-system-for-read to nil while loading subst-*.
2004-12-27 06:13:15 +00:00
Kenichi Handa
7d9d5480e3 (utf-translate-cjk-charsets): Add katakana-jisx0201. 2004-10-28 02:00:28 +00:00
Kenichi Handa
3ccf95cb1a (ccl-decode-mule-utf-8): Check utf-subst-table-for-decode for more
Unicode ranges.
2004-10-27 12:50:22 +00:00
Kenichi Handa
fce59e4038 (utf-translate-cjk-unicode-range-string):
New variable.
(utf-translate-cjk-set-unicode-range): New function.
(utf-translate-cjk-unicode-range): Make it customizable.
(utf-8-post-read-conversion): Use
utf-translate-cjk-unicode-range-string.
2004-10-27 06:01:59 +00:00
Kenichi Handa
11d2e01ba3 (utf-8-post-read-conversion): If the
buffer is unibyte, temporarily set it multibyte.
2004-08-27 00:25:59 +00:00
Luc Teirlinck
4bcce19cc1 (utf-translate-cjk-mode): Doc fix. 2004-07-31 03:31:28 +00:00
Kenichi Handa
c1136bda63 (ccl-encode-mule-utf-8): Fix previous change. 2004-06-13 22:57:46 +00:00
Kenichi Handa
064cff0b3d (ccl-decode-mule-utf-8): Fix previous change.
(ccl-untranslated-to-ucs): Fix typo.
2004-06-13 00:21:39 +00:00
Kenichi Handa
c71c26e929 (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.
2004-06-12 02:10:37 +00:00
Andreas Schwab
9e24a165fe Fix references to utf-translate-cjk into utf-translate-cjk-mode. 2004-05-08 14:36:07 +00:00
Eli Zaretskii
81639ac327 UTF-8 is now RFC 3629. 2004-03-07 19:55:42 +00:00
Kenichi Handa
98fe1969ff (ccl-decode-mule-utf-8): Lookup
utf-subst-table-for-decode even for U+E000..U+FFFF.
2003-10-02 00:50:33 +00:00
Kenichi Handa
dedc16d429 (utf-8-post-read-conversion): Call post-read-conversion functions for
Devanagari, Malayalam, and Tamil.
2003-09-17 06:43:36 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Dave Love
e7d063be4f (ucs-unicode-to-mule-cjk): Use smaller
:size.
2003-08-20 18:44:59 +00:00
Kenichi Handa
72b338a277 (utf-translate-cjk-mode): Fix docstring. 2003-06-21 02:24:14 +00:00
Kenichi Handa
2bf07f07f7 (utf-translate-cjk-mode): Update the
second extra slot of the translation table
utf-translation-table-for-encode.
(mule-utf-8): Set the property translation-table-for-encode.
2003-05-01 04:39:07 +00:00
Kenichi Handa
aea797fc6e (utf-translate-cjk-mode): Fix incorrect
place of parenthesis.
2003-04-11 11:10:48 +00:00
Kai Großjohann
fcfdeaf69d (utf-translate-cjk-mode): Minor mode,
replaces variable utf-translate-cjk which must be set via Custom.
2003-03-29 17:11:42 +00:00
Kenichi Handa
76b7fded09 (ccl-decode-mule-utf-8): Fix a bug of
invalid 5 to 6 bytes sequence.
2003-03-19 23:36:15 +00:00
Kenichi Handa
535665b85b (utf-fragment-on-decoding): Don't call
register-char-codings.
(utf-fragment-on-decoding): Don't update char-coding-system-table.
(utf-translate-cjk): Don't call register-char-codings nor
optimize-char-coding-system-table.  Don't update
char-coding-system-table.
2003-03-18 04:06:48 +00:00
Kenichi Handa
67ff221682 (ccl-decode-mule-utf-8): Don't loose
bytes on handling an invalid byte sequence.
2003-03-12 00:46:32 +00:00
Juanma Barranquero
a1506d2977 Trailing whitepace deleted. 2003-02-04 13:24:35 +00:00
Dave Love
13d472b871 (utf-translate-cjk): Call
optimize-char-coding-system-table.
2003-01-03 20:12:51 +00:00
Dave Love
0c8410d509 (ucs-mule-cjk-to-unicode)
(ucs-unicode-to-mule-cjk): Revert last change.
(utf-subst-table-for-encode): Initially use
ucs-mule-cjk-to-unicode.
(utf-subst-table-for-decode): Initially use
ucs-unicode-to-mule-cjk.
(utf-fragment-on-decoding, utf-translate-cjk): Don't modify
char-coding-system-table elements destructively.
(utf-translate-cjk): Set ucs-mule-cjk-to-unicode,
ucs-unicode-to-mule-cjk to new hash tables with realistic
parameters.
2002-12-17 17:58:13 +00:00
Dave Love
ccdd5c6187 (ucs-mule-cjk-to-unicode)
(utf-subst-table-for-encode, ucs-unicode-to-mule-cjk)
(utf-subst-table-for-decode): Specify :size, :rehash-size.
(utf-translate-cjk): :set rewritten to load subst-... files.  Add
:set-after.
(ccl-decode-mule-utf-8): Consider CJK translation for r3<#x3400.
2002-12-15 16:46:00 +00:00
Kenichi Handa
1ee5b52092 (ccl-decode-mule-utf-8): Remove unnecessary line. 2002-10-01 06:03:46 +00:00
Kenichi Handa
ad88f5c5c7 (ucs-mule-to-mule-unicode): Don't define
this translation-table name here.
(utf-translation-table-for-encode): New translation-table name.
(utf-fragmentation-table): Renamed from utf-8-fragmentation-table.
(utf-defragmentation-table): New variable.
(ucs-mule-cjk-to-unicode): Renamed from utf-8-subst-rev-table.
(utf-subst-table-for-encode): New translation-table name.
(ucs-unicode-to-mule-cjk): Renamed from utf-8-subst-table.
(utf-subst-table-for-decode): New translation-table name.
(utf-fragment-on-decoding): Renamed from
utf-8-fragment-on-decoding.  Correctly handle the case that
unify-8859-on-encoding-mode is off.  Handle mule-utf-16-le and
mule-utf-16-be too.
(utf-translate-cjk): Renamed from utf-8-translate-cjk.  Handle
mule-utf-16-le and mule-utf-16-be too.
(ccl-decode-mule-utf-8): Refer to utf-translation-table-for-decode
and utf-subst-table-for-decode.
(ccl-encode-mule-utf-8): Refer to utf-translation-table-for-encode
and utf-subst-table-for-encode.
(mule-utf-8): Fix `safe-charsets' property, put `dependency'
property.
2002-09-30 06:35:13 +00:00
Dave Love
edeabf087f (utf-8-fragment-on-decoding): Fix last
change.
2002-09-11 20:57:50 +00:00
Dave Love
988b5a141b (ucs-mule-to-mule-unicode): Define
unconditionally.
(utf-8-fragmentation-table): New.  Use it in top-level mapc.
(utf-8-fragment-on-decoding): Use it to keep
utf-8-translation-table-for-decode variable and translation table
in sync.
2002-09-10 17:39:35 +00:00
Kenichi Handa
3873f5a52e *** empty log message *** 2002-09-05 00:27:49 +00:00
Dave Love
e65186d5b2 comment 2002-07-24 22:23:44 +00:00
Dave Love
9ca2ac2dbd (utf-8-subst-table)
(utf-8-subst-rev-table, utf-8-translation-table-for-decode)
(utf-8-fragment-on-decoding, ccl-untranslated-to-ucs)
(utf-8-ccl-regs, utf-8-translate-cjk): New.
(ccl-encode-mule-utf-8): Use utf-8-subst-rev-table.
(ccl-decode-mule-utf-8, ccl-untranslated-to-ucs)
(utf-8-untranslated-to-ucs, utf-8-compose): Rewritten.
(mule-utf-8): Remove pre-write-conversion.
(utf-8-post-read-conversion): Comment out.
2002-07-17 15:04:25 +00:00
Pavel Janík
db5968a489 Fix typo. 2002-04-06 10:44:36 +00:00
Pavel Janík
4efe23fc4c Fix the first line (coding spec). 2001-12-11 12:02:33 +00:00
Stefan Monnier
0a7ef20a6b Capitalization in comment. 2001-12-07 16:29:47 +00:00
Dave Love
aa2e3f49f3 (ucs-mule-to-mule-unicode): New
translation table.
(ccl-encode-mule-utf-8): Use it.
(utf-8-untranslated-to-ucs, utf-8-help-echo, utf-8-compose)
(utf-8-post-read-conversion, utf-8-pre-write-conversion): New
function.
(utf-8-subst-table): New variable.
(utf-8-compose-scripts): New option.
(mule-utf-8): Update safe-charsets, pre-write and post-read
conversion.
2001-12-07 14:26:02 +00:00
Pavel Janík
e8af40eed4 Some fixes to follow coding conventions. 2001-07-16 12:23:00 +00:00
Gerd Moellmann
3d0e328b95 (ccl-decode-mule-utf-8): Handle
invalid UTF-8 sequences.
2001-05-29 08:41:02 +00:00
Kenichi Handa
aa15b3e5a6 (ccl-encode-mule-utf-8): Fix handling of eight-bit-control chars. 2001-03-30 12:18:01 +00:00
Kenichi Handa
203682cccc *** empty log message *** 2001-03-05 07:21:30 +00:00
Dave Love
74ace46ab1 Doc fixes. 2001-03-01 18:14:39 +00:00
Kenichi Handa
75f6d72325 (mule-utf-8): Set coding-category property to coding-category-utf-8. 2001-02-28 05:50:44 +00:00