>>>> "MB" == Martin Buchholz
<martin(a)xemacs.org> writes:
MB> This model of computing is a very common one in the world of
MB> character sets smaller than 128.
MB> It's a very "low-tech" way of achieving a multi-lingual editor.
That's exactly what we need. High-tech is already implemented and is
called Mule :)
MB> You can have a function that sets the font for a default face for
MB> a buffer by using specifiers with
MB> (set-face-font 'default "*koi8" (current-buffer))
That won't work because your buffer will have one-byte characters in
8859-5, and there is no way in non-Mule to have different font
encoding and characters encoding. Moreover, your files will be in
8859-5 encoding. Moreover, you could not open koi8-r file and edit
it.
Same shi^Wthing happens for some other languages I'm said (AFAIK,
Czech have five commonly-used one-byte encodings, that's why Russian
Apache is so popular there).
MB> This allows you to implement the command
MB> (defun toggle-cyrillic-mode (&optional buffer) (interactive) ...)
MB> this technique, combined with the keyboard-translate or
MB> function-key-map mechanisms (and xmodmap, of course), allows you
MB> to have a complete russian (or ukranian, or hungarian, etc.)
MB> environment with very little lisp hacking.
I just want to reuse code that's already there. Your code :)
--alexm