unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* getting Mule, Unicode & X selection to play together
@ 2002-12-15  0:09 Michael Livshin
  2002-12-15  6:14 ` Eli Zaretskii
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Michael Livshin @ 2002-12-15  0:09 UTC (permalink / raw)



so the day had come and I decided to explore the wonderful world of
Emacs 21 and Mule, what with all the nice Debian packaging of them out
there.

so I installed Emacs 21 and mule-ucs (it seemed like a good idea, or
was it?), and I've put the following into .emacs:

(set-language-environment "Cyrillic-KOI8")      ; I want my cyrillics
(define-coding-system-alias 'mule-utf-8 'utf-8)  ; per mule-ucs README
(set-keyboard-coding-system 'utf-8) ; my keyboard generates
                                    ; Unicode-encoded cyrillic chars

now, I'm mostly interested in making X selection play well between
Emacs and several Unicode-based apps (mainly Mozilla and a couple of
GTK2-based critters).

I had to play with the locale settings, to get the X clipboard to
approach at least some sanity.  so they ended up like this
(considering that I don't want the programs to speak Russian at me and
I live in Israel):

LANG=ru_RU.UTF-8
LC_CTYPE=ru_RU.UTF-8
LC_NUMERIC=he_IL
LC_TIME=he_IL
LC_COLLATE=ru_RU.UTF-8
LC_MONETARY=he_IL
LC_MESSAGES=C
LC_PAPER=C
LC_NAME=C
LC_ADDRESS=he_IL
LC_TELEPHONE=he_IL
LC_MEASUREMENT=he_IL
LC_IDENTIFICATION=ru_RU.UTF-8
LC_ALL=

if I select a chunk of cyrillic text in Emacs and paste it into
Mozilla, all is well.

now, if I select a chunk of cyrillic text in Mozilla and paste it into
Emacs, I do indeed get the same-looking text.  however, the char codes
are different from whatever Emacs itself chooses for the same entities
if I type them into it (which is just weird, but no biggie), and (as a
consequence, probably) the pasted text is shown in a different font
(which is butt ugly).

so basically I'd like Emacs to somehow recognize the cyrillic
characters in the X selection it receives, and to convert them into
the codes it itself uses for the same characters.  how do I do that?

-- 
There are few personal problems which can't be solved by the suitable
application of high explosives.

^ permalink raw reply	[flat|nested] 9+ messages in thread
[parent not found: <mailman.224.1039932883.19936.help-gnu-emacs@gnu.org>]
[parent not found: <mailman.369.1040190440.19936.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2002-12-18 10:56 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-15  0:09 getting Mule, Unicode & X selection to play together Michael Livshin
2002-12-15  6:14 ` Eli Zaretskii
2002-12-15 21:33 ` Tatsuya Kinoshita
2002-12-16  9:30 ` Roman Belenov
2002-12-16 11:21 ` Tatsuya Kinoshita
     [not found] <mailman.224.1039932883.19936.help-gnu-emacs@gnu.org>
2002-12-17 23:02 ` Michael Livshin
2002-12-18  5:47   ` Eli Zaretskii
     [not found] <mailman.369.1040190440.19936.help-gnu-emacs@gnu.org>
2002-12-18 10:44 ` Michael Livshin
2002-12-18 10:56   ` Eli Zaretskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).