From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Michael Livshin Newsgroups: gmane.emacs.help Subject: Re: getting Mule, Unicode & X selection to play together Date: Wed, 18 Dec 2002 01:02:25 +0200 Organization: The Church of God the Utterly Indifferent Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1040166380 25006 80.91.224.249 (17 Dec 2002 23:06:20 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 17 Dec 2002 23:06:20 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18OQn4-0006VC-00 for ; Wed, 18 Dec 2002 00:06:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18OQmM-0006Jk-05 for gnu-help-gnu-emacs@m.gmane.org; Tue, 17 Dec 2002 18:05:34 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!news-out.cwix.com!newsfeed.cwix.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.arcor-online.net!fu-berlin.de!uni-berlin.de!laredo.verisity.COM!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 46 Original-NNTP-Posting-Host: laredo.verisity.com (212.150.223.230) Original-X-Trace: fu-berlin.de 1040166146 1205691 212.150.223.230 (16 [72362]) Mail-copies-to: never User-Agent: Gnus/5.090007 (Oort Gnus v0.07) XEmacs/21.4 (Honest Recruiter, i686-pc-linux) Cancel-Lock: sha1:ShV8XqlvvU1JRQ7BBTjqAkHzJok= Original-Xref: shelby.stanford.edu gnu.emacs.help:108239 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:4768 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:4768 Eli Zaretskii writes: > The problem is, Emacs 21 uses two different codepoints for Cyrillic > characters: one based on ISO-8859-5, the other based on Unicode. > Conversion between them is not supported in stock Emacs distributions, > AFAIK you need either add-on packages (such as ucs-tables you can find > on gnu.emacs.sources) or the latest development code from CVS. thanks! I installed the CVS version and got everything to work. to possible future sufferers: the _key_ thing about getting anything MULE-related to work seems to be /letting go/. by any means, don't try logic! you'll spend hours in pain, you'll pull half your hair out, and it just won't work for you. my satori found me the minute I happened upon the following, in fontset.el: (defvar x-font-name-charset-alist '(... ("koi8" ascii cyrillic-iso8859-5) ...)) after seeing the above, it was a matter of slapping self on whatever passes for forehead, setting the global locale to ru_RU.KOI8-R, setting the Emacs language environment to "Cyrillic-ISO", not forgetting to explicitly map the "cyrillic-iso8859-5" encoding to an iso8859-5 font in the fontset (no sir, Emacs *won't* grok it by itself, how could it?), and voila! (OK, so as a consequence of setting the global locale to something un-Unicodelly, I won't be able to cut-n-paste in more than 2 languages at the same time. no biggie, at least cyrillics are working.) bitter unfunny sarcasm aside, Emacs 21.3.50 seems to be a *really* nice piece of work, so far. thanks all, --m -- This program posts news to billions of machines throughout the galaxy. Your message will cost the net enough to bankrupt your entire planet. As a result your species will be sold into slavery. Be sure you know what you are doing. Are you absolutely sure you want to do this? [yn] y