Julian Bradfield writes:
Standard XEmacs doesn't support GBK. There is an add-on, but I
haven't seen whether it works, and it's a typical horrible
CCL/conversion mess.
Do you have a reference to the GBK standard offhand? I suppose I can
probably get it from GNU (pre GPLv3), anyway. In XEmacs 21.5 it's
quite simple to add character sets, and not too hard to add coding
systems, based on Unicode Consortium standard format character set
listings.
It occurred to me that it would be very easy to make a small
extension
to the ISO2022 coding systems: add a new property ('gr-gl-is-g2 or
something) that would mean: if you see a sequence c1,c2 of characters
in the GR,GL ranges, treat it as referring to (c1 & 0x7F, c2) in the
G2 charset of the coding system.
Unlikely to be accepted. The ISO 2022 coding systems already have far
too much magic of this kind, which has caused pain to people in the
past (eg, turning all the CRLFs in a tar file into LFs, with attendant
hilarity on future attempts to untar). I don't think it should be too
hard to define a proper GBK charset/coding system if that would work.
Then one would just add this property to the gb coding system, set
g2
to be a new charset representing the lower columns of GBK, and Bob's
your uncle.
(This is also, IMHO, how Big5 should have been handled.)
Big5 can't be handled that way because there is no GR, GL, or G2 in
Big5. In fact Big5 uses octets in the C1 range. This means that
autodetection won't work unless you special-case Big5 in the first
place. This is not intended to praise the Big5 handling in Mule, of
course.
Thoughts? I might well do it for myself, since nowadays I compile my
own
XEmacs everywhere anyway, but I wondered if it might be worth having
in the mainstream - in which case, I'd propose using one of the
remaining free official 2D charsets for the lower half of GBK.
--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta