unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Pascal Bourguignon <pjb@informatimago.com>
Subject: Re: Ascii character typeing
Date: Tue, 18 Jul 2006 13:40:37 +0200	[thread overview]
Message-ID: <87r70jp2dm.fsf@thalassa.informatimago.com> (raw)
In-Reply-To: 1153217054.336610.9850@b28g2000cwb.googlegroups.com


"Sonu" <sanjaykumar.barick@gmail.com> writes:
> hi all, i want to know how can i type ascii characters, for example in
> windows i do this by typing ALT + xxx where "xxx" is the ascii code of
> the character. so i want to know how can i do this in linux, any help
> would be apreciated...

ASCII?  Isn't it already deprecated in favor of unicode?

Any honest keyboard should allow you to entery directly ALL the
character in the ASCII code map:

SP    !   "   #   $   %   &   '   (   )   *   +   ,   -   .   /  
 0   1   2   3   4   5   6   7   8   9   :   ;   <   =   >   ?  
 @   A   B   C   D   E   F   G   H   I   J   K   L   M   N   O  
 P   Q   R   S   T   U   V   W   X   Y   Z   [   \   ]   ^   _  
 `   a   b   c   d   e   f   g   h   i   j   k   l   m   n   o  
 p   q   r   s   t   u   v   w   x   y   z   {   |   }   ~   DEL

Why would you want to type 4 keys to enter one of them when you have
direct access (or at worse, with the SHIFT modifier) to them?



Now, let's speak seriously, nowadays we use unicode characters.
Well, in emacs, you can merely use the ucs input method, where you can
type U or u followed by the four-digit hex number code of the
character.  

M-x set-input-method RET ucs RET 
U00C1  inserts:  Á
U03A9  inserts:  Ω

Then you can switch between the two input methods with C-\

But still, most of the unicode characters are more easily input using
the various emacs input methods.  If you want to type Greek, just
select the greek input method: ηελενα, if you want Russian, use the
yawerty input method: россия, etc.



Otherwise, you'd have to see at the X (xmodmap) level or at the linux
console level whether the keyboard driver include such a feature.
Perhaps you don't really want to enter random codes, but you want some
specific character.  You can design your own keyboard maps (either
linux console or X) to allow you to enter easily all kind of
characters.  



-- 
__Pascal Bourguignon__                     http://www.informatimago.com/

"You can tell the Lisp programmers.  They have pockets full of punch
 cards with close parentheses on them." --> http://tinyurl.com/8ubpf

  reply	other threads:[~2006-07-18 11:40 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-18 10:04 Ascii character typeing Sonu
2006-07-18 11:40 ` Pascal Bourguignon [this message]
2006-07-18 12:23 ` Mathias Dahl
2006-07-19  9:19   ` Brian Elmegaard
2006-07-19 14:00     ` Pascal Bourguignon
2006-07-19 20:04       ` Brian Elmegaard
2006-07-19 20:20         ` Pascal Bourguignon
2006-07-19 21:01           ` Brian Elmegaard
2006-07-21 21:12             ` B. T. Raven
2006-07-21 21:58               ` Kevin Rodgers
2006-07-21 23:06               ` Pascal Bourguignon
     [not found]               ` <mailman.4342.1153642971.9609.help-gnu-emacs@gnu.org>
2006-07-23 13:45                 ` B. T. Raven
2006-08-01 11:17                   ` David Combs
2006-07-19 20:15     ` Peter Lee
2006-07-18 13:57 ` B. T. Raven
2006-07-18 21:48   ` Mark Geary
2006-07-19  0:54     ` B. T. Raven
2006-07-19  9:31       ` Brian Elmegaard

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=87r70jp2dm.fsf@thalassa.informatimago.com \
    --to=pjb@informatimago.com \
    /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).