unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@elta.co.il>
Subject: Re: Copying and pasting Cyrillic text between Emacs and other apps
Date: 28 Jan 2004 08:27:22 +0200	[thread overview]
Message-ID: <uk73cvb91.fsf@elta.co.il> (raw)
In-Reply-To: <36b165a.0401271516.c68fa38@posting.google.com> (paulgor@compuserve.com)

> From: paulgor@compuserve.com (Paul Gorodyansky)
> Newsgroups: gnu.emacs.help
> Date: 27 Jan 2004 15:16:48 -0800
> > 
> > I am using NT Emacs 21.3.1 on Windows XP. When I try to copy Cyrillic
> > text from some other application into an Emacs buffer, I get only
> > question marks.
> 
> Looks like Emacs is a NON-Unicode program...

What exactly is ``a Unicode program'' on Windows?  What is missing in
Emacs to DTRT with Cyrillic text in the clipboard on a Windows box
whose system codepage is not cp1251?

I'm asking because Emacs, at least the CVS version, does support
various Unicode-related encodings of text.  I tried them all in the
attempt to paste into Emacs Cyrillic text copied from another Windows
application, and I still get question marks.

My impression is that decoding of clipboard text is not the problem.
Rather, I'm guessing that Emacs fetches the clipboard text in a way
that forces Windows to try to translate it to the current system
codepage, and that this translation attempt replaces all Cyrillic
characters with question marks.  The Windows XP clipboard viewer, for
example, does show the Cyrillic text from the clipboard correctly.  So
it sounds like there is a way to fetch the text from the clipboard,
it's just that Emacs somehow doesn't do it right.

> Please see work-around explained in the Chapter 2 "Copy/Paste"
> of the "Unicode related issues" section on my site.

Alas, none of the solutions there is free software.  UniPad, in
particular, wants you to register if you want a version that isn't
limited to 1000-character documents.  So your work-arounds are not
very practical, unfortunately.

Btw, does anyone know of a tool that can show what's in the clipboard
together with how the text is encoded there?  I found several
clipboard-related utilities, but none of them seems to do what I want,
which is to show me the codepoints of each character in the clipboard.

  parent reply	other threads:[~2004-01-28  6:27 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-27  4:08 Copying and pasting Cyrillic text between Emacs and other apps eMaXer
2004-01-27 23:16 ` Paul Gorodyansky
2004-01-28  0:25   ` Jason Rumney
2004-01-28  6:33     ` Eli Zaretskii
     [not found]     ` <mailman.1484.1075271523.928.help-gnu-emacs@gnu.org>
2004-01-28  8:54       ` Jason Rumney
2004-01-28 13:36         ` Eli Zaretskii
2004-01-28 19:31         ` Paul Gorodyansky
2004-01-28 20:31           ` Jason Rumney
2004-01-29  5:29             ` Paul Gorodyansky
2004-01-29  8:54               ` Jason Rumney
     [not found]     ` <mailman.1502.1075297883.928.help-gnu-emacs@gnu.org>
2004-01-28 19:40       ` Paul Gorodyansky
2004-01-29  6:04         ` Eli Zaretskii
     [not found]     ` <mailman.1500.1075297455.928.help-gnu-emacs@gnu.org>
2004-01-28 20:28       ` Jason Rumney
2004-01-29  6:17         ` Eli Zaretskii
2004-01-28  6:27   ` Eli Zaretskii [this message]
2004-01-28  7:55     ` Eli Zaretskii
2004-01-28  9:29     ` Eli Zaretskii
     [not found]     ` <mailman.1491.1075282404.928.help-gnu-emacs@gnu.org>
2004-01-28 20:32       ` Paul Gorodyansky
2004-01-29  6:14         ` Eli Zaretskii
     [not found]   ` <mailman.1483.1075271175.928.help-gnu-emacs@gnu.org>
2004-01-28  9:01     ` Jason Rumney
2004-01-28 13:48       ` Eli Zaretskii
2004-01-28 19:45     ` Paul Gorodyansky
2004-01-28 19:57       ` Kevin Rodgers
2004-01-29  5:55       ` 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=uk73cvb91.fsf@elta.co.il \
    --to=eliz@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).