Tuesday, 8 May
2001
Tue, 8 May
'01
9:44 p.m.
Salam,
there is a very annoying issue when using non-Mule XEmacsen in
Cyrillic environments under X with xkb. src/event-Xt.c contains
x_keysym_to_character() which translates Cyrillic_XXX to one-byte
character code (also used by Mule). Without Mule it always produces
iso8859-5 characters, which is very annoying because in fact this
charset is very rarely used in Russia.
Various horrible hacks float around, e.g.:
(global-set-key [(Cyrillic_HARDSIGN)]
'(lambda ()
(interactive)
(insert "\xFF")))
and so on for every Cyrillic_XXX. This looks horrible, does not work
with isearch and is otherwise unacceptable, though widely used :) Some
decide to disable Xkb. Some try to switch to Mule, but get stuck with
font encoding problem we've been fixing recently :)
I think I'll try to implement
(set-xkb-cyrillic-charset "koi8-r") ;; also "iso8859-5" (default),
;; "windows-1251" and "cp866"
that switches cyrillic[] array used by that function.
I've already got some approval of this idea and encouragement by some
local XEmacs users. Hope to have patch available very soon.
--alexm