Re: Problems with Polish input method (additional info to the list discussion found on the net)

"Stephen J. Turnbull" <[email protected]> Tue, 10 Aug 2004 18:09:03 +0900
Newsgroups gmane.emacs.xemacs.mule
Organization The XEmacs Project
Message-ID <[email protected]>
>>>>> "Jakub" =3D=3D Jakub Nadolny <[email protected]> writes:

    Jakub> Same problem occures in next versions of XEmacs - now I use
    Jakub> 21.4.15 with the same result - second script works fine, but -
    Jakub> when I enter polish "o" character (alt+o) then in file it is
    Jakub> written as "^[-A=F3^[-B", while the other letters are written

This has to be Mule, XEmacs no-mule can't produce those escape
sequences (unless you enter them literally, of course).

    Jakub> properly as ISO-8859-2 without additional tags like "^[-A".
    Jakub> Coding system of buffer file I have set to "iso-8859-2".

This is because the input method is sending the code 0xf3 to Emacs,
which interprets as a Latin-1 character.  X Windows _must_ do this,
there is no keysym for "Polish o", only for "LOWERCASE LATIN LETTER O
WITH ACUTE" which is common between Latin-1 and Latin-2.  However, for
those letters that are ONLY in Latin-2, they have a Latin-2 keysym
which XEmacs recognizes correctly.

What does M-x describe-language-environment RET say?  If not "Polish",
use M-x set-language-environment to set it to Polish.  This should
automatically be set from the LANG environment variable, though.

Possible workarounds:

(1) Put (set-keyboard-coding-system 'iso-8859-2) in init.el.

    This may not work in 21.4.

(2) Put (latin-unity-install) in init.el.

    This will work, and has the advantage that it will catch other
    such strangeness besides from keyboard input.  It may be a little
    annoying to configure, though.

(Both functions are interactive commands, so you can try them out with
M-x ... .  For the second, you need the latin-unity package installed.)



--=20
Institute of Policy and Planning Sciences     http://turnbull.sk.tsukuba.=
ac.jp
University of Tsukuba                    Tennodai 1-1-1 Tsukuba 305-8573 =
JAPAN
               Ask not how you can "do" free software business;
              ask what your business can "do for" free software.