unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@is.elta.co.il>
Subject: Re: getting Mule, Unicode & X selection to play together
Date: Sun, 15 Dec 2002 08:14:17 +0200 (IST)	[thread overview]
Message-ID: <Pine.SUN.3.91.1021215081001.22353F@is> (raw)
In-Reply-To: <s3adj8i1mf.fsf@cmm.kakpryg.net.cmm>


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.

  reply	other threads:[~2002-12-15  6:14 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-15  0:09 getting Mule, Unicode & X selection to play together Michael Livshin
2002-12-15  6:14 ` Eli Zaretskii [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.SUN.3.91.1021215081001.22353F@is \
    --to=eliz@is.elta.co.il \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).