From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Pascal Bourguignon Newsgroups: gmane.emacs.help Subject: Re: Ascii character typeing Date: Tue, 18 Jul 2006 13:40:37 +0200 Organization: Informatimago Message-ID: <87r70jp2dm.fsf@thalassa.informatimago.com> References: <1153217054.336610.9850@b28g2000cwb.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1153226518 7820 80.91.229.2 (18 Jul 2006 12:41:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 18 Jul 2006 12:41:58 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 18 14:41:54 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G2osI-0002oj-TE for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Jul 2006 14:40:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G2osI-0007e5-DQ for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Jul 2006 08:40:30 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 56 Original-X-Trace: individual.net DEz4XRxEAz/fc2+9usu4/wvx9W97n2HvSeb7LptqOLYFcCjo+w Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9 033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR mV+hO/VvFAAAAABJRU5ErkJggg== X-Accept-Language: fr, es, en X-Disabled: X-No-Archive: no User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:yBMi0mYbB0NjGDmzM0a4smO/iR0= Original-Xref: shelby.stanford.edu gnu.emacs.help:140415 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:36044 Archived-At: "Sonu" 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