From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: getting Mule, Unicode & X selection to play together Date: Sun, 15 Dec 2002 08:14:17 +0200 (IST) 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 1039932929 6020 80.91.224.249 (15 Dec 2002 06:15:29 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 15 Dec 2002 06:15:29 +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 18NS3k-0001Yx-00 for ; Sun, 15 Dec 2002 07:15:28 +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 18NS3H-00015g-02 for gnu-help-gnu-emacs@m.gmane.org; Sun, 15 Dec 2002 01:14:59 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18NS2w-0000rf-00 for help-gnu-emacs@gnu.org; Sun, 15 Dec 2002 01:14:38 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18NS2n-0000Lg-00 for help-gnu-emacs@gnu.org; Sun, 15 Dec 2002 01:14:35 -0500 Original-Received: from is.elta.co.il ([199.203.121.2]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18NS2k-0008TW-00 for help-gnu-emacs@gnu.org; Sun, 15 Dec 2002 01:14:27 -0500 Original-Received: from is (is [199.203.121.2]) by is.elta.co.il (8.9.3/8.8.8) with SMTP id IAA22703 for ; Sun, 15 Dec 2002 08:14:17 +0200 (IST) X-Sender: eliz@is Original-To: help-gnu-emacs@gnu.org In-Reply-To: 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:4670 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:4670 On Sun, 15 Dec 2002, Michael Livshin wrote: > 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?) It's not necessarily a good idea to bring Mule-UCS into this equation. In any case, you will be much better off using the CVS version of Emacs where several related bugs were fixed lately. > 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). I suspect that Emacs converts the pasted text into Unicode codepoints, and that your Unicode font is ugly. What does "C-u C-x =" tell about the cyrillic characters you paste this way? > 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. 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.