> I think I have some idea - cemacs (the little lisp code that runs on
> top of cxterm which does chinese word-breakings/advancements, etc)
> also broke with emacs 23. One of the major changes in emacs 23 is
> that it does things in utf8 encoding inside now, instead of mule.
AFAIK, this is not the problem with cjk-enc.el. I suspect a buglet
somewhere (either on my side or a problem in emacs directly) which
prevents correct execution of `cjk-encode'.
Attached is a patch which should update cjk-enc.el for emacs 23 and
newer. Maybe it helps.
BTW, if you have UTF8 input, simply use CJKutf8.sty :-)
> When was the last version of emacs against which cjk-enc.el that
> worked?
Emacs 22.
Werner
======================================================================
--- cjk-enc.el 2011-09-03 21:59:11.000000000 +0200
+++ cjk-enc.el.new 2011-12-01 08:33:38.000000000 +0100
@@ -549,11 +549,43 @@
"Coding-system for LaTeX2e CJK Package"
'(mnemonic "CJK"
pre-write-conversion cjk-encode))
- (make-coding-system
- 'cjk-coding 0 ?c
- "Coding-system for LaTeX2e CJK Package"
- nil
- '((pre-write-conversion . cjk-encode))))
+ (if (< emacs-major-version 23)
+ (make-coding-system
+ 'cjk-coding 0 ?c
+ "Coding-system for LaTeX2e CJK Package"
+ nil
+ '((pre-write-conversion . cjk-encode)))
+ (define-coding-system
+ 'cjk-coding
+ "Coding-system for LaTeX2e CJK Package"
+ :mnemonic ?c
+ :coding-type 'emacs-mule
+ :charset-list '(ascii
+ latin-iso8859-1
+ latin-iso8859-2
+ latin-iso8859-3
+ latin-iso8859-4
+ cyrillic-iso8859-5
+ greek-iso8859-7
+ thai-tis620
+ vietnamese-viscii-lower
+ vietnamese-viscii-upper
+ latin-jisx0201
+ katakana-jisx0201
+ japanese-jisx0208
+ japanese-jisx0212
+ korean-ksc5601
+ chinese-gb2312
+ chinese-big5-1
+ chinese-big5-2
+ chinese-cns11643-1
+ chinese-cns11643-2
+ chinese-cns11643-3
+ chinese-cns11643-4
+ chinese-cns11643-5
+ chinese-cns11643-6
+ chinese-cns11643-7)
+ :pre-write-conversion 'cjk-encode)))
;; XEmacs doesn't have set-buffer-multibyte.
_______________________________________________
Cjk maillist - [email protected]
https://lists.ffii.org/mailman/listinfo/cjk