unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: Unicode feature requests for next version
Date: Fri, 17 Jun 2005 09:38:59 +0300	[thread overview]
Message-ID: <87r7f1k8qq.fsf@jurta.org> (raw)
In-Reply-To: <42AE5645.3060709@vilain.net> (Sam Vilain's message of "Tue, 14 Jun 2005 16:00:05 +1200")

> Would it be possible to get a hotkey bound to ucs-insert?
> I'm thinking C-# would be a good candidate.

I have a patch that allows C-q (`quoted-insert') to read Unicode codes
and insert them using `ucs-insert' function.  The usage is very simple,
it uses the same format as printed by `C-u C-x =' (i.e. the prefix `U'),
so `C-q' followed by `U' will insert the Unicode character:

    C-q U42e RET

I can't submit the patch now due to the feature freeze.  I will hold
it until the next release.  I've also implemented more formats to
simplify input of characters in different radix without the need
to change the value of `read-quoted-char-radix'.  The following
formats are supported:

octal:   C-q 01212116 RET
decimal: C-q d332878 RET
hex:     C-q x5144e RET

> Also, It would be nice if the information you get from M-x
> describe-char-after would display the Unicode code point in hex.
> Perhaps even the info from C-u C-x = (or a Unicode equivalent
> suitably easily located).

Are you talking about CVS Emacs or a released version?

In CVS, `describe-char-after' is renamed to `describe-char' (bound
to `C-u C-x =') and it displays the Unicode character code in hex.

> One more thing, if I am in a UTF-8 language environment, then cutting 
> and pasting from other X apps should really try to find a codepoint from 
> Unicode to insert, rather than some other mule character set.  Right 
> now, eg if I cut and paste from Firefox I tend to get iso-2202-jp (IIRC) 
> double-width characters when I paste in some unicode characters.
>
> Perhaps these things have been solved already in CVS emacs?

In CVS Emacs I get correct Unicode characters copied from Firefox.

-- 
Juri Linkov
http://www.jurta.org/emacs/

      reply	other threads:[~2005-06-17  6:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-14  4:00 Unicode feature requests for next version Sam Vilain
2005-06-17  6:38 ` Juri Linkov [this message]

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=87r7f1k8qq.fsf@jurta.org \
    --to=juri@jurta.org \
    --cc=bug-gnu-emacs@gnu.org \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).